Skip to content

Commit 3b3060f

Browse files
committed
update tooling and change typeparam to template to keep typedoc happy
1 parent 3b039f5 commit 3b3060f

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

55 files changed

+1153
-1046
lines changed

apps/benchmark/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,13 @@
1818
"benchmark": "^2.1.4",
1919
"chalk": "^5.4.1",
2020
"mobx-keystone": "workspace:packages/lib",
21-
"mobx-state-tree": "^7.0.1",
21+
"mobx-state-tree": "^7.0.2",
2222
"tslib": "^2.8.1"
2323
},
2424
"devDependencies": {
2525
"@types/benchmark": "^2.1.5",
2626
"cross-env": "^7.0.3",
27-
"shx": "^0.3.4",
28-
"typescript": "^5.7.3"
27+
"shx": "^0.4.0",
28+
"typescript": "^5.8.2"
2929
}
3030
}

apps/site/package.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,15 @@
1212
"dependencies": {
1313
"@docusaurus/core": "^3.7.0",
1414
"@docusaurus/preset-classic": "^3.7.0",
15-
"@easyops-cn/docusaurus-search-local": "^0.48.5",
16-
"@iframe-resizer/child": "^5.3.2",
17-
"@iframe-resizer/react": "^5.3.2",
15+
"@easyops-cn/docusaurus-search-local": "^0.49.1",
16+
"@iframe-resizer/child": "^5.3.3",
17+
"@iframe-resizer/react": "^5.3.3",
1818
"bootstrap-icons": "^1.11.3",
1919
"bufferutil": "^4.0.9",
2020
"mobx-keystone": "workspace:packages/lib",
2121
"mobx-keystone-yjs": "workspace:packages/mobx-keystone-yjs",
2222
"mobx-react": "^9.2.0",
23-
"nanoid": "^3.3.8",
23+
"nanoid": "^3.3.11",
2424
"react": "^19.0.0",
2525
"react-dom": "^19.0.0",
2626
"remotedev": "^0.2.9",
@@ -36,12 +36,12 @@
3636
"@docusaurus/module-type-aliases": "^3.7.0",
3737
"@docusaurus/tsconfig": "^3.7.0",
3838
"@svgr/webpack": "^8.1.0",
39-
"@types/react": "^19.0.8",
40-
"@types/react-dom": "^19.0.3",
39+
"@types/react": "^19.0.12",
40+
"@types/react-dom": "^19.0.4",
4141
"@types/uuid": "^10.0.0",
4242
"raw-loader": "^4.0.2",
43-
"shx": "^0.3.4",
44-
"typescript": "^5.7.3"
43+
"shx": "^0.4.0",
44+
"typescript": "^5.8.2"
4545
},
4646
"browserslist": {
4747
"production": [

package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,15 @@
2323
"apps/*"
2424
],
2525
"dependencies": {
26-
"mobx": "^6.13.6",
27-
"yjs": "^13.6.23"
26+
"mobx": "^6.13.7",
27+
"yjs": "^13.6.24"
2828
},
2929
"devDependencies": {
3030
"@biomejs/biome": "^1.9.4",
31-
"globals": "^15.14.0",
32-
"netlify-cli": "^18.0.4",
33-
"turbo": "^2.4.0",
34-
"typescript": "^5.7.3"
31+
"globals": "^16.0.0",
32+
"netlify-cli": "^19.0.3",
33+
"turbo": "^2.4.4",
34+
"typescript": "^5.8.2"
3535
},
3636
"packageManager": "[email protected]"
3737
}

packages/lib/package.json

Lines changed: 17 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,13 @@
4343
"types": "./dist/types/index.d.ts",
4444
"typings": "./dist/types/index.d.ts",
4545
"sideEffects": false,
46-
"files": ["src", "dist", "LICENSE", "CHANGELOG.md", "README.md"],
46+
"files": [
47+
"src",
48+
"dist",
49+
"LICENSE",
50+
"CHANGELOG.md",
51+
"README.md"
52+
],
4753
"scripts": {
4854
"quick-build": "tsc",
4955
"quick-build-tests": "tsc -p test",
@@ -60,31 +66,31 @@
6066
"mobx": "^6.0.0 || ^5.0.0 || ^4.0.0"
6167
},
6268
"devDependencies": {
63-
"@babel/core": "^7.26.8",
69+
"@babel/core": "^7.26.10",
6470
"@babel/plugin-proposal-class-properties": "^7.18.6",
6571
"@babel/plugin-proposal-decorators": "^7.25.9",
66-
"@babel/preset-env": "^7.26.8",
72+
"@babel/preset-env": "^7.26.9",
6773
"@babel/preset-typescript": "^7.26.0",
68-
"@swc/core": "^1.10.15",
74+
"@swc/core": "^1.11.11",
6975
"@swc/jest": "^0.2.37",
7076
"@types/jest": "^29.5.14",
71-
"@types/node": "^22.13.1",
77+
"@types/node": "^22.13.11",
7278
"babel-jest": "^29.7.0",
7379
"jest": "^29.7.0",
7480
"mobx-v4": "npm:mobx@^4.15.7",
7581
"mobx-v5": "npm:mobx@^5.15.7",
7682
"rollup-plugin-typescript2": "^0.36.0",
77-
"shx": "^0.3.4",
83+
"shx": "^0.4.0",
7884
"spec.ts": "^1.1.3",
79-
"ts-jest": "^29.2.5",
85+
"ts-jest": "^29.2.6",
8086
"ts-node": "^10.9.2",
81-
"typedoc": "^0.27.6",
82-
"typescript": "^5.7.3",
83-
"vite": "^6.1.0"
87+
"typedoc": "^0.28.1",
88+
"typescript": "^5.8.2",
89+
"vite": "^6.2.2"
8490
},
8591
"dependencies": {
8692
"fast-deep-equal": "^3.1.3",
87-
"nanoid": "^3.3.8",
93+
"nanoid": "^3.3.11",
8894
"ts-toolbelt": "^9.6.0",
8995
"tslib": "^2.8.1"
9096
},

