Skip to content

Commit

Permalink
update dependencies to the latest version
Browse files Browse the repository at this point in the history
  • Loading branch information
uenoB committed Apr 4, 2024
1 parent dad49c3 commit 39b1845
Show file tree
Hide file tree
Showing 15 changed files with 1,355 additions and 1,496 deletions.
2 changes: 1 addition & 1 deletion eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ export default [
rules: modificationToStandardJs
}),
...expand({
extends: 'standard-with-typescript',
extends: 'love',
files: ['**/*.ts'],
rules: modificationToStandardTs
}),
Expand Down
8 changes: 4 additions & 4 deletions example/benchmark/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,16 @@
"dependencies": {
"@mdx-js/rollup": "^3.0.1",
"@minissg/render-preact": "^3.0.0",
"@preact/preset-vite": "^2.8.1",
"preact": "^10.19.5",
"preact-render-to-string": "^6.3.1",
"@preact/preset-vite": "^2.8.2",
"preact": "^10.20.1",
"preact-render-to-string": "^6.4.1",
"preact-ssr-prepass": "^1.2.1",
"remark-frontmatter": "^5.0.0",
"remark-gfm": "^4.0.0",
"remark-mdx-frontmatter": "^4.0.0",
"remark-smartypants": "^2.1.0",
"tiged": "^2.12.7",
"vite": "^5.1.3",
"vite": "^5.2.8",
"vite-plugin-minissg": "^3.0.0"
}
}
4 changes: 2 additions & 2 deletions example/markdown-it/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
"serve": "vite preview"
},
"dependencies": {
"markdown-it": "^14.0.0",
"markdown-it": "^14.1.0",
"tiged": "^2.12.7",
"vite": "^5.1.3",
"vite": "^5.2.8",
"vite-plugin-minissg": "^3.0.0"
}
}
16 changes: 8 additions & 8 deletions example/multilib/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,20 +12,20 @@
"@minissg/render-solid": "^3.0.0",
"@minissg/render-svelte": "^3.0.0",
"@minissg/render-vue": "^3.0.0",
"@preact/preset-vite": "^2.8.1",
"@preact/preset-vite": "^2.8.2",
"@sveltejs/vite-plugin-svelte": "^3.0.2",
"@vitejs/plugin-react": "^4.2.1",
"@vitejs/plugin-vue": "^5.0.4",
"preact": "^10.19.5",
"preact-render-to-string": "^6.3.1",
"preact": "^10.20.1",
"preact-render-to-string": "^6.4.1",
"preact-ssr-prepass": "^1.2.1",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"solid-js": "^1.8.15",
"svelte": "^4.2.11",
"vite": "^5.1.3",
"solid-js": "^1.8.16",
"svelte": "^4.2.12",
"vite": "^5.2.8",
"vite-plugin-minissg": "^3.0.0",
"vite-plugin-solid": "^2.10.1",
"vue": "^3.4.19"
"vite-plugin-solid": "^2.10.2",
"vue": "^3.4.21"
}
}
37 changes: 19 additions & 18 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,31 +22,32 @@
},
"devDependencies": {
"@rollup/plugin-terser": "^0.4.4",
"@semantic-release/commit-analyzer": "^11.1.0",
"@semantic-release/commit-analyzer": "^12.0.0",
"@semantic-release/git": "^10.0.1",
"@semantic-release/github": "^9.2.6",
"@semantic-release/npm": "^11.0.2",
"@semantic-release/release-notes-generator": "^12.1.0",
"@types/node": "^20.11.19",
"eslint": "^8.56.0",
"eslint-config-standard-with-typescript": "^43.0.1",
"eslint-plugin-react": "^7.33.2",
"@semantic-release/github": "^10.0.2",
"@semantic-release/npm": "^12.0.0",
"@semantic-release/release-notes-generator": "^13.0.0",
"@types/node": "^20.12.4",
"@typescript-eslint/eslint-plugin": "^7.5.0",
"eslint": "^8.57.0",
"eslint-config-love": "^44.0.0",
"eslint-plugin-react": "^7.34.1",
"eslint-plugin-svelte": "^2.35.1",
"eslint-plugin-vue": "^9.21.1",
"eslint-plugin-vue": "^9.24.0",
"lint-staged": "^15.2.2",
"postcss-html": "^1.6.0",
"prettier": "^3.2.5",
"prettier-plugin-svelte": "^3.2.1",
"rollup": "^4.12.0",
"prettier-plugin-svelte": "^3.2.2",
"rollup": "^4.14.0",
"rollup-plugin-dts": "^6.1.0",
"rollup-plugin-esbuild": "^6.1.1",
"semantic-release": "^23.0.2",
"stylelint": "^16.2.1",
"stylelint-config-recess-order": "^4.6.0",
"semantic-release": "^23.0.7",
"stylelint": "^16.3.1",
"stylelint-config-recess-order": "^5.0.0",
"stylelint-config-standard": "^36.0.0",
"typescript": "^5.3.3",
"vite": "^5.1.3",
"vitest": "^1.3.0",
"yaml": "^2.3.4"
"typescript": "^5.4.4",
"vite": "^5.2.8",
"vitest": "^1.4.0",
"yaml": "^2.4.1"
}
}
4 changes: 4 additions & 0 deletions packages/page/src/delay.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ class DelayImpl<X, A extends unknown[]> implements Delay<X> {
onfulfilled?: ((value: X) => Awaitable<Y>) | undefined | null,
onrejected?: ((reason: unknown) => Awaitable<Z>) | undefined | null
): Delay<Y | Z> {
/* eslint-disable @typescript-eslint/prefer-promise-reject-errors */
const state = this.#touch()
const promise =
state.then != null
Expand All @@ -55,6 +56,7 @@ class DelayImpl<X, A extends unknown[]> implements Delay<X> {
? Promise.resolve(state.value)
: Promise.reject(state.value)
return new DelayImpl(promise.then(onfulfilled, onrejected))
/* eslint-enable */
}
}

Expand All @@ -75,10 +77,12 @@ const resolve = <X = void>(value?: Awaitable<X>): Delay<X> => {
return new DelayImpl<X, never>(Promise.resolve(value!))
}

/* eslint-disable @typescript-eslint/prefer-promise-reject-errors */
const reject = <X = never>(value?: unknown): Delay<X> =>
isAwaited<unknown>(value)
? new DelayImpl<X, never>({ done: false, value })
: new DelayImpl<X, never>(Promise.reject(value))
/* eslint-enable */

const delayFull: {
<X>(load: PromiseLike<X>): Delay<Awaited<X>>
Expand Down
4 changes: 2 additions & 2 deletions packages/vite-plugin-minissg/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@
],
"dependencies": {
"debug": "^4.3.4",
"es-module-lexer": "^1.4.1",
"magic-string": "^0.30.7",
"es-module-lexer": "^1.5.0",
"magic-string": "^0.30.9",
"mrmime": "^2.0.0"
},
"peerDependencies": {
Expand Down
3 changes: 1 addition & 2 deletions packages/vite-plugin-minissg/src/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -155,8 +155,7 @@ export const buildPlugin = (
sources: site.entries(),
destination: new Map<string, Rollup.ResolvedId | null>(),
map: async ([name, id]) => {
const preserveSignature = 'strict' as const
this.emitFile({ type: 'chunk', id, preserveSignature })
this.emitFile({ type: 'chunk', id, preserveSignature: 'strict' })
const r = await this.resolve(id, undefined, { isEntry: true })
if (r?.external === false) entryCount++
return [name, r] as const
Expand Down
Loading

0 comments on commit 39b1845

Please sign in to comment.