Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…form into versioned-docs
  • Loading branch information
nickgros committed Aug 11, 2023
2 parents 26a49d6 + dabdae4 commit b07caeb
Show file tree
Hide file tree
Showing 101 changed files with 16,766 additions and 14,155 deletions.
1 change: 1 addition & 0 deletions .eslintrc-typescript
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"plugin:react/jsx-runtime"
],
"rules": {
"react/no-deprecated": "warn",
"react/prop-types": 0,
"react/no-find-dom-node": 0,
"react/display-name": 0,
Expand Down
4 changes: 3 additions & 1 deletion .github/stale.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ exemptLabels:
- enhancement
- feature
- theme request
- help wanted
- p1
# Label to use when marking an issue as stale
staleLabel: possibly close
# Comment to post when marking an issue as stale. Set to `false` to disable
Expand All @@ -16,4 +18,4 @@ markComment: >
recent activity. It will be closed if no further activity occurs. Please
leave a comment if this is still an issue for you. Thank you.
# Comment to post when closing a stale issue. Set to `false` to disable
closeComment: This issue was closed because of lack of recent activity. Reoopen if you still need assistance.
closeComment: This issue was closed because of lack of recent activity. Reopen if you still need assistance.
1 change: 1 addition & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ jobs:
- run: echo //registry.npmjs.org/:_authToken=${NPM_TOKEN} > .npmrc
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
- run: git update-index --assume-unchanged .npmrc
- run: npx lerna publish from-package --yes
- if: always()
run: rm .npmrc
52 changes: 51 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,56 @@ it according to semantic versioning. For example, if your PR adds a breaking cha
should change the heading of the (upcoming) version to include a major version bump.
-->
# 5.12.1

## @rjsf/utils

- Updated `retrieveSchemaInternal` allOf logic for precompiled schemas to resolve top level properties fixing [#3817](https://github.com/rjsf-team/react-jsonschema-form/issues/3817)

# 5.12.0

## @rjsf/utils

- Experimental feature:
- Added `experimental_defaultFormStateBehavior = { arrayMinItems: { populate: 'never' } }` (feature [#3796](https://github.com/rjsf-team/react-jsonschema-form/issues/3796))

## @rjsf/validator-ajv8

- Exposing new function `compileSchemaValidatorsCode` to allow creating precompiled validator without a file. This is useful in case when precompiled validator is to be created dynamically. [#3793](https://github.com/rjsf-team/react-jsonschema-form/pull/3793)

## Dev / docs / playground

- update playground vite config to use sources directly, allowing to reload changes in it without additional build step
- moving from `dts-cli` to use individual dev tools directly, updating package publish config
- tsc for generating type definitions and esm modules
- esbuild for CJS bundle
- rollup for UMD bundle
- Updated the `form-props` documentation `arrayMinItems`, added description for `never`.
- Updated the `playground` to add the option for the new `arrayMinItems.populate = 'never'`.

# 5.11.2

## @rjsf/material-ui

- Removed unnecessary import of old `@types/material-ui` which can cause typescript issues in some situations

## @rjsf/utils

- Updated the `resolveAllReferences()` function to use object spreading to update properties and items in a schema rather than directly modifying the schema to avoid issues with frozen object, fixing [#3805](https://github.com/rjsf-team/react-jsonschema-form/issues/3805)

# 5.11.1

## @rjsf/core

- Updated `SchemaField` to ignore errors for `anyOf`/`oneOf` parent schema, fixing [1295](https://github.com/rjsf-team/react-jsonschema-form/issues/1295)

## @rjsf/utils

- Created new `resolveAllReferences()` function to resolve all references within a schema's properties and array items.
- Updated `getClosestMatchingOption()` to use `resolveAllReferences()` for all oneOf/anyOf schemas
- Updated `resolveAnyOrOneOfSchemas()` to use `resolveAllReferences()` for all oneOf/anyOf schemas
- Better handle the `null` case in `withIdRefPrefix`, fixing [#3792](https://github.com/rjsf-team/react-jsonschema-form/pull/3792)

# 5.11.0

## @rjsf/core
Expand Down Expand Up @@ -68,7 +118,7 @@ should change the heading of the (upcoming) version to include a major version b

- Updated the `utility-functions` documentation to add the new `mergeExtraArrayDefaults` flag for the `mergeDefaultWithFormData()` function
- Updated the `form-props` documentation to update the `arrayMinItems` documentation for the new object behavior
- Updated the `playground` to add a checkbox for the new `arrayMinItems.mergeExtraDefaults` flag
- Updated the `playground` to add a checkbox for the new `arrayMinItems.mergeExtraDefaults` flag

# 5.8.2

Expand Down
16 changes: 2 additions & 14 deletions babel.config.js
Original file line number Diff line number Diff line change
@@ -1,25 +1,13 @@
const BABEL_ENV = process.env.BABEL_ENV;
const IS_TEST = BABEL_ENV === 'test';
const ignore = IS_TEST ? [] : ['test/**/*.js'];
const targets = IS_TEST ? { node: 'current' } : {};

module.exports = {
presets: [
[
'@babel/preset-env',
{
modules: ['cjs', 'test'].includes(BABEL_ENV) ? 'commonjs' : false,
targets,
},
],
['@babel/preset-env', { targets: { node: 'current' } }],
[
'@babel/preset-react',
{
runtime: 'automatic',
},
],
'@babel/preset-typescript',
],
plugins: ['@babel/plugin-proposal-class-properties', '@babel/plugin-proposal-optional-chaining'],
ignore,
sourceMaps: 'inline',
};
2 changes: 1 addition & 1 deletion lerna.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"packages": ["packages/*"],
"version": "5.10.0",
"version": "5.12.0",
"$schema": "node_modules/lerna/schemas/lerna-schema.json",
"useNx": true,
"useWorkspaces": true
Expand Down
Loading

0 comments on commit b07caeb

Please sign in to comment.