Skip to content

Commit

Permalink
feat!: release 1.0.0 (pablo-abc#90)
Browse files Browse the repository at this point in the history
* chore: publish

* feat: add `addField` helper function

* chore: publish

* fix(common): fix unset on Safari

* chore: publish

* fix(common): fix unset function

* fix(common): clone on update function

* chore: publish

* docs: add framework examples

* feat: add default submit handler

* feat(core): add `feltesuccess` and `felteerror` events

* feat(core): add support for get requests on default handler

* feat: allow `onError` and `onSubmit` to be asynchronous

* docs(site): update docs

* docs(site): update docs

* fix(react): fix equality checker for files

* chore: publish

* fix(react): fix `stop is not a function` when in hmr

* chore: publish

* fix(react): fix hot module reloading

* fix(reporter-react): use setTimeout to guarantee DOM has rendered

* fix(reporter-tippy): set appropriate store depending on level

* chore: publish

* fix: fix test

* fix: fix test

* fix(react): fix types

* fix(react): fix types

* fix(react): use ref for form

* chore: publish

* fix(react): set initial value on first subscription

* style(site): improve styling of examples

* chore(react): publish

* build: preserve modules for better tree shakking

* chore: publish

* docs(site): update docs

* build: add plugin

* build: add plugin

* chore: publish

* build: only create sourcemaps on prod

* fix: update peer deps

* chore(site): upgrade svelte-markdown

* docs(site): update accessibility docs

* fix(solid): use Solid's observable function instead of our own

* docs: add examples for each framework on README

* docs: add links to examples

* docs: update README

* chore: update peer deps

* chore: preserve modules in cjs

* chore: publish

* chore: point browser field to esm bundle (package.json)

* chore: publish

* refactor(common): move helpers to own files

* feat: pass context  to onSuccess and onError

* docs(site): update submitting documentation

* chore: add changeset

* docs(site): update submitting documentation

* chore: update changeset

* chore: publish

* fix: export events as types

* chore: publish

* feat(common): export mergeErrors util

* docs(site): update README

* feat(core): add debounced validators

* refactor(core): use derived stores

* feat: improve types

* feat: improve types

* test: fix test

* fix: fix type

* test: fix test

* fix: fix types

* fix: fix types

* fix: fix types

* fix: fix types

* feat: make string path of accessors type safe

* fix: fix types

* fix: fix types

* test: add tests for debounced validators

* docs(site): add documentation for debounced and async validations

* docs(site): add note about string path's type safety

* docs(site): add note about string paths' type safety to setters

* refactor!: remove `addWarnValidator` in favour of `addValidator`

* docs(site): add documentation about `addValidator`'s options

* docs(site): mention removal of `addWarnValidator` in migration guide

* style(site): adjust height of sidebar on desktop

* chore: publish

* fix(reporter-react): fix lint warnings

* fix(common): fix types

* refactor!: remove grabbing name from fieldset

* fix: fix types

* refactor!: remove `data-felte-index` support

* refactor!: remove support for `index` prop

* fix: fix issues when merging objects with arrays

* chore: publish

* docs(site): update docs

* docs(site): update docs

* test(common): add tests for util

* feat!: add config object to validators instead of extending Felte

* fix: fix field array validation (WIP)

* fix(common): fix types

* fix: get default touched store from form

* fix: improve types

* feat!: change `errors` shape to be either array or null for values

* test(validator-*): update tests

* test(reporter-svelte): update test

* test(react): update tests

* test(felte): update tests

* test(solid): update tests

* test(core): update tests

* test(common): improve test coverage

* docs(site): update documentation about errors store

* fix(validator-superstruct): fix lint warning

* chore: publish

* fix: fix error filtering

* chore: publish

* docs: update READMEs

* fix: fix validation on submit

* test(common): improve test coverage

* fix: remove unnecessary config options

* fix(core): improve types

* fix(core): receive merged errors/warnings on updater

* fix(core): remove unnecessary helpers

* docs(site): update docs to reflect field arrays

* feat: add isValidating store

* fix(core): fix types and touched store init

* test(core): improve coverage

* docs(site): update custom control documentation

* chore: publish

* fix(solid): fix updater subscribing to whole store

* fix: fix updater subscribing to whole store

* feat: add unique key to field arrays

* feat(core): set isDirty store to true when using shouldTouch

* chore: publish

* feat: add types for keyed data

* test(common): improve test coverage

* chore: publish

* build: lint project on action

* fix(common): fix deepSome's handling of arrays

* fix(core): prevent key assignment to touched and errors store

* chore: publish

* docs(core): update README

* fix: check for strict equality on value change

* fix(common): remove unnecessary equality check

* fix(core|common): fix mergeWith

* feat(core): add `createField` export

* feat: add support for custom controls with createField/useField

* feat: add support for controls created with createField/useField

* test(reporter-svelte): improve test coverage

* test(reporter-svelte): restore real timers after tests

* docs(site): add documentation about `useField`/`createField`

* test(felte): fix test

* chore: publish

* chore: update lock file

* docs(site): update docs

* fix(solid/react): wait for element to be mounted with useField/createField

* chore: publish

* docs(site): update docs for react

* feat: expose isValidating store

* feat: add `interacted` store

* docs(site): add documentation about field arrays

* docs(site): add documentation about `interacted` and `isValidating`

* fix(core): handle reset events

* test: fix tests

* style(site): move to prismjs

* docs(site): change sh highlight

* chore: publish

* feat: add `swapFields` and `moveField` helper functions

* docs(site): fix a11y checks

* fix(reporter-tippy): prevent focus when level is `warning`

* docs(site): add documentation about `moveField` and `swapFields`

* docs(site): update getting started

* docs(site): add section to migration guide of Svelte

* docs(site): update helpers section

* fix(site): prevent tippy from hiding on click

* fix(site): fix home example

* chore: upgrade pnpm

* chore: publish

* chore: add svelte example

* chore: update lock file

* chore: add examples for solid and react

* fix(examples): remove test script

* fix(examples): fix deps for codesandbox

* fix(examples): fix start script

* chore: publish

* fix: update lock file

* fix: update svelte example

* chore: update lock file

* chore: update react example

* fix: fix example names

* fix: fix solid example

* fix(reporter-solid): apply patch from 0.1.15

* chore: publish

* fix: change cjs output to have extension of `.cjs`

* chore: publish

* chore: update lock file

* chore: upgrade svelte kit

* refactor(common): refactor _update and _set

* docs(site): add code example for felte events

* test(common): use uvu

* test(common): switch to nyc

* chore: update lock file

* test(core): use uvu

* chore: remove unused config

* chore: update lock file

* test(reporter-solid): fix tests

* test(felte): use uvu

* chore: update lock file

* fix(felte): fix lint warning

* test: fix tests

* fix(reporter-svelte): show message on render (and move to uvu)

* test(reporter-dom): move to uvu

* fix(reporter-dom): fix lint error

* test(reporter-cvapi): move to uvu

* chore: remove unused files

* fix: replace chai-dom with chai-jsdom

* test: fix tests

* fix: fix lint warning

* chore: update chai-jsdom

* chore: use codecov v2

* chore: add nycrc

* chore: update config

* test: improve coverage

* test: improve coverage

* chore: update config

* fix: remove unnecessary check

* test(validator-*): move to uvu

* test(reporter-tippy): move to uvu

* chore: publish

* test(reporter-solid): move to uvu

* chore: remove jest

* fix: fix lint warnings

* test: update tests

* test: update tests

* test: update tests

* test: fix tests

* chore: update dependencies

* chore: update husky

* chore: update hook

* chore: update lock file

* style(site): fix site style

* fix(site): use exact versions

* chore(site): update dep

* chore(site): update dep

* chore: update lockfile

* chore(site): update dep

* chore(site): update dep

* chore(site): update deps

* chore: update lock file

* fix(site): fix indentation of code in site
  • Loading branch information
pablo-abc authored Feb 14, 2022
1 parent eb9a16a commit b007b7f
Show file tree
Hide file tree
Showing 492 changed files with 29,849 additions and 17,383 deletions.
9 changes: 9 additions & 0 deletions .changeset/angry-cooks-yell.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
'@felte/common': minor
'@felte/core': minor
'felte': minor
'@felte/react': minor
'@felte/solid': minor
---

Add `addField` helper function
6 changes: 6 additions & 0 deletions .changeset/beige-tomatoes-collect.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'@felte/core': patch
'@felte/react': patch
---

Fix hot module reloading
10 changes: 10 additions & 0 deletions .changeset/blue-bags-lie.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
'@felte/core': minor
'@felte/reporter-dom': minor
'@felte/reporter-react': minor
'@felte/reporter-solid': minor
'@felte/reporter-svelte': minor
'@felte/reporter-tippy': minor
---

Change responsibility for adding `aria-invalid` to fields to `@felte/core`
5 changes: 5 additions & 0 deletions .changeset/breezy-shrimps-think.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@felte/core': patch
---

Fix some values disappearing from DOM when removing a field from an array
9 changes: 9 additions & 0 deletions .changeset/breezy-steaks-matter.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
'@felte/common': minor
'@felte/core': minor
'felte': minor
'@felte/react': minor
'@felte/solid': minor
---

Improve types
7 changes: 7 additions & 0 deletions .changeset/calm-foxes-battle.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
'@felte/reporter-react': minor
'@felte/reporter-solid': minor
'@felte/reporter-svelte': minor
---

Add `level` prop to select from which store to obtain validation message. Possible values: `'error' | 'warning'`
9 changes: 9 additions & 0 deletions .changeset/calm-mugs-film.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
'@felte/common': minor
'@felte/core': minor
'felte': minor
'@felte/react': minor
'@felte/solid': minor
---

Add isValidating store
5 changes: 5 additions & 0 deletions .changeset/chatty-bikes-rule.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@felte/react': patch
---

Fix equality checker for files
10 changes: 10 additions & 0 deletions .changeset/chatty-cobras-kick.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
'@felte/common': patch
'@felte/core': patch
'@felte/extender-persist': patch
'felte': patch
'@felte/react': patch
'@felte/solid': patch
---

Fix unset on Safari
10 changes: 10 additions & 0 deletions .changeset/chilly-pigs-sing.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
'@felte/reporter-cvapi': minor
'@felte/reporter-dom': minor
'@felte/reporter-react': minor
'@felte/reporter-solid': minor
'@felte/reporter-svelte': minor
'@felte/reporter-tippy': minor
---

Ensure good behaviour with controls created by `useField`/`createField` by only focusing non-hidden inputs
6 changes: 6 additions & 0 deletions .changeset/clever-moles-switch.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'@felte/reporter-tippy': minor
'@felte/reporter-dom': minor
---

Add support for displaying warnings.
8 changes: 8 additions & 0 deletions .changeset/cool-flowers-beg.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
'@felte/core': major
'felte': major
'@felte/react': major
'@felte/solid': major
---

BREAKING: Stop proxying inputs. This was causing all sorts of race conditions which were a headache to solve. Instead we're going to keep a single recommendation: If you wish to programatically set the value of an input, use the `setFields` helper.
9 changes: 9 additions & 0 deletions .changeset/curly-plums-warn.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
'@felte/common': patch
'@felte/core': patch
'felte': patch
'@felte/react': patch
'@felte/solid': patch
---

Point "browser" field to esm bundle
5 changes: 5 additions & 0 deletions .changeset/curvy-peas-sit.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@felte/reporter-svelte': major
---

BREAKING: change export name to `reporter` to be consistent with other packages
5 changes: 5 additions & 0 deletions .changeset/cyan-cups-glow.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@felte/solid': patch
---

Fix updater subscribing to whole store when calling
8 changes: 8 additions & 0 deletions .changeset/dry-panthers-bow.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
'@felte/core': patch
'felte': patch
'@felte/react': patch
'@felte/solid': patch
---

Fix when publishing as modules
5 changes: 5 additions & 0 deletions .changeset/eighty-maps-admire.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@felte/reporter-tippy': patch
---

Set appropriate store depending on level
8 changes: 8 additions & 0 deletions .changeset/eighty-pillows-pay.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
'@felte/core': minor
'felte': minor
'@felte/react': minor
'@felte/solid': minor
---

Add `feltesuccess` and `felteerror` events
6 changes: 6 additions & 0 deletions .changeset/fifty-bears-type.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'@felte/common': minor
'@felte/core': minor
---

Update types
5 changes: 5 additions & 0 deletions .changeset/flat-beds-collect.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@felte/core': patch
---

Unset also `touched`, `warnings` and `errors` stores when fields are marked for removal
8 changes: 8 additions & 0 deletions .changeset/fluffy-ads-hammer.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
'@felte/common': minor
'@felte/core': minor
'@felte/react': minor
'@felte/solid': minor
---

Make string paths for accessors type safe
5 changes: 5 additions & 0 deletions .changeset/fluffy-clocks-fold.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@felte/reporter-react': patch
---

Use setTimeout to guarantee DOM has rendered before retrieving values
5 changes: 5 additions & 0 deletions .changeset/fluffy-fishes-mate.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@felte/common': patch
---

Clone object on update function
9 changes: 9 additions & 0 deletions .changeset/fuzzy-pears-float.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
'@felte/common': major
'@felte/core': major
'felte': major
'@felte/react': major
'@felte/solid': major
---

BREAKING: When removing an input from an array of inputs, Felte now splices the array instead of setting the value to `null`/`undefined`. This means that an `index` on an array of inputs is no longer a _unique_ identifier and the value can move around if fields are added/removed.
9 changes: 9 additions & 0 deletions .changeset/gentle-pianos-rest.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
'@felte/common': minor
'@felte/core': minor
'felte': minor
'@felte/react': minor
'@felte/solid': minor
---

Add helper functions to context passed to `onSuccess`, `onSubmit` and `onError`
9 changes: 9 additions & 0 deletions .changeset/gold-vans-bow.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
'@felte/common': major
'@felte/core': major
'felte': major
'@felte/react': major
'@felte/solid': major
---

BREAKING: `errors` and `warning` stores will either have `null` or an array of strings as errors
9 changes: 9 additions & 0 deletions .changeset/healthy-lamps-sleep.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
'@felte/common': minor
'@felte/core': minor
'felte': minor
'@felte/react': minor
'@felte/solid': minor
---

Add `interacted` store to show which is the last field the user has interacted with
5 changes: 5 additions & 0 deletions .changeset/heavy-adults-laugh.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@felte/solid': patch
---

Use Solid's observable function instead of our own
9 changes: 9 additions & 0 deletions .changeset/heavy-panthers-tap.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
'@felte/common': patch
'@felte/core': patch
'felte': patch
'@felte/react': patch
'@felte/solid': patch
---

Use `preserveModules` for better tree-shaking
9 changes: 9 additions & 0 deletions .changeset/large-phones-melt.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
'@felte/common': patch
'@felte/core': patch
'felte': patch
'@felte/react': patch
'@felte/solid': patch
---

Add type for keyed Data
5 changes: 5 additions & 0 deletions .changeset/late-shrimps-tie.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@felte/core': patch
---

Calls `reset` helper when a `reset` event is dispatched by the form (e.g. when using a `button[type="reset"]`
8 changes: 8 additions & 0 deletions .changeset/lucky-beds-brake.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
'@felte/core': minor
'felte': minor
'@felte/react': minor
'@felte/solid': minor
---

Add isValidating store
8 changes: 8 additions & 0 deletions .changeset/mean-oranges-bathe.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
'@felte/core': major
'felte': major
'@felte/react': major
'@felte/solid': major
---

BREAKING: `setFields` no longer touches a field by default. It needs to be explicit and it's only possible when passing a string path. E.g. `setField(‘email’ , '[email protected]')` now is `setFields('email', '[email protected]', true)`.
10 changes: 10 additions & 0 deletions .changeset/mighty-feet-remember.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
'@felte/core': major
'felte': major
'@felte/react': major
'@felte/solid': major
---

BREAKING: Remove `data-felte-unset-on-remove` in favour of `data-felte-keep-on-remove`. Felte will now remove fields by default if removed from the DOM.

To keep the same behaviour as before, add `data-felte-keep-on-remove` to any dynamic inputs you had that didn't have `data-felte-unset-on-remove` previously. And remove `data-felte-unset-on-remove` from the inputs that had it, or replace it for `data-felte-keep-on-remove="false"` if it was used to override a parent's attribute.
8 changes: 8 additions & 0 deletions .changeset/mighty-years-matter.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
'@felte/core': major
'felte': major
'@felte/react': major
'@felte/solid': major
---

BREAKING: apply transforms to initialValues
8 changes: 8 additions & 0 deletions .changeset/nasty-geckos-invent.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
'@felte/core': patch
'felte': patch
'@felte/react': patch
'@felte/solid': patch
---

Export events as types
5 changes: 5 additions & 0 deletions .changeset/neat-seals-tickle.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@felte/core': patch
---

Wait for DOM element to be mounted on createField/useField
7 changes: 7 additions & 0 deletions .changeset/nine-birds-knock.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
'@felte/reporter-react': patch
'@felte/reporter-solid': patch
'@felte/reporter-svelte': patch
---

Fix types
5 changes: 5 additions & 0 deletions .changeset/ninety-trees-sneeze.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@felte/common': minor
---

Add isEqual utility to check for strict equality
6 changes: 6 additions & 0 deletions .changeset/perfect-socks-crash.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'@felte/react': patch
'@felte/reporter-react': patch
---

Update peer dependencies
5 changes: 5 additions & 0 deletions .changeset/pink-horses-exist.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@felte/reporter-solid': patch
---

Apply patch from 0.1.15
21 changes: 21 additions & 0 deletions .changeset/pink-walls-prove.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
---
'@felte/reporter-react': major
'@felte/reporter-solid': major
'@felte/reporter-svelte': major
---

BREAKING: Remove `index` prop support

This was done in order to allow and simplify further improvements of the type system.

This means this:

```html
<ValidationMessage index="1" for="email">
```

Should be changed to this:

```html
<ValidationMessage for="email.1">
```
Loading

0 comments on commit b007b7f

Please sign in to comment.