Skip to content

Commit

Permalink
chore: upgrade deps
Browse files Browse the repository at this point in the history
  • Loading branch information
DylanPiercey committed Feb 26, 2024
1 parent 7fca581 commit 8ceddaa
Show file tree
Hide file tree
Showing 246 changed files with 4,740 additions and 4,543 deletions.
3 changes: 0 additions & 3 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npm exec lint-staged
7,881 changes: 4,035 additions & 3,846 deletions package-lock.json

Large diffs are not rendered by default.

64 changes: 32 additions & 32 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,47 +5,47 @@
"author": "Dylan Piercey <[email protected]>",
"bugs": "https://github.com/marko-js/tags-api-preview/issues",
"dependencies": {
"magic-string": "^0.30.0"
"magic-string": "^0.30.7"
},
"devDependencies": {
"@changesets/cli": "^2.26.2",
"@marko/compiler": "^5.30.2",
"@changesets/cli": "^2.27.1",
"@marko/compiler": "^5.34.7",
"@marko/fixture-snapshots": "^2.2.0",
"@marko/testing-library": "^6.1.4",
"@marko/testing-library": "^6.2.0",
"@testing-library/user-event": "^13.5.0",
"@types/babel__code-frame": "^7.0.3",
"@types/chai": "^4.3.5",
"@types/chai-as-promised": "^7.1.5",
"@types/chai-dom": "1.11.0",
"@types/jsdom": "^21.1.1",
"@types/mocha": "^10.0.1",
"@types/node": "^20.3.2",
"@types/sinon-chai": "^3.2.9",
"@typescript-eslint/eslint-plugin": "^5.60.1",
"@typescript-eslint/parser": "^5.60.1",
"@types/babel__code-frame": "^7.0.6",
"@types/chai": "^4.3.12",
"@types/chai-as-promised": "^7.1.8",
"@types/chai-dom": "1.11.3",
"@types/jsdom": "^21.1.6",
"@types/mocha": "^10.0.6",
"@types/node": "^20.11.20",
"@types/sinon-chai": "^3.2.12",
"@typescript-eslint/eslint-plugin": "^7.0.2",
"@typescript-eslint/parser": "^7.0.2",
"chai": "^4.3.7",
"chai-as-promised": "^7.1.1",
"chai-dom": "^1.11.0",
"chai-dom": "^1.12.0",
"cross-env": "^7.0.3",
"esbuild": "^0.18.10",
"eslint": "^8.43.0",
"eslint-config-prettier": "^8.8.0",
"fast-glob": "^3.3.0",
"esbuild": "^0.20.1",
"eslint": "^8.57.0",
"eslint-config-prettier": "^9.1.0",
"fast-glob": "^3.3.2",
"fixpack": "^4.0.0",
"fs-monkey": "^1.0.4",
"husky": "^8.0.3",
"jsdom": "^22.1.0",
"jsdom-context-require": "^4.0.8",
"lint-staged": "^13.2.3",
"marko": "^5.28.2",
"memfs": "^4.2.0",
"mocha": "^10.2.0",
"fs-monkey": "^1.0.5",
"husky": "^9.0.11",
"jsdom": "^24.0.0",
"jsdom-context-require": "^5.2.3",
"lint-staged": "^15.2.2",
"marko": "^5.32.13",
"memfs": "^4.7.7",
"mocha": "^10.3.0",
"nyc": "^15.1.0",
"prettier": "^2.8.8",
"sinon": "^15.2.0",
"prettier": "^3.2.5",
"sinon": "^17.0.1",
"sinon-chai": "^3.7.0",
"tsx": "^3.12.7",
"typescript": "^5.1.6",
"tsx": "^4.7.1",
"typescript": "^5.3.3",
"unionfs": "^4.5.1"
},
"files": [
Expand Down Expand Up @@ -79,7 +79,7 @@
"lint:eslint": "eslint -f visualstudio .",
"lint:prettier": "prettier \"./**/*{.ts,.js,.json,.md,.yml,rc}\"",
"mocha": "cross-env NODE_ENV=test mocha \"./src/**/__tests__/**/*.test.ts\"",
"prepare": "husky install",
"prepare": "husky",
"release": "npm run build && tsx publish.mts pre && changeset publish && tsx publish.mts post",
"report": "open ./coverage/lcov-report/index.html",
"test": "npm run mocha -- --watch",
Expand Down
2 changes: 1 addition & 1 deletion src/__tests__/fire-event.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export default {
return [k, (...args: unknown[]) => act(() => (v as any)(...args))];
}
return [k, v];
})
}),
) as unknown as {
[Key in keyof typeof userEvent]: Promisify<(typeof userEvent)[Key]>;
}),
Expand Down
8 changes: 4 additions & 4 deletions src/__tests__/fixture.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import * as chai from "chai";
import domPlugin from "chai-dom";
import sinonPlugin from "sinon-chai";
import promisePlugin from "chai-as-promised";
import createBrowser from "jsdom-context-require";
import { createBrowser } from "jsdom-context-require";
import register from "@marko/compiler/register";
import { patchRequire, patchFs } from "fs-monkey";
import { fs as vfs } from "memfs";
Expand Down Expand Up @@ -78,7 +78,7 @@ type Step =

