From 806c24394f1d23e30482bf85b578ac7b0d37b8ca Mon Sep 17 00:00:00 2001
From: MacFJA <macfja@gmail.com>
Date: Fri, 25 Oct 2024 22:32:38 +0200
Subject: [PATCH] Add Svelte5 Support

---
 CHANGELOG.md      | 9 ++++++++-
 package-lock.json | 8 ++++----
 package.json      | 6 +++---
 3 files changed, 15 insertions(+), 8 deletions(-)

diff --git a/CHANGELOG.md b/CHANGELOG.md
index acb71e1..29f033c 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -6,6 +6,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
 
 ## [Unreleased]
 
+## [2.4.2]
+
+### Added
+
+- Add support for Svelte v5
+
 ## [2.4.1]
 
 ### Fixed
@@ -198,7 +204,8 @@ First version
 
 </details>
 
-[Unreleased]: https://github.com/MacFJA/svelte-persistent-store/compare/2.4.1...HEAD
+[Unreleased]: https://github.com/MacFJA/svelte-persistent-store/compare/2.4.2...HEAD
+[2.4.2]: https://github.com/MacFJA/svelte-persistent-store/compare/2.4.1...2.4.2
 [2.4.1]: https://github.com/MacFJA/svelte-persistent-store/compare/2.4.0...2.4.1
 [2.4.0]: https://github.com/MacFJA/svelte-persistent-store/compare/2.3.2...2.4.0
 [2.3.2]: https://github.com/MacFJA/svelte-persistent-store/compare/2.3.1...2.3.2
diff --git a/package-lock.json b/package-lock.json
index 8987c50..266e41b 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -1,12 +1,12 @@
 {
     "name": "@macfja/svelte-persistent-store",
-    "version": "2.4.1",
+    "version": "2.4.2",
     "lockfileVersion": 3,
     "requires": true,
     "packages": {
         "": {
             "name": "@macfja/svelte-persistent-store",
-            "version": "2.4.1",
+            "version": "2.4.2",
             "license": "MIT",
             "dependencies": {
                 "@macfja/serializer": "^1.1.2",
@@ -38,7 +38,7 @@
                 "rollup": "^2.56.2 || ^3.26.0",
                 "rollup-plugin-svelte": "^7.1.0",
                 "sirv-cli": "^2.0.2",
-                "svelte": "^3.42.1 || ^4.0.1",
+                "svelte": "^3.42.1 || ^4.0.1 || ^5.0.0",
                 "svelte-check": "^2.8.0 || 3.4.4",
                 "svelte-preprocess": "^4.7.4 || ^5.0.4",
                 "testcafe": "^1.18.3 <1.20.0 || 3.0.1",
@@ -47,7 +47,7 @@
                 "typescript": "^4.7.4 || ^5.1.6"
             },
             "peerDependencies": {
-                "svelte": "^3.0 || ^4.0"
+                "svelte": "^3.0 || ^4.0 || ^5.0"
             }
         },
         "node_modules/@aashutoshrathi/word-wrap": {
diff --git a/package.json b/package.json
index 1d56a79..9171bd7 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
 {
     "name": "@macfja/svelte-persistent-store",
-    "version": "2.4.1",
+    "version": "2.4.2",
     "description": "A Svelte store that keep its value through pages and reloads",
     "main": "dist/index.js",
     "module": "dist/index.mjs",
@@ -49,7 +49,7 @@
         "rollup": "^2.56.2 || ^3.26.0",
         "rollup-plugin-svelte": "^7.1.0",
         "sirv-cli": "^2.0.2",
-        "svelte": "^3.42.1 || ^4.0.1",
+        "svelte": "^3.42.1 || ^4.0.1 || ^5.0.0",
         "svelte-check": "^2.8.0 || 3.4.4",
         "svelte-preprocess": "^4.7.4 || ^5.0.4",
         "testcafe": "^1.18.3 <1.20.0 || 3.0.1",
@@ -58,7 +58,7 @@
         "typescript": "^4.7.4 || ^5.1.6"
     },
     "peerDependencies": {
-        "svelte": "^3.0 || ^4.0"
+        "svelte": "^3.0 || ^4.0 || ^5.0"
     },
     "scripts": {
         "doc": "typedoc",