@mittwald/flow-react-components 0.2.0-alpha.1051 → 0.2.0-alpha.1053

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,14 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [0.2.0-alpha.1053](https://github.com/mittwald/flow/compare/0.2.0-alpha.1052...0.2.0-alpha.1053) (2026-08-25)
7
+
8
+ **Note:** Version bump only for package @mittwald/flow-react-components
9
+
10
+ ## [0.2.0-alpha.1052](https://github.com/mittwald/flow/compare/0.2.0-alpha.1051...0.2.0-alpha.1052) (2026-08-25)
11
+
12
+ **Note:** Version bump only for package @mittwald/flow-react-components
13
+
6
14
  # [0.2.0-alpha.1051](https://github.com/mittwald/flow/compare/0.2.0-alpha.1050...0.2.0-alpha.1051) (2026-08-25)
7
15
 
8
16
  **Note:** Version bump only for package @mittwald/flow-react-components
package/MIGRATION.md CHANGED
@@ -1,5 +1,26 @@
1
1
  # Migrations
2
2
 
3
+ Entries are sorted by version, newest first. Find the version you are coming
4
+ from and work your way up.
5
+
6
+ Catching up across many versions? One codemod runs every `0.2.0-alpha` migration
7
+ transform, in the order the changes were released:
8
+
9
+ ```shell
10
+ npx jscodeshift \
11
+ -t https://raw.githubusercontent.com/mittwald/flow/refs/heads/main/packages/codemods/src/transforms/flowAlphaAll.ts \
12
+ --parser tsx \
13
+ src
14
+ ```
15
+
16
+ Replace `src` with your sources folder. It changes files in place — run it on a
17
+ clean git state and review the diff afterwards.
18
+
19
+ The entries below still name their individual codemod, so you can apply a single
20
+ change on its own. Everything without a codemod has to be done by hand, and the
21
+ `0.1.0` → `0.2.0` codemod is not part of `flowAlphaAll` — run that one
22
+ separately, and only when coming from `0.1.0`.
23
+
3
24
  ---
4
25
 
5
26
  ## From version `0.2.0-alpha.1046` to `>=0.2.0-alpha.1047`
@@ -209,6 +230,24 @@ Replace `src` with your sources folder.
209
230
 
210
231
  ---
211
232
 
233
+ ## From version `0.2.0-alpha.801` to `>=0.2.0-alpha.802`
234
+
235
+ ### password-tools: `AsyncRule` and `SyncRule` replaced by `Rule`
236
+
237
+ The `@mittwald/flow-react-components/mittwald-password-tools-js` entry no longer
238
+ exports `AsyncRule` and `SyncRule`. The underlying `@mittwald/password-tools-js`
239
+ merged both into a single abstract `Rule`.
240
+
241
+ ```diff
242
+ - import { AsyncRule } from "@mittwald/flow-react-components/mittwald-password-tools-js";
243
+ + import { Rule } from "@mittwald/flow-react-components/mittwald-password-tools-js";
244
+ ```
245
+
246
+ A custom rule extends `Rule` and may return its result synchronously or as a
247
+ promise — the distinction the two classes used to encode is gone.
248
+
249
+ ---
250
+
212
251
  ## From version `0.2.0-alpha.779` to `>=0.2.0-alpha.780`
213
252
 
214
253
  ### CartesianChart
@@ -329,6 +368,53 @@ for details on what's now supported.
329
368
 
330
369
  ---
331
370
 
371
+ ## From version `0.2.0-alpha.711` to `>=0.2.0-alpha.712`
372
+
373
+ ### `MutedActionError` renamed to `AbortActionError`
374
+
375
+ The error that aborts an `Action` without reporting a failure is now called
376
+ `AbortActionError`. Its static helpers were renamed along with it.
377
+
378
+ ```diff
379
+ - import { MutedActionError } from "@mittwald/flow-react-components";
380
+ + import { AbortActionError } from "@mittwald/flow-react-components";
381
+
382
+ - throw new MutedActionError();
383
+ + throw new AbortActionError();
384
+
385
+ - MutedActionError.isMutedActionError(error);
386
+ + AbortActionError.isAbortActionError(error);
387
+
388
+ - MutedActionError.rethrowIfNotMuted(error);
389
+ + AbortActionError.rethrowIfNotAborted(error);
390
+ ```
391
+
392
+ There is no alias for the old name. The thrown error's `name` changed from
393
+ `"MutedActionError"` to `"AbortActionError"` as well — update any code that
394
+ matches on it.
395
+
396
+ ---
397
+
398
+ ## From version `0.2.0-alpha.693` to `>=0.2.0-alpha.694`
399
+
400
+ ### Form: resets itself after the surrounding modal closes
401
+
402
+ A react-hook-form `<Form>` inside a `Modal` now resets to its default values
403
+ once the modal has closed. Previously it kept what the user had entered, so
404
+ reopening the modal showed the abandoned input.
405
+
406
+ Opt out per form with the new `autoReset` prop:
407
+
408
+ ```diff
409
+ - <Form form={form} onSubmit={onSubmit}>
410
+ + <Form form={form} onSubmit={onSubmit} autoReset={false}>
411
+ ```
412
+
413
+ `autoReset` also takes an object (`autoReset={{ onAfterModalClose: false }}`) so
414
+ further reset triggers can be added without another prop.
415
+
416
+ ---
417
+
332
418
  ## From version `0.2.0-alpha.676` to `>=0.2.0-alpha.696`
333
419
 
334
420
  ### OverlayController.addOnClose / addOnOpen return type changed
@@ -353,6 +439,34 @@ element now.
353
439
 
354
440
  ## From version `0.2.0-alpha.637` to `>=0.2.0-alpha.646`
355
441
 
442
+ ### Action: `action` renamed to `onAction`
443
+
444
+ `Action`'s `action` prop is now called `onAction`, which matches the naming of
445
+ every other event prop in Flow.
446
+
447
+ ```diff
448
+ - <Action action={createOrganization}>
449
+ + <Action onAction={createOrganization}>
450
+ <Button>Organisation anlegen</Button>
451
+ </Action>
452
+ ```
453
+
454
+ `action` was removed from `ActionProps`, so TypeScript reports it as an unknown
455
+ prop. At runtime the old prop still works: `Action` maps it to `onAction` and
456
+ logs a deprecation warning, and an explicit `onAction` wins. The fallback will
457
+ be removed in a future major version.
458
+
459
+ A codemod renames the prop on `Action`:
460
+
461
+ ```shell
462
+ npx jscodeshift \
463
+ -t https://raw.githubusercontent.com/mittwald/flow/refs/heads/main/packages/codemods/src/transforms/flowAlphaActionPropToOnAction.ts \
464
+ --parser tsx \
465
+ src
466
+ ```
467
+
468
+ Replace `src` with your sources folder.
469
+
356
470
  ### Removed ResetButton and SubmitButton Interfaces
357
471
 
358
472
  The `RemoteButtonElementProps`, `ResetButtonProps`, and `SubmitButtonProps`