Skip to content

Commit

Permalink
Updated dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
smikhalevski committed Oct 25, 2024
1 parent d59662c commit 5d15440
Show file tree
Hide file tree
Showing 9 changed files with 1,518 additions and 1,620 deletions.
4 changes: 3 additions & 1 deletion jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@ const path = require('path');

module.exports = {
rootDir: process.cwd(),
preset: 'ts-jest',
transform: {
'^.+\\.tsx?$': '@swc/jest',
},
testEnvironment: 'jsdom',
modulePathIgnorePatterns: ['/lib/'],
moduleNameMapper: {
Expand Down
3,057 changes: 1,482 additions & 1,575 deletions package-lock.json

Large diffs are not rendered by default.

30 changes: 16 additions & 14 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,22 +20,24 @@
"./packages/zod-plugin"
],
"devDependencies": {
"@rollup/plugin-node-resolve": "^15.2.3",
"@rollup/plugin-typescript": "^11.1.6",
"@testing-library/dom": "^9.3.4",
"@testing-library/react": "^14.1.2",
"@types/jest": "^29.5.11",
"@types/react": "^18.2.48",
"@rollup/plugin-node-resolve": "^15.3.0",
"@rollup/plugin-typescript": "^12.1.1",
"@swc/core": "^1.7.39",
"@swc/jest": "^0.2.36",
"@testing-library/dom": "^10.4.0",
"@testing-library/react": "^16.0.1",
"@types/jest": "^29.5.14",
"@types/react": "^18.3.12",
"jest": "^29.7.0",
"jest-environment-jsdom": "^29.7.0",
"prettier": "^3.2.4",
"rimraf": "^5.0.5",
"rollup": "^4.9.6",
"ts-jest": "^29.1.2",
"tsd": "^0.30.4",
"tslib": "^2.6.2",
"typedoc": "^0.25.7",
"prettier": "^3.3.3",
"rimraf": "^6.0.1",
"rollup": "^4.24.0",
"tsd": "^0.31.2",
"tslib": "^2.8.0",
"typedoc": "^0.26.10",
"typedoc-custom-css": "github:smikhalevski/typedoc-custom-css#master",
"typescript": "^5.3.3"
"typedoc-plugin-mdn-links": "^3.3.4",
"typescript": "^5.6.3"
}
}
2 changes: 1 addition & 1 deletion packages/doubter-plugin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
},
"homepage": "https://github.com/smikhalevski/roqueform/tree/master/packages/doubter-plugin#readme",
"peerDependencies": {
"doubter": "^2.1.0 || ^3.0.0 || ^4.0.0",
"doubter": "^2.1.0 || ^3.0.0 || ^4.0.0 || ^5.0.0",
"roqueform": "^5.1.0"
}
}
4 changes: 2 additions & 2 deletions packages/roqueform/src/main/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,8 @@ export interface BareField<Value = any, Plugin = any> {
subscribers: { [eventType: string]: Subscriber<any, Plugin>[] };

/**
* The accessor that reads values of child fields from {@link Field.value the value of this field}, and updates the
* value of this field when child value is changed.
* The accessor that reads values of child fields from {@link BareField.value the value of this field}, and updates
* the value of this field when child value is changed.
*
* @see [Accessors](https://github.com/smikhalevski/roqueform#accessors)
*/
Expand Down
4 changes: 2 additions & 2 deletions packages/roqueform/src/main/validationPlugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export interface ValidationPlugin<Options = any> {
* If this field is currently being validated then the validation {@link abortValidation is aborted} at current
* {@link Validation.rootField validation root}.
*
* {@link Field.isTransient Transient} descendants of this field are excluded from validation.
* {@link BareField.isTransient Transient} descendants of this field are excluded from validation.
*
* @param options Options passed to {@link Validator the validator}.
* @returns `true` if the field is valid, or `false` if this field or any of it descendants have an associated error.
Expand All @@ -48,7 +48,7 @@ export interface ValidationPlugin<Options = any> {
* If this field is currently being validated then the validation {@link abortValidation is aborted} at current
* {@link Validation.rootField validation root}.
*
* {@link Field.isTransient Transient} descendants of this field are excluded from validation.
* {@link BareField.isTransient Transient} descendants of this field are excluded from validation.
*
* @param options Options passed to {@link Validator the validator}.
* @returns `true` if the field is valid, or `false` if this field or any of it descendants have an associated error.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export interface ElementsValueAccessorOptions {
*
* <dl>
* <dt><i>"object"</i></dt>
* <dd><p>A valid {@link !Date Date} instance, or <code>null</code> if empty.</p></dd>
* <dd><p>A valid {@link !Date} instance, or <code>null</code> if empty.</p></dd>
*
* <dt><i>"timestamp"</i></dt>
* <dd><p>A timestamp number.</p></dd>
Expand Down Expand Up @@ -120,8 +120,8 @@ export interface ElementsValueAccessorOptions {
* - Image input → string value of the
* <a target="_blank" href="https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/image#src">value</a>
* attribute;
* - File input → {@link !File File} or `null` if no file selected, file inputs are read-only;
* - Multi-file input → array of {@link !File File};
* - File input → {@link !File} or `null` if no file selected, file inputs are read-only;
* - Multi-file input → array of {@link !File};
* - Others → The _value_ attribute, or `null` if element doesn't support it;
* - `null`, `undefined`, `NaN` and non-finite numbers are coerced to an empty string and written to _value_ attribute.
*/
Expand Down
16 changes: 4 additions & 12 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,22 +9,14 @@
"strict": true,
"target": "ES5",
"module": "ES6",
"lib": [
"ES6"
],
"lib": ["ES6"],
"jsx": "react",
"outDir": "./lib",
"baseUrl": ".",
"paths": {
"roqueform": [
"./packages/roqueform/src/main"
],
"@roqueform/*": [
"./packages/*/src/main"
]
"roqueform": ["./packages/roqueform/src/main"],
"@roqueform/*": ["./packages/*/src/main"]
}
},
"include": [
"./packages/*/src/**/*"
]
"include": ["./packages/*/src/**/*"]
}
15 changes: 5 additions & 10 deletions typedoc.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,21 +13,16 @@
},
"tsconfig": "./tsconfig.json",
"customCss": "./node_modules/typedoc-custom-css/custom.css",
"entryPoints": [
"./packages/*/src/main/index.ts"
],
"entryPoints": ["./packages/*/src/main/index.ts"],
"plugin": ["typedoc-plugin-mdn-links"],
"externalSymbolLinkMappings": {
"doubter": {
"Issue": "https://smikhalevski.github.io/doubter/latest/interfaces/core.Issue.html",
"ParseOptions": "https://smikhalevski.github.io/doubter/latest/interfaces/core.ParseOptions.html",
"Shape": "https://smikhalevski.github.io/doubter/latest/classes/core.Shape.html"
},
"typescript": {
"Promise": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"
},
"global": {
"Date": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date",
"File": "https://developer.mozilla.org/en-US/docs/Web/API/File"
}
},
"compilerOptions": {
"skipLibCheck": true
}
}

0 comments on commit 5d15440

Please sign in to comment.