diff --git a/CHANGELOG.md b/CHANGELOG.md index 5657d40..f568558 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,7 +5,18 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). - +## Unreleased + +**Breaking Changes** + +- minimum Svelte version required is 5 + +**Features** + +- support Svelte 5 runes mode +- upgrade `svelte` dependency to 5.9.1 +- upgrade `vite` dependency to 5.4.11 +- upgrade `@sveltejs/vite-plugin-svelte` to 4.0.1 ## [0.9.0](https://github.com/metonym/svelte-time/releases/tag/v0.9.0) - 2024-04-19 diff --git a/examples/rollup/rollup.config.js b/examples/rollup/rollup.config.js index 65de6b9..a6286c4 100644 --- a/examples/rollup/rollup.config.js +++ b/examples/rollup/rollup.config.js @@ -16,7 +16,7 @@ export default { // ignore Rollup warnings for d3 circular dependencies onwarn: (warning, warn) => { if (warning.code === "CIRCULAR_DEPENDENCY") { - if (warning.ids.some((id) => /node_modules\/(svelte)/.test(id))) { + if (warning.cycle.some((id) => /node_modules\/(svelte)/.test(id))) { return; } } diff --git a/examples/sveltekit/src/app.html b/examples/sveltekit/src/app.html index 79475db..caee140 100644 --- a/examples/sveltekit/src/app.html +++ b/examples/sveltekit/src/app.html @@ -6,6 +6,8 @@ %sveltekit.head% - %sveltekit.body% +
+ %sveltekit.body% +
diff --git a/examples/webpack/webpack.config.mjs b/examples/webpack/webpack.config.mjs index 43ae2fb..5a1794c 100644 --- a/examples/webpack/webpack.config.mjs +++ b/examples/webpack/webpack.config.mjs @@ -20,7 +20,7 @@ export default { module: { rules: [ { - test: /\.svelte$/, + test: /\.(svelte|svelte\.js)$/, use: { loader: "svelte-loader", options: { diff --git a/package.json b/package.json index 0db66e4..9c86b87 100644 --- a/package.json +++ b/package.json @@ -18,15 +18,16 @@ }, "devDependencies": { "@rollup/plugin-commonjs": "^21.1.0", - "@sveltejs/vite-plugin-svelte": "^3.1.2", + "@sveltejs/vite-plugin-svelte": "^4.0.1", "@testing-library/svelte": "^5.2.6", "dlz": "^0.1.3", "jsdom": "^25.0.1", "prettier": "^3.4.1", "prettier-plugin-svelte": "^3.3.2", - "svelte": "^4.2.19", + "svelte": "^5.9.1", "svelte-readme": "^3.6.3", "typescript": "^5.7.2", + "vite": "^5.4.11", "vitest": "^2.1.6" }, "repository": { diff --git a/src/Time.svelte b/src/Time.svelte index e4a226d..90af578 100644 --- a/src/Time.svelte +++ b/src/Time.svelte @@ -1,67 +1,69 @@ -