@dsivd/prestations-ng 19.0.0-beta.3 → 19.0.0-beta.5

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.
@@ -771,13 +771,7 @@ const items = [...this.daysButtons()];
771
771
  const items = [...(this.daysButtons() ?? [])];
772
772
  ```
773
773
 
774
- ### 6. Expecting `[binding]` to work with `model()`
775
-
776
- `model()` only accepts `[(two-way)]` or the split form
777
- `[value]="x" (valueChange)="x = $event"`.
778
- A plain `[binding]` will produce a compiler error.
779
-
780
- ### 7. Over-tracking inside `effect()` — forgetting `untracked()`
774
+ ### 6. Over-tracking inside `effect()` forgetting `untracked()`
781
775
 
782
776
  An `effect()` tracks **every** signal it reads, not just the ones you
783
777
  intended as triggers. Reading a signal "just to get its current value"
@@ -805,7 +799,7 @@ effect(() => {
805
799
  });
806
800
  ```
807
801
 
808
- ### 8. Using `untracked()` instead of an equality check
802
+ ### 7. Using `untracked()` instead of an equality check
809
803
 
810
804
  `untracked()` controls what _triggers_ an effect — it does not make a write
811
805
  inside the effect "safe" by itself. If the effect's only tracked dependencies
@@ -834,7 +828,7 @@ effect(() => {
834
828
  });
835
829
  ```
836
830
 
837
- ### 9. Mutating a `model()`'s nested object instead of reassigning
831
+ ### 8. Mutating a `model()`'s nested object instead of reassigning
838
832
 
839
833
  This is the signals-era version of "mutating `@Input()` used to work."
840
834
  Pre-signals, Zone.js-driven change detection re-read template expressions
package/CHANGELOG.md CHANGED
@@ -6,6 +6,22 @@
6
6
 
7
7
  ---
8
8
 
9
+ ## [19.0.0] - should be aligned with prestations-be 19.0.x
10
+
11
+ ### Added
12
+
13
+ - [UPGRADING_V19](UPGRADING_V19.md)
14
+ - Added migration guide
15
+
16
+ - [string.helper.ts](projects/prestations-ng/src/helpers/string.helper.ts)
17
+ - Added a helper for string manipulation
18
+
19
+ - [dictionary-type.ts](projects/prestations-ng/src/sdk-dictionary/dictionary-type.ts)
20
+ - Added dictionary `PlaceholderType` type, `DictionaryType` type and `Language` interface
21
+
22
+ - [HasCustomErrors](projects/prestations-ng/src/has-custom-errors.ts)
23
+ - Added `HasCustomErrors` interface representing a component that has custom error messages
24
+
9
25
  ## [18.3.12]
10
26
 
11
27
  ### Updated
package/CONTRIBUTING.md CHANGED
@@ -28,7 +28,7 @@ in both the Dev Tool and the library reload the page.
28
28
  ## Testing the library in integration
29
29
 
30
30
  Since version `8`, we can't use native symlink to integrate `prestations-ng` to
31
- a prestation such as Skeleton. We can however use `npm link` to achieve the same
31
+ a prestation such as Skeleton. We can however use `yarn link` to achieve the same
32
32
  result.
33
33
 
34
34
  ### In **prestations-ng**
@@ -73,12 +73,12 @@ run `npm run test:schematics` (at root level).
73
73
 
74
74
  - **In prestations-ng**:
75
75
  - if it is the first time, execute `npm install` then `npm run build:lib` (at root level)
76
- - `cd dist/prestations-ng && npm link` (it's critical to link the content of `dist/prestations-ng`, not the root)
76
+ - `cd dist/prestations-ng && yarn link` (it's critical to link the content of `dist/prestations-ng`, not the root)
77
77
  - `npm run build:lib:dev` (at root level)
78
78
 
79
79
  - **In project**:
80
80
  - `cd front`
81
- - `npm link @dsivd/prestations-ng` (`npm unlink @dsivd/prestations-ng` to remove link)
81
+ - `yarn link @dsivd/prestations-ng` (`yarn unlink @dsivd/prestations-ng` to remove link)
82
82
  - `ng g @dsivd/prestations-ng:[YOUR_SCHEMATIC]` (i.e. `ng g @dsivd/prestations-ng:ng-add` or `ng g @dsivd/prestations-ng:update-karma-config` or `ng g @dsivd/prestations-ng:replace-browsers-list`)
83
83
 
84
84
  In your project, you can test any schematic added into [collection.json](projects/prestations-ng/schematics/collection.json).
package/README.md CHANGED
@@ -8,6 +8,7 @@ The generated documentation of our entire library is available online at [https:
8
8
 
9
9
  The documentation is available online at [https://dsi-vd.github.io/prestations-ng/](https://dsi-vd.github.io/prestations-ng/)
10
10
 
11
+ - If you're using **Angular 21**, use `@dsivd/prestations-ng` at version `^19`.
11
12
  - If you're using **Angular 19**, use `@dsivd/prestations-ng` at version `^18`.
12
13
  - If you're using **Angular 17**, use `@dsivd/prestations-ng` at version `^17`.
13
14
  - If you're using **Angular 15**, use `@dsivd/prestations-ng` at version `^16`.