packages/lib/src/action/modelFlow.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -215,8 +215,8 @@ export function modelFlow(...args: any[]): void {
215215
* Tricks the TS compiler into thinking that a model flow generator function can be awaited
216216
* (is a promise).
217217
*
218-
* @typeparam A Function arguments.
219-
* @typeparam R Return value.
218+
* @template A Function arguments.
219+
* @template R Return value.
220220
* @param fn Flow function.
221221
* @returns
222222
*/
@@ -229,7 +229,7 @@ export function _async<A extends any[], R>(
229229
/**
230230
* Makes a promise a flow, so it can be awaited with yield*.
231231
*
232-
* @typeparam T Promise return type.
232+
* @template T Promise return type.
233233
* @param promise Promise.
234234
* @returns
235235
*/

packages/lib/src/action/runUnprotected.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { getActionProtection, setActionProtection } from "./protection"
66
* Runs a block in unprocted mode, as if it were run inside a model action.
77
* Consider using a proper model action instead since these kind of actions are not recorded.
88
*
9-
* @typeparam T Return type.
9+
* @template T Return type.
1010
* @param name Mobx action name.
1111
* @param fn Action block.
1212
* @returns
@@ -17,7 +17,7 @@ export function runUnprotected<T>(name: string, fn: () => T): T
1717
* Runs a block in unprocted mode, as if it were run inside a model action.
1818
* Consider using a proper model action instead since these kind of actions are not recorded.
1919
*
20-
* @typeparam T Return type.
20+
* @template T Return type.
2121
* @param fn Action block.
2222
* @returns
2323
*/

packages/lib/src/actionMiddlewares/transactionMiddleware.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import {
1616
* Creates a transaction middleware, which reverts changes made by an action / child
1717
* actions when the root action throws an exception by applying inverse patches.
1818
*
19-
* @typeparam M Model
19+
* @template M Model
2020
* @param target Object with the root target model object (`model`) and root action name (`actionName`).
2121
* @returns The middleware disposer.
2222
*/

packages/lib/src/actionMiddlewares/undoMiddleware.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -433,7 +433,7 @@ export class UndoManager {
433433
/**
434434
* Skips the undo recording mechanism for the code block that gets run synchronously inside.
435435
*
436-
* @typeparam T Code block return type.
436+
* @template T Code block return type.
437437
* @param fn Code block to run.
438438
* @returns The value returned by the code block.
439439
*/
@@ -782,7 +782,7 @@ export function isGlobalUndoRecordingDisabled() {
782782
* Globally skips the undo recording mechanism for the code block that gets run synchronously inside.
783783
* Consider using the `withoutUndo` method of a particular `UndoManager` instead.
784784
*
785-
* @typeparam T Code block return type.
785+
* @template T Code block return type.
786786
* @param fn Code block to run.
787787
* @returns The value returned by the code block.
788788
*/

packages/lib/src/context/context.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ export interface Context<T> {
6363
* Applies a value override while the given function is running and, if a node is returned,
6464
* sets the node as a provider of the value.
6565
*
66-
* @typeparam R
66+
* @template R
6767
* @param fn Function to run.
6868
* @param value Value to apply.
6969
* @returns The value returned from the function.
@@ -74,9 +74,9 @@ export interface Context<T> {
7474
* Applies a computed value override while the given function is running and, if a node is returned,
7575
* sets the node as a provider of the computed value.
7676
*
77-
* @typeparam R
77+
* @template R
7878
* @param fn Function to run.
79-
* @param value Value to apply.
79+
* @param valueFn Function that returns the value to apply.
8080
* @returns The value returned from the function.
8181
*/
8282
applyComputed<R>(fn: () => R, valueFn: () => T): R
@@ -264,15 +264,15 @@ class ContextClass<T> implements Context<T> {
264264
/**
265265
* Creates a new context with no default value, thus making its default value undefined.
266266
*
267-
* @typeparam T Context value type.
267+
* @template T Context value type.
268268
* @returns
269269
*/
270270
export function createContext<T>(): Context<T | undefined>
271271

272272
/**
273273
* Creates a new context with a default value.
274274
*
275-
* @typeparam T Context value type.
275+
* @template T Context value type.
276276
* @param defaultValue
277277
* @returns
278278
*/

packages/lib/src/dataModel/BaseDataModel.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ const dataModelInstanceCache = new WeakMap<ModelClass<AnyDataModel>, WeakMap<any
2626
*
2727
* Never override the constructor, use `onLazyInit` instead.
2828
*
29-
* @typeparam Data Props data type.
29+
* @template Data Props data type.
3030
*/
3131
export abstract class BaseDataModel<TProps extends ModelProps> {
3232
// just to make typing work properly

0 commit comments

Comments
 (0)