Skip to content

Commit

Permalink
fix(createentityadapter): return new initialState on each call to get…
Browse files Browse the repository at this point in the history
…InitialState

The previous implementation was "caching" the initialState upon creation of EntityAdapter
  • Loading branch information
carere committed May 31, 2023
1 parent 424f1bd commit 2d23aa7
Show file tree
Hide file tree
Showing 6 changed files with 1,485 additions and 1,475 deletions.
7 changes: 5 additions & 2 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
{
"$schema": "https://json.schemastore.org/eslintrc",
"parser": "@typescript-eslint/parser",
"root": true,
"parserOptions": {
"project": ["./tsconfig.json"]
"project": ["./tsconfig.json"],
"tsConfigRootDir": "."
},
"plugins": ["@typescript-eslint"],
"extends": [
Expand All @@ -10,5 +13,5 @@
"plugin:@typescript-eslint/recommended-requiring-type-checking",
"prettier"
],
"ignorePatterns": ["**/*.js", "**/*.json", "node_modules"]
"ignorePatterns": ["node_modules", "dist", "coverage"]
}
4 changes: 2 additions & 2 deletions .github/workflows/ci-push-release-branches.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
with:
version: 7
version: latest
- uses: actions/setup-node@v2
with:
node-version: 18
Expand All @@ -30,4 +30,4 @@ jobs:
run: pnpm semantic-release
env:
NPM_TOKEN: ${{secrets.NPM_TOKEN}}
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
30 changes: 15 additions & 15 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,38 +30,38 @@
"scripts": {
"build": "tsup",
"coverage": "vitest run --coverage",
"format": "prettier --write {*,.vscode/*,src/*,test/*}.{ts,tsx,json}",
"format": "prettier --write {*,src/**/*,test/**/*,.vscode/**/*}.{ts,json,yml,yaml}",
"lint": "eslint --fix --cache .",
"prepare": "husky install",
"test": "vitest test/unit"
},
"dependencies": {
"rxjs": "^7.8.0",
"solid-js": "^1.7.1"
"rxjs": "^7.8.1",
"solid-js": "^1.7.6"
},
"devDependencies": {
"@semantic-release/changelog": "^6.0.3",
"@semantic-release/git": "^10.0.1",
"@types/node": "^18.15.11",
"@typescript-eslint/eslint-plugin": "^5.57.1",
"@typescript-eslint/parser": "^5.57.1",
"@types/node": "^18.16.16",
"@typescript-eslint/eslint-plugin": "^5.59.8",
"@typescript-eslint/parser": "^5.59.8",
"@vitest/coverage-c8": "^0.29.8",
"c8": "^7.13.0",
"c8": "^7.14.0",
"commitizen": "^4.3.0",
"cz-conventional-changelog": "^3.3.0",
"esbuild-plugin-solid": "^0.5.0",
"eslint": "^8.37.0",
"eslint": "^8.41.0",
"eslint-config-prettier": "^8.8.0",
"husky": "^8.0.3",
"jsdom": "^21.1.1",
"lint-staged": "^13.2.0",
"prettier": "^2.8.7",
"semantic-release": "^21.0.1",
"jsdom": "^22.1.0",
"lint-staged": "^13.2.2",
"prettier": "^2.8.8",
"semantic-release": "^21.0.2",
"sort-package-json": "^2.4.1",
"tsup": "^6.7.0",
"typescript": "^5.0.3",
"vite": "^4.2.1",
"vite-plugin-solid": "^2.6.1",
"typescript": "^5.0.4",
"vite": "^4.3.9",
"vite-plugin-solid": "^2.7.0",
"vitest": "^0.29.8"
},
"peerDependencies": {
Expand Down
Loading

0 comments on commit 2d23aa7

Please sign in to comment.