-
#2785
97f8f6cf5
Thanks @vsumner! - Drop support for node 14 and 16. Support node LTS and up. -
#2787
f50049004
Thanks @vsumner! - Drop support for React 17
- Updated dependencies [
97f8f6cf5
]:- @shopify/predicates@3.1.0
- #2718
591e65366
Thanks @dependabot! - Bump @babel/traverse from 7.17.9 to 7.23.2
- #2583
2aa32e8b8
Thanks @BPScott! - Add explictreturn undefined
to functions that had implicit returns
- #2409
0bff6fad7
Thanks @BPScott! - Update types to account changes in TypeScript 4.8 and 4.9. Propogate contstraints on generic types and update type usage relating toWindow
andNavigator
. Technically this makes some types stricter, as attempting to passnull|undefined
into certain functions is now disallowed by TypeScript, but these were never expected runtime values in the first place.
-
#2389
03c1abc8c
Thanks @BPScott! - Add types field to package.json export maps to support typescript consumers that usemoduleResolution: "node16"
-
Updated dependencies [
03c1abc8c
]:- @shopify/predicates@3.0.1
- Updated tests to work with React 18 [#2297]
- Drop support for node 12 and Safari 10, 11 and 12. Remove wildcard export in exports field. [#2277]
- Correct wildcard export to
./*
[#2209]
- Use
./*
instead of./
in package.json exports to fix deprecation warning. [#2184]
- Remove devDependency on
@shopify/useful-types
by using built-in types. [#2163]
- No updates. Transitive dependency bump.
- Rerelease after failed publish. No code changes.
- No updates. Transitive dependency bump.
- No updates. Transitive dependency bump.
- Fixed babel helpers file being generated with incorrect filename in esm build. [#2082]
- Migrate from
sewing-kit-next
toloom
for building - package build output remains identical. [#2039]
- Enable type checking in tests and fix type errors. [#2011]
- Added file exclusion for tests to package.json. [#2005]
- Updated build tooling, types are now compiled with TypeScript 4.3. [#1997]
- Ensure
tsconfig.tsbuildinfo
file is not uploaded to the npm registry. [#1982]
- Update to latest sewing-kit-next for build. Update
types
/typesVersions
fields to point directly into the build folder [#1980]
- Officially supports React
17.x
1969
- No updates. Transitive dependency bump.
- Update minimum supported node version to 12.14.0. Add engines field to help enforce usage of this version. #1906
- [Patch] Remove TypeScript type from distributed mjs #1845
- Removed dependency on tslib, as we no-longer compile with
tsc
. #1829
- Updated multi-build outputs to include mandatory extensions to fix "Module not found" issues reported by ESM supported bundlers #1759
- Add new build outputs (CommonJS, ESM, esnext, Node) for greater tree-shakability #1698
- Updated
fast-deep-equal
dependency to^3.1.3
#1710
- Export
StringMapper
interface #1655
- Updated
tslib
dependency to^1.14.1
. #1657
- new
asChoiceField
utility function to supportCheckbox
andRadioButton
#1070
- Fixed using multiple layers deep of nested
<List />
inside of<List />
- Extend the return type of the submit handler for
FormState
component to accept a promise of bothvoid
andRemoteError[]
. #736
- validator signatures produced by
validate()
no longer require afields
param. #714
FormState.Nested
no longer breaks when used in aFormState.List
and an item is added #698
- when
validateOnSubmit
is enabled, validation errors are surfaced on the form'serrors
. #601
isNumeric
function ReGex now matches for negative numbers. This impacts users ofisNumericString
validator function relying on its previous behaviour of only allowing positive numbers. To reintroduce that behaviour please useisPostiveNumericString
<Nested />
and<List />
: removed logic inshouldComponentUpdate()
limiting updates
- You can now provide
externalErrors
to theFormState
component to be merged into the form'serror
objects.
- lodash is no longer used internally. #475
- Fixes validators for cases where
externalErrors
are not provided. #504
- You can now use the onInitialValueChanged prop with fields having nested properties. #464
submit
now checks for the existence ofpreventDefault
on the event passed in before calling it. #465
- You can control how
<FormState />
reacts to changes in the initialValue prop using onInitialValueChanged.
<List />
supportsgetChildKey
to provide customkey
s for it's children. #387
<List />
no longer breaks on name generation.
- The
validateRequired
helper can be used to generate validators that run even on empty input.
- Validators that depend on
FieldState
have more robust typing.
- When validators fail during a submit submitting is reset to false.
- The
validateOnSubmit
prop can be used to have validators run before theonSubmit
function is called and will preventonSubmit
from being called if any fail.
- Fixed using multiple layers deep of Nested and List breaking the state.
- No longer accidentally import all of lodash.
- Validators based on
validate
now always succeed for an empty input. Therequired
andrequiredString
validators continue to behave the same way they used to.
- Fixed Nested and List component race condition. Nested and List now pass a function to their
onChange
prop instead of an object so that the data object will be created withinsetState
.