- Updated dependencies [
1171b00
]:- @shopify/[email protected]
- Updated dependencies [
2b70145
]:- @shopify/[email protected]
- Updated dependencies [
0fc2d54
]:- @shopify/[email protected]
- Updated dependencies [
5546b1d
,d691952
]:- @shopify/[email protected]
-
#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
,f50049004
]:- @shopify/[email protected]
- @shopify/[email protected]
-
#2718
591e65366
Thanks @dependabot! - Bump @babel/traverse from 7.17.9 to 7.23.2 -
Updated dependencies [
591e65366
]:- @shopify/[email protected]
- Updated dependencies [
a4eae7db3
]:- @shopify/[email protected]
-
#2640
a70ba5c64
Thanks @BPScott! - Fix cyclical import build warning -
Updated dependencies [
a3b5c3fc0
]:- @shopify/[email protected]
-
#2608
ba4da84d5
Thanks @BPScott! - Useimport type
everywhere that we deal with importing types -
Updated dependencies [
ba4da84d5
]:- @shopify/[email protected]
- #2469
60872d86f
Thanks @alexanderMontague! -getDirtyValues
detects nested dirty fields
-
#2583
2aa32e8b8
Thanks @BPScott! - Add explictreturn undefined
to functions that had implicit returns -
Updated dependencies [
2aa32e8b8
]:- @shopify/[email protected]
- #2517
a2ffd5a01
Thanks @weslleyaraujo! - Export DynamicList interface
- #2447
17301959f
Thanks @stephen-last! - fix the type for submit() as it returns a promise and not just void.
- #2395
de19fb2a0
Thanks @QuintonC! - Adds new function, editItem to useDynamicList which exposes the ability to update an existing item within the list.
- #2392
6ef76c3a4
Thanks @PatrickMcLennan! - Created a 'removeItems' method for the 'useDynamicList' hook that accepts an array of indices to remove
-
#2389
03c1abc8c
Thanks @BPScott! - Add types field to package.json export maps to support typescript consumers that usemoduleResolution: "node16"
-
Updated dependencies [
03c1abc8c
]:- @shopify/[email protected]
- @shopify/[email protected]
- #2307
04f570dd9
Thanks @devonpmack! - AddedasChoiceList
helper
- No updates. Transitive dependency bump.
- Add
getDirtyValues
utility function #2270
- Drop support for node 12 and Safari 10, 11 and 12. Remove wildcard export in exports field. [#2277]
- No updates. Transitive dependency bump.
- Correct wildcard export to
./*
[#2209]
- No updates. Transitive dependency bump.
- No updates. Transitive dependency bump.
- Use
./*
instead of./
in package.json exports to fix deprecation warning. [#2184]
- No updates. Transitive dependency bump.
- No updates. Transitive dependency bump.
- Rerelease after failed publish. No code changes.
- No updates. Transitive dependency bump.
- 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]
- No updates. Transitive dependency bump.
- Enable type checking in tests and fix type errors. [#2034]
- Updated build tooling, types are now compiled with TypeScript 4.3. [#1997]
- Added file exclusion for tests to package.json. [#2005]
- Rename test/ to tests/ [#2005]
- 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
- Update minimum supported node version to 12.14.0. Add engines field to help enforce usage of this version. #1906
- Adds a makeCleanDynamicLists function, which adds the ability to set [newDefaultValue, defaultValue] and get the value of a dynamic list. #1871
- Include
dynamicLists
values inonSubmit
type #1865
- Adds reset functionality, dirty state for dynamic list, and the ability to add multiple dynamic lists to a form by adding a dynamicLists parameter to useForm #1828
- Removed dependency on tslib, as we no-longer compile with
tsc
. #1829
- Exporting type ErrorContent #1818
- Undoing blur event change due to additional issues #1809
- Fixed a TypeScript bug in FormMapping for FieldDictionary arrays #1795
- Fixed a bug in
makeCleanAfterSubmit
foruseForm
#1762
- Fixed blur event causing fields to lose focus #1803
- Add ability to reorder dynamic lists #1785
- 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
- Added new functionality to
useDynamicList
. Added the ability to dynamically add more than one list item and the ability to pass in an argument into the dynamic list factory. #1679
- Added
useDynamicList
functionality.useDynamicList
adds the ability to dynamically add and remove list items. #1665
- Updated
tslib
dependency to^1.14.1
. #1657
- New multi-value base field api for
asChoiceField
utility to support<RadioButton />
groups #1615
- Add optional
makeCleanAfterSubmit
param to bothuseSubmit
anduseForm
config (defaults tofalse
) - Provide bound
makeClean
inForm
object returned fromuseForm
- Provide
makeCleanFields
utility for other use cases
- Add optional
allErrors
property toField
type definition that stores all error messages resulting fromrunValidation
#1383
- [Patch] Add optional
value
parameter torunValidation
type definition #1362
- Fixed a bug where onSubmit fieldValues doesn't return empty arrays #1353
- Fixed a bug where useDirty does not update dirty state properly on lists #1353
- Fixed a bug in useList #1335
- Added
reduceFields
utilities #1307
- Fixed a bug in the custom comparator introduced in 0.4.0 #1305
- Overloaded
useList
to accept list as argument (#1308)
- Add option to use a custom comparator for determining if a field is dirty #1296
- Update
isChangeEvent
to check for null (#1288)
- Update reduceField() to check array equality when determining if a field is dirty #1222
- new
useChoiceField
andasChoiceField
functions to supportCheckbox
andRadioButton
#1070
- handle invalid error path for submission errors #1007
- new
positiveIntegerString
validator to validate fractionless numbers #760
notEmptyString
now rejects empty strings, similar tonotEmpty
#759
- now keeps all imperative methods returned by
useForm
reference equal regardless of thefieldBag
changing, preventing needless rerenders ofPureComponent
s (716)
- now expects errors in the form
{field?: string[], message: string}
rather than{fieldPath?: string[], message: string}
to better match common GraphQL api error patterns. - no longer exports
useErrorPropagation
oruseValidateAll
useSubmit
now handles propagating errors and running client validations itself- now exports non-hook utility functions
validateAll
andpropagateErrors
- now correctly depends on
fast-deep-equal
#680 - no longer triggers set-state warnings when the component calling
useSubmit
is unmounted during submission #680
useList
now reinitializes based ondeepEquals
rather than reference equality #675useField
can better tell the difference between field config objects and regular old object literals #675useField
now reinitializes based ondeepEquals
rather than reference equality #675
@shopify/react-form
package