Skip to content

Commit

Permalink
chore!: drop TypeScript 4.9 support
Browse files Browse the repository at this point in the history
  • Loading branch information
crutchcorn committed Nov 29, 2024
1 parent 1e7fec0 commit df0646d
Show file tree
Hide file tree
Showing 14 changed files with 3 additions and 101 deletions.
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@
"sherif": "^1.0.2",
"solid-js": "^1.9.3",
"typescript": "5.6.3",
"typescript49": "npm:[email protected]",
"typescript50": "npm:[email protected]",
"typescript51": "npm:[email protected]",
"typescript52": "npm:[email protected]",
Expand Down
1 change: 0 additions & 1 deletion packages/react-store/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
"clean": "rimraf ./dist && rimraf ./coverage",
"test:eslint": "eslint ./src ./tests",
"test:types": "pnpm run \"/^test:types:ts[0-9]{2}$/\"",
"test:types:ts49": "node ../../node_modules/typescript49/lib/tsc.js -p tsconfig.legacy.json",
"test:types:ts50": "node ../../node_modules/typescript50/lib/tsc.js",
"test:types:ts51": "node ../../node_modules/typescript51/lib/tsc.js",
"test:types:ts52": "node ../../node_modules/typescript52/lib/tsc.js",
Expand Down
10 changes: 0 additions & 10 deletions packages/react-store/tsconfig.legacy.json

This file was deleted.

1 change: 0 additions & 1 deletion packages/solid-store/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
"clean": "rimraf ./dist && rimraf ./coverage",
"test:eslint": "eslint ./src ./tests",
"test:types": "pnpm run \"/^test:types:ts[0-9]{2}$/\"",
"test:types:ts49": "node ../../node_modules/typescript49/lib/tsc.js -p tsconfig.legacy.json",
"test:types:ts50": "node ../../node_modules/typescript50/lib/tsc.js",
"test:types:ts51": "node ../../node_modules/typescript51/lib/tsc.js",
"test:types:ts52": "node ../../node_modules/typescript52/lib/tsc.js",
Expand Down
11 changes: 0 additions & 11 deletions packages/solid-store/tsconfig.legacy.json

This file was deleted.

13 changes: 1 addition & 12 deletions packages/store/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
"clean": "rimraf ./dist && rimraf ./coverage",
"test:eslint": "eslint ./src ./tests",
"test:types": "pnpm run \"/^test:types:ts[0-9]{2}$/\"",
"test:types:ts49": "node ../../node_modules/typescript49/lib/tsc.js -p tsconfig.legacy.json",
"test:types:ts50": "node ../../node_modules/typescript50/lib/tsc.js",
"test:types:ts51": "node ../../node_modules/typescript51/lib/tsc.js",
"test:types:ts52": "node ../../node_modules/typescript52/lib/tsc.js",
Expand All @@ -36,25 +35,16 @@
},
"type": "module",
"types": "dist/esm/index.d.ts",
"typesVersions": {
"=>5.0": {
"index.d.ts": [
"ts-5/index.v5.d.ts"
]
}
},
"main": "dist/cjs/index.cjs",
"module": "dist/esm/index.js",
"exports": {
".": {
"import": {
"types": "./dist/esm/index.d.ts",
"types@>=5.0": "./ts-5/index.d.ts",
"default": "./dist/esm/index.js"
},
"require": {
"types": "./dist/cjs/index.d.cts",
"types@>=5.0": "./ts-5/index.d.cts",
"default": "./dist/cjs/index.cjs"
}
},
Expand All @@ -63,8 +53,7 @@
"sideEffects": false,
"files": [
"dist",
"src",
"ts-5"
"src"
],
"devDependencies": {
"@angular/core": "^19.0.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/store/src/derived.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export interface DerivedOptions<

export class Derived<
TState,
TArr extends ReadonlyArray<Derived<any> | Store<any>> = ReadonlyArray<any>,
const TArr extends ReadonlyArray<Derived<any> | Store<any>> = ReadonlyArray<any>,
> {
/**
* @private
Expand Down
2 changes: 1 addition & 1 deletion packages/store/tests/derived.test-d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { Derived, Store } from '../src'
test('dep array inner types work', () => {
const store = new Store(12)
new Derived({
deps: [store] as const,
deps: [store],
fn: ({ currDepVals: [currentStore], prevDepVals }) => {
expectTypeOf(currentStore).toMatchTypeOf<number>()
expectTypeOf(prevDepVals).toMatchTypeOf<[number] | undefined>()
Expand Down
18 changes: 0 additions & 18 deletions packages/store/ts-5/index.d.cts

This file was deleted.

18 changes: 0 additions & 18 deletions packages/store/ts-5/index.d.ts

This file was deleted.

4 changes: 0 additions & 4 deletions packages/store/tsconfig.legacy.json

This file was deleted.

1 change: 0 additions & 1 deletion packages/vue-store/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
"clean": "rimraf ./dist && rimraf ./coverage",
"test:eslint": "eslint ./src ./tests",
"test:types": "pnpm run \"/^test:types:ts[0-9]{2}$/\"",
"test:types:ts49": "node ../../node_modules/typescript49/lib/tsc.js -p tsconfig.legacy.json",
"test:types:ts50": "node ../../node_modules/typescript50/lib/tsc.js",
"test:types:ts51": "node ../../node_modules/typescript51/lib/tsc.js",
"test:types:ts52": "node ../../node_modules/typescript52/lib/tsc.js",
Expand Down
12 changes: 0 additions & 12 deletions packages/vue-store/tsconfig.legacy.json

This file was deleted.

10 changes: 0 additions & 10 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit df0646d

Please sign in to comment.