@dsivd/prestations-ng 19.0.0-beta.4 → 19.0.0-beta.6
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/ANGULAR_SIGNALS.md +3 -9
- package/CHANGELOG.md +16 -0
- package/CONTRIBUTING.md +4 -13
- package/README.md +1 -0
- package/UPGRADING_V19.md +1220 -0
- package/dsivd-prestations-ng-19.0.0-beta.6.tgz +0 -0
- package/fesm2022/dsivd-prestations-ng.mjs +7 -6
- package/fesm2022/dsivd-prestations-ng.mjs.map +1 -1
- package/package.json +1 -1
- package/types/dsivd-prestations-ng.d.ts +1 -1
- package/dsivd-prestations-ng-19.0.0-beta.4.tgz +0 -0
package/ANGULAR_SIGNALS.md
CHANGED
|
@@ -771,13 +771,7 @@ const items = [...this.daysButtons()];
|
|
|
771
771
|
const items = [...(this.daysButtons() ?? [])];
|
|
772
772
|
```
|
|
773
773
|
|
|
774
|
-
### 6.
|
|
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
|
-
###
|
|
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
|
-
###
|
|
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
|
@@ -2,19 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
## Prerequisite
|
|
4
4
|
|
|
5
|
-
- Node
|
|
5
|
+
- Node 22.18+
|
|
6
6
|
- npm 10.2+
|
|
7
7
|
- Chrome or Chromium
|
|
8
8
|
- G++
|
|
9
|
-
- The variable `CHROMIUM_BIN` set in your environment
|
|
10
|
-
|
|
11
|
-
If you're using bashrc.dev.pee, the variable `CHROMIUM_BIN` is already set to `~/slave-apps/chromium-headless-64/chrome`
|
|
12
|
-
|
|
13
|
-
If not, you can set the variable in your `.bashrc` or `.zshrc`:
|
|
14
|
-
|
|
15
|
-
```bash
|
|
16
|
-
export CHROMIUM_BIN=/usr/bin/google-chrome-stable
|
|
17
|
-
```
|
|
18
9
|
|
|
19
10
|
## Developing using the Dev Tool
|
|
20
11
|
|
|
@@ -28,7 +19,7 @@ in both the Dev Tool and the library reload the page.
|
|
|
28
19
|
## Testing the library in integration
|
|
29
20
|
|
|
30
21
|
Since version `8`, we can't use native symlink to integrate `prestations-ng` to
|
|
31
|
-
a prestation such as Skeleton. We can however use `
|
|
22
|
+
a prestation such as Skeleton. We can however use `yarn link` to achieve the same
|
|
32
23
|
result.
|
|
33
24
|
|
|
34
25
|
### In **prestations-ng**
|
|
@@ -73,12 +64,12 @@ run `npm run test:schematics` (at root level).
|
|
|
73
64
|
|
|
74
65
|
- **In prestations-ng**:
|
|
75
66
|
- if it is the first time, execute `npm install` then `npm run build:lib` (at root level)
|
|
76
|
-
- `cd dist/prestations-ng &&
|
|
67
|
+
- `cd dist/prestations-ng && yarn link` (it's critical to link the content of `dist/prestations-ng`, not the root)
|
|
77
68
|
- `npm run build:lib:dev` (at root level)
|
|
78
69
|
|
|
79
70
|
- **In project**:
|
|
80
71
|
- `cd front`
|
|
81
|
-
- `
|
|
72
|
+
- `yarn link @dsivd/prestations-ng` (`yarn unlink @dsivd/prestations-ng` to remove link)
|
|
82
73
|
- `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
74
|
|
|
84
75
|
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`.
|