@fvc/card 3.0.2 → 3.0.3-next-d4799a7fa99a8ef4e7e8adfc3793fd349346277e

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.
Files changed (2) hide show
  1. package/CHANGELOG.md +183 -0
  2. package/package.json +6 -5
package/CHANGELOG.md ADDED
@@ -0,0 +1,183 @@
1
+ # @fvc/card
2
+
3
+ ## 3.0.3-next-d4799a7fa99a8ef4e7e8adfc3793fd349346277e
4
+
5
+ ### Patch Changes
6
+
7
+ - 51a1a4c: Include `CHANGELOG.md` inside every published `@fvc/*` tarball.
8
+
9
+ Until this patch, `packages/<pkg>/package.json#files` only declared
10
+ `dist/lib/index.js`, `dist/lib/<pkg>`, and `package.json`, which
11
+ meant `npm pack` skipped the package's `CHANGELOG.md` even though
12
+ it is generated by Changesets at release time and lives at the
13
+ package root. Consumers had no way to read the changelog after
14
+ installing the package — they had to visit GitLab.
15
+
16
+ This patch adds `"CHANGELOG.md"` to every publishable package's
17
+ `files` array, including the scaffolder template
18
+ (`codegen/templates/component/package.json.hbs`) so new packages
19
+ inherit the setting from day one. After this ships, running
20
+ `npm view @fvc/<pkg>@<latest>` returns a tarball whose manifest
21
+ includes `CHANGELOG.md`, and `cat node_modules/@fvc/<pkg>/CHANGELOG.md`
22
+ on the consumer side returns the changelog content directly.
23
+
24
+ No component source changes. This is metadata-only, but it is a
25
+ patch bump on every package because the published-tarball contents
26
+ change — a deliberately conservative semver choice for a release
27
+ that materially affects what consumers receive on `npm install`.
28
+
29
+ - Updated dependencies [48791ab]
30
+ - Updated dependencies [51a1a4c]
31
+ - @fvc/typography@3.0.3-next-d4799a7fa99a8ef4e7e8adfc3793fd349346277e
32
+ - @fvc/box@1.1.3-next-d4799a7fa99a8ef4e7e8adfc3793fd349346277e
33
+ - @fvc/utils@3.0.3-next-d4799a7fa99a8ef4e7e8adfc3793fd349346277e
34
+
35
+ ## 3.0.2
36
+
37
+ ### Patch Changes
38
+
39
+ - 325c540: README and keywords
40
+ - Updated dependencies [e601138]
41
+ - Updated dependencies [cd80d11]
42
+ - Updated dependencies [325c540]
43
+ - @fvc/utils@3.0.2
44
+ - @fvc/typography@3.0.2
45
+ - @fvc/box@1.1.2
46
+
47
+ ## 3.0.2-rc.0
48
+
49
+ ### Patch Changes
50
+
51
+ - 325c540: README and keywords
52
+ - Updated dependencies [cd80d11]
53
+ - Updated dependencies [325c540]
54
+ - @fvc/typography@3.0.2-rc.0
55
+ - @fvc/utils@3.0.2-rc.0
56
+ - @fvc/box@1.1.2-rc.0
57
+
58
+ ## 3.0.1
59
+
60
+ ### Patch Changes
61
+
62
+ - f176af2: Clean up stale pre-release suffix from @fvc/\* peer dependency ranges
63
+
64
+ The v3.0.0 release shipped to npm with peer dependency ranges still
65
+ carrying the `-rc.0` pre-release suffix from the release branch's
66
+ pre-mode bump. Concretely, `@fvc/card@3.0.0`'s manifest on npm
67
+ @latest declared:
68
+
69
+ ```json
70
+ "peerDependencies": {
71
+ "@fvc/utils": "^3.0.0-rc.0",
72
+ "@fvc/typography": "^3.0.0-rc.0"
73
+ }
74
+ ```
75
+
76
+ Root cause is the interaction between Changesets' exit-mode behaviour
77
+ and the `onlyUpdatePeerDependentsWhenOutOfRange` experimental flag,
78
+ which we had set to `true`. Inside `@changesets/apply-release-plan`'s
79
+ `shouldUpdateDependencyBasedOnConfig`:
80
+
81
+ ```js
82
+ if (!semverSatisfies(release.version, depVersionRange)) {
83
+ // out of range → always update
84
+ return true;
85
+ }
86
+ if (depType === 'peerDependencies') {
87
+ shouldUpdate = !onlyUpdatePeerDependentsWhenOutOfRange;
88
+ }
89
+ ```
90
+
91
+ In exit mode `utils` goes from `3.0.0-rc.0` to `3.0.0`. The
92
+ peer-range `^3.0.0-rc.0` still semver-satisfies `3.0.0` (rc.0 sorts
93
+ before stable per semver), so the `out-of-range` branch is skipped.
94
+ With the flag set to `true`, `shouldUpdate` collapses to `false`
95
+ and peer ranges are intentionally left untouched. The package then
96
+ ships to @latest with a stale pre-release range.
97
+
98
+ This is not a Changesets bug — the library is correctly honouring
99
+ its configured behaviour — but the combination is wrong for our
100
+ monorepo's lifecycle. This patch:
101
+ 1. Removes the `___experimentalUnsafeOptions_WILL_CHANGE_IN_PATCH`
102
+ block from `.changeset/config.json`, restoring Changesets' default
103
+ behaviour of updating internal peer-dep ranges on every bump of
104
+ the peer package. This eliminates the stale-suffix path
105
+ permanently: every future release of `@fvc/utils` (or any other
106
+ internal peer) will refresh its dependents' peer ranges
107
+ deterministically.
108
+ 2. Patch-bumps every package whose peer-deps need to be refreshed
109
+ on `@latest`: `utils` (driver of the cascade), plus `card`,
110
+ `input`, `provider`, and `typography` (the four packages whose
111
+ on-disk peer ranges still carry the `-rc.0` suffix from the
112
+ v3.0.0 cycle). When `prepare:latest` runs `bunx changeset
113
+ version` against this changeset under the new config, the
114
+ pre-release suffix is rewritten away as part of the normal
115
+ peer-range update path.
116
+
117
+ Trade-off accepted: every future bump of an internal peer (utils
118
+ in particular) will trigger a peer-range refresh in its dependents.
119
+ At our current scale (~5 internal-peer relationships) this is a
120
+ non-issue and produces tighter peer pinning, which is desirable for
121
+ a controlled monorepo. The alternative — a custom CI sanitiser
122
+ script — would have been a permanent workaround for a config we
123
+ were never supposed to set in the first place.
124
+
125
+ No source code in any package changes.
126
+
127
+ - Updated dependencies [f176af2]
128
+ - @fvc/utils@3.0.1
129
+ - @fvc/typography@3.0.1
130
+
131
+ ## 3.0.0
132
+
133
+ ## 3.0.0-rc.0
134
+
135
+ ### Patch Changes
136
+
137
+ - Updated dependencies [f3dcc20]
138
+ - @fvc/utils@3.0.0-rc.0
139
+ - @fvc/typography@3.0.0-rc.0
140
+
141
+ ## 2.0.1
142
+
143
+ ### Patch Changes
144
+
145
+ - b2d9ee6: fix(peer): drop the `-rc.0` suffix from `@fvc/*` peer dependency ranges
146
+
147
+ After release/2.0.0 was finalised, the `release:exit` step did not
148
+ strip the pre-release suffix from peer dependency ranges in five
149
+ packages. The published manifests on `@latest` therefore announced
150
+ that they accept pre-release versions of their internal peers (for
151
+ example `@fvc/utils@^2.0.0-rc.0`) when the intent was the stable
152
+ range (`^2.0.0`). This patch restores the stable ranges.
153
+
154
+ Ranges corrected on this release:
155
+ - `@fvc/card` peer `@fvc/typography`: `^2.0.0-rc.0` → `^2.0.0`
156
+ - `@fvc/card` peer `@fvc/utils`: `^2.0.0-rc.0` → `^2.0.0`
157
+ - `@fvc/input` peer `@fvc/utils`: `^2.0.0-rc.0` → `^2.0.0`
158
+ - `@fvc/provider` peer `@fvc/utils`: `^2.0.0-rc.0` → `^2.0.0`
159
+ - `@fvc/typography` peer `@fvc/utils`: `^2.0.0-rc.0` → `^2.0.0`
160
+ - `@fvc/richtext` peer `@fvc/button`: `^1.2.5-rc.0` → `^1.2.5`
161
+
162
+ No code change is shipped with this patch. Consumers already
163
+ running stable versions of the affected peers (`@fvc/utils@2.0.0`,
164
+ `@fvc/typography@2.0.0`, `@fvc/button@1.2.5`) were not seeing a
165
+ runtime break — the pre-release range still semantically satisfies
166
+ the stable peer — but the manifest was misleading and could trip
167
+ dependency analysers, registry tooling, and stricter package
168
+ managers.
169
+
170
+ A follow-up CI change will harden `release:exit` so the suffix is
171
+ guaranteed to be stripped on every future release.
172
+
173
+ ## 2.0.0
174
+
175
+ ## 2.0.0-rc.0
176
+
177
+ ### Patch Changes
178
+
179
+ - Updated dependencies [45936ec]
180
+ - Updated dependencies [e0a3c27]
181
+ - Updated dependencies [0d71f57]
182
+ - @fvc/utils@2.0.0-rc.0
183
+ - @fvc/typography@2.0.0-rc.0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fvc/card",
3
- "version": "3.0.2",
3
+ "version": "3.0.3-next-d4799a7fa99a8ef4e7e8adfc3793fd349346277e",
4
4
  "keywords": [
5
5
  "react",
6
6
  "react-component",
@@ -16,7 +16,8 @@
16
16
  "files": [
17
17
  "dist/lib/index.js",
18
18
  "dist/lib/card",
19
- "package.json"
19
+ "package.json",
20
+ "CHANGELOG.md"
20
21
  ],
21
22
  "exports": {
22
23
  ".": {
@@ -37,9 +38,9 @@
37
38
  "test": "bun test --preload ../../tests/happydom.ts --preload ../../tests/testing-library.tsx"
38
39
  },
39
40
  "peerDependencies": {
40
- "@fvc/box": "^1.1.2",
41
- "@fvc/typography": "^3.0.2",
42
- "@fvc/utils": "^3.0.2",
41
+ "@fvc/box": "1.1.3-next-d4799a7fa99a8ef4e7e8adfc3793fd349346277e",
42
+ "@fvc/typography": "3.0.3-next-d4799a7fa99a8ef4e7e8adfc3793fd349346277e",
43
+ "@fvc/utils": "3.0.3-next-d4799a7fa99a8ef4e7e8adfc3793fd349346277e",
43
44
  "react": "^18.0.0",
44
45
  "antd": "^5.0.0"
45
46
  }