Skip to content

Commit

Permalink
Svelte 4 compatibility + deps update
Browse files Browse the repository at this point in the history
  • Loading branch information
MacFJA committed Jul 3, 2023
1 parent 552b8df commit 8329d3a
Show file tree
Hide file tree
Showing 9 changed files with 2,493 additions and 9,207 deletions.
2 changes: 1 addition & 1 deletion .docs/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@
"sourceMap": false
},
"stripInternal": true,
"files": ["../src/index.ts"]
"files": ["../src/index.ts", "../src/global.d.ts"]
}
4 changes: 3 additions & 1 deletion .eslintrc.js → .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* eslint-env node */
module.exports = {
env: {
browser: true,
Expand All @@ -24,13 +25,14 @@ module.exports = {
"import/newline-after-import": ["error"],
"import/no-absolute-path": ["error"],
"@typescript-eslint/no-explicit-any": ["off"],
"import/no-unresolved": ["error", { ignore: ["svelte/store"] }]
},
settings: {
"import/resolver": {
node: {
extensions: [".js", ".ts"],
},
},
"import/extensions": [".js"],
"import/extensions": [".js", ".ts", ".cjs"],
},
}
15 changes: 15 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,17 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [2.3.1]

### Added

- Add compatibility for Svelte 4 ([PR#47] + [Issue#48])

### Changed

- (dev) Use typedoc again to generate documentation
- (dev) Update all dependencies to the last version

## [2.3.0]

### Fixed
Expand Down Expand Up @@ -164,6 +175,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
First version

[Unreleased]: https://github.com/MacFJA/svelte-persistent-store/compare/2.2.1...HEAD
[2.3.1]: https://github.com/MacFJA/svelte-persistent-store/compare/2.3.0...2.3.1
[2.3.0]: https://github.com/MacFJA/svelte-persistent-store/compare/2.2.1...2.3.0
[2.2.1]: https://github.com/MacFJA/svelte-persistent-store/compare/2.2.0...2.2.1
[2.2.0]: https://github.com/MacFJA/svelte-persistent-store/compare/2.1.0...2.2.0
[2.1.0]: https://github.com/MacFJA/svelte-persistent-store/compare/2.0.0...2.1.0
Expand All @@ -189,7 +202,9 @@ First version
[Issue#31]: https://github.com/MacFJA/svelte-persistent-store/issues/31
[Issue#32]: https://github.com/MacFJA/svelte-persistent-store/issues/32
[Issue#41]: https://github.com/MacFJA/svelte-persistent-store/issues/41
[Issue#48]: https://github.com/MacFJA/svelte-persistent-store/issues/48
[PR#8]: https://github.com/MacFJA/svelte-persistent-store/pull/8
[PR#38]: https://github.com/MacFJA/svelte-persistent-store/pull/38
[PR#39]: https://github.com/MacFJA/svelte-persistent-store/pull/39
[PR#40]: https://github.com/MacFJA/svelte-persistent-store/pull/40
[PR#47]: https://github.com/MacFJA/svelte-persistent-store/pull/47
11,611 changes: 2,436 additions & 9,175 deletions package-lock.json

Large diffs are not rendered by default.

41 changes: 20 additions & 21 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@macfja/svelte-persistent-store",
"version": "2.3.0",
"version": "2.3.1",
"description": "A Svelte store that keep its value through pages and reloads",
"main": "dist/index.js",
"module": "dist/index.mjs",
Expand All @@ -21,45 +21,44 @@
"dependencies": {
"@macfja/serializer": "^1.1.2",
"browser-cookies": "^1.2.0",
"idb-keyval": "^5.1.3",
"idb-keyval": "^5.1.3 || ^6.2.1",
"sjcl-codec-hex": "^1.0.0",
"sjcl-es": "^2.0.0"
},
"devDependencies": {
"@rollup/plugin-commonjs": "^22.0.0",
"@rollup/plugin-node-resolve": "^13.3.0",
"@rollup/plugin-sucrase": "^4.0.4",
"@rollup/plugin-typescript": "^8.2.5",
"@ts-docs/default-docs-structure": "^0.4.4",
"@ts-docs/ts-docs": "^0.4.4",
"@tsconfig/svelte": "^3.0.0",
"@rollup/plugin-commonjs": "^22.0.0 || ^25.0.2",
"@rollup/plugin-node-resolve": "^13.3.0 || ^15.1.0",
"@rollup/plugin-sucrase": "^4.0.4 || ^5.0.1",
"@rollup/plugin-terser": "^0.4.3",
"@rollup/plugin-typescript": "^8.2.5 || ^11.1.2",
"@tsconfig/svelte": "^3.0.0 || ^5.0.0",
"@typescript-eslint/eslint-plugin": "^5.30.5",
"@typescript-eslint/parser": "^5.30.5",
"eslint": "^8.19.0",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-import": "^2.24.0",
"prettier": "^2.7.1",
"prettier-plugin-svelte": "^2.7.0",
"rollup": "^2.56.2",
"rollup": "^2.56.2 || ^3.26.0",
"rollup-plugin-svelte": "^7.1.0",
"rollup-plugin-terser": "^7.0.2",
"sirv-cli": "^2.0.2",
"svelte": "^3.42.1",
"svelte-check": "^2.8.0",
"svelte-preprocess": "^4.7.4",
"testcafe": "^1.18.3 <1.20.0",
"tslib": "^2.3.0",
"typescript": "^4.7.4"
"svelte": "^3.42.1 || ^4.0.1",
"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",
"tslib": "^2.3.0 | ^2.6.0",
"typedoc": "^0.24.8",
"typescript": "^4.7.4 || ^5.1.6"
},
"peerDependencies": {
"svelte": "^3.0 || ^4.0"
},
"scripts": {
"doc": "ts-docs src/index.ts",
"lint": "prettier --check ./**/*.{md,js,json,ts,yml} && eslint src/ ./*.js",
"doc": "typedoc",
"lint": "prettier --check ./**/*.{md,js,json,ts,yml} && eslint src/ ./*.cjs ./*.mjs",
"format": "prettier --write ./**/*.{md,js,json,ts,yml}",
"pretest": "rollup -c rollup.test.config.js",
"test": "testcafe all tests/e2e.ts --app 'npx sirv tests --port 5000'",
"pretest": "rollup -c rollup.test.config.mjs",
"test": "testcafe all tests/e2e.ts --app 'npx sirv tests --port 5000 --host 0.0.0.0'",
"prebuild": "tsc",
"build": "rollup -c",
"prepublishOnly": "npm run build"
Expand Down
4 changes: 2 additions & 2 deletions rollup.config.js → rollup.config.mjs
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import commonjs from "@rollup/plugin-commonjs"
import resolve from "@rollup/plugin-node-resolve"
import sucrase from "@rollup/plugin-sucrase"
import { terser } from "rollup-plugin-terser"
import terser from "@rollup/plugin-terser"

import pkg from "./package.json"
import pkg from "./package.json" assert {type: "json"}

const name = pkg.name
.replace(/^(@\S+\/)?(svelte-)?(\S+)/, "$3")
Expand Down
File renamed without changes.
7 changes: 0 additions & 7 deletions tsdocs.config.js

This file was deleted.

16 changes: 16 additions & 0 deletions typedoc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"entryPoints": ["src/index.ts"],
"includes": "./.docs/",
"out": "docs",
"tsconfig": ".docs/tsconfig.json",
"excludeInternal": true,
"excludePrivate": true,
"visibilityFilters": {
"protected": false,
"private": false,
"inherited": true,
"external": true,
"@alpha": false,
"@beta": false
}
}

0 comments on commit 8329d3a

Please sign in to comment.