export default (
file: string,
stepsOrInput?: Step[] | Step | Record<string, unknown>
stepsOrInput?: Step[] | Step | Record<string, unknown>,
) => {
const dir = calldir();
let [input, ...steps] = Array.isArray(stepsOrInput)
Expand Down Expand Up @@ -133,7 +133,7 @@ export default (
await snapshot("html", fixtureHelpers.container);
}
}
}
},
);
});
}
Expand All @@ -147,7 +147,7 @@ function getTitle(test: Mocha.Test) {
while (parent) {
title = path.join(
parent.title.replace(/[^a-z0-9$_-]+/gi, "-").replace(/^-|-$/, ""),
title
title,
);
parent = parent.parent;
}
Expand Down
2 changes: 1 addition & 1 deletion src/__tests__/fixtures/README/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ describe(testDescription, () => {
templates.forEach((template) => {
describe(
template.description,
fixture(path.join("templates", template.filename))
fixture(path.join("templates", template.filename)),
);
});
});
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
CompileError
CompileError:
> 1 | <attrs(y)/{ value }/>
| ^^^^^ The <attrs> tag does not support arguments.
2 | <div>Hello ${value}</div>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
CompileError
CompileError:
> 1 | <attrs(y)/{ value }/>
| ^^^^^ The <attrs> tag does not support arguments.
2 | <div>Hello ${value}</div>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
CompileError
CompileError:
> 1 | <attrs/{ value } y=2/>
| ^^^^^ The <attrs> tag does not support attributes.
2 | <div>Hello ${value}</div>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
CompileError
CompileError:
> 1 | <attrs/{ value } y=2/>
| ^^^^^ The <attrs> tag does not support attributes.
2 | <div>Hello ${value}</div>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
CompileError
CompileError:
> 1 | <attrs/{ value }>Hello</attrs>
| ^^^^^ The <attrs> tag does not support body content.
2 | <div>${value}</div>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
CompileError
CompileError:
> 1 | <attrs/{ value }>Hello</attrs>
| ^^^^^ The <attrs> tag does not support body content.
2 | <div>${value}</div>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
CompileError
CompileError:
> 1 | <attrs/{ value }|y|/>
| ^^^^^ The <attrs> tag does not support tag body parameters.
2 | <div>Hello ${value}</div>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
CompileError
CompileError:
> 1 | <attrs/{ value }|y|/>
| ^^^^^ The <attrs> tag does not support tag body parameters.
2 | <div>Hello ${value}</div>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
CompileError
CompileError:
1 | <attrs/{ value: valueA }/>
> 2 | <attrs/{ value: valueB }/>
| ^^^^^ The <attrs> tag can only be used once within a template.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
CompileError
CompileError:
1 | <attrs/{ value: valueA }/>
> 2 | <attrs/{ value: valueB }/>
| ^^^^^ The <attrs> tag can only be used once within a template.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
CompileError
CompileError:
1 | <div>
> 2 | <attrs/{ value }/>
| ^^^^^ The <attrs> tag can only used at the root of the template.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
CompileError
CompileError:
1 | <div>
> 2 | <attrs/{ value }/>
| ^^^^^ The <attrs> tag can only used at the root of the template.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
CompileError
CompileError:
> 1 | <attrs/>
| ^^^^^ The <attrs> tag requires a tag variable to be assigned to.
2 |
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
CompileError
CompileError:
> 1 | <attrs/>
| ^^^^^ The <attrs> tag requires a tag variable to be assigned to.
2 |
18 changes: 9 additions & 9 deletions src/__tests__/fixtures/attrs/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,45 +2,45 @@ import fixture from "../../fixture";

describe(
"<attrs> basic",
fixture("./templates/basic.marko", { value: "World" })
fixture("./templates/basic.marko", { value: "World" }),
);

describe(
"<attrs> after get",
fixture("./templates/after-get/index.marko", { value: "World" })
fixture("./templates/after-get/index.marko", { value: "World" }),
);

describe(
"<attrs> error args",
fixture("./templates/error-args.marko", { value: "World" })
fixture("./templates/error-args.marko", { value: "World" }),
);

describe(
"<attrs> error attr",
fixture("./templates/error-attr.marko", { value: "World" })
fixture("./templates/error-attr.marko", { value: "World" }),
);

describe(
"<attrs> error body content",
fixture("./templates/error-body-content.marko", { value: "World" })
fixture("./templates/error-body-content.marko", { value: "World" }),
);

describe(
"<attrs> error body parameters",
fixture("./templates/error-body-parameters.marko", { value: "World" })
fixture("./templates/error-body-parameters.marko", { value: "World" }),
);

describe(
"<attrs> error multiple",
fixture("./templates/error-multiple.marko", { value: "World" })
fixture("./templates/error-multiple.marko", { value: "World" }),
);

describe(
"<attrs> error nested",
fixture("./templates/error-nested.marko", { value: "World" })
fixture("./templates/error-nested.marko", { value: "World" }),
);

describe(
"<attrs> error no tag var",
fixture("./templates/error-no-tag-var.marko", { value: "World" })
fixture("./templates/error-no-tag-var.marko", { value: "World" }),
);
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
CompileError
CompileError:
> 1 | <const(y)/x=1/>
| ^^^^^ The <const> tag does not support arguments.
2 |
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
CompileError
CompileError:
> 1 | <const(y)/x=1/>
| ^^^^^ The <const> tag does not support arguments.
2 |
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
CompileError
CompileError:
1 | <const/x = 1/>
> 2 | <button onClick=(() => x++)>increment</button>
| ^^^ Reference is a constant and cannot be assigned.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
CompileError
CompileError:
1 | <const/x = 1/>
> 2 | <button onClick=(() => x++)>increment</button>
| ^^^ Reference is a constant and cannot be assigned.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
CompileError
CompileError:
> 1 | <const/x=1>
| ^^^^^ The <const> tag does not support body content.
2 | Hello!
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
CompileError
CompileError:
> 1 | <const/x=1>
| ^^^^^ The <const> tag does not support body content.
2 | Hello!
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
CompileError
CompileError:
> 1 | <const/x|y|=1/>
| ^^^^^ The <const> tag does not support tag body parameters.
2 |
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
CompileError
CompileError:
> 1 | <const/x|y|=1/>
| ^^^^^ The <const> tag does not support tag body parameters.
2 |
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
CompileError
CompileError:
> 1 | <const/x=1 y=2/>
| ^^^^^ The <const> tag only supports the 'value' attribute.
2 |
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
CompileError
CompileError:
> 1 | <const/x=1 y=2/>
| ^^^^^ The <const> tag only supports the 'value' attribute.
2 |
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
CompileError
CompileError:
> 1 | <const/x/>
| ^^^^^ The <const> tag must be initialized with a value.
2 |
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
CompileError
CompileError:
> 1 | <const/x/>
| ^^^^^ The <const> tag must be initialized with a value.
2 |
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
CompileError
CompileError:
> 1 | <const="Hello"/>
| ^^^^^ The <const> tag requires a tag variable to be assigned to.
2 |
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
CompileError
CompileError:
> 1 | <const="Hello"/>
| ^^^^^ The <const> tag requires a tag variable to be assigned to.
2 |
Loading

0 comments on commit 8ceddaa

Please sign in to comment.