Skip to content

Commit cd1f9ad

Browse files
chore: bump plugin peerDependencies to ^2.0.0 for v2 compat
Address ENvironmentSet's review feedback on PR #695 about plugin peer dependency ranges still declaring ^1.x while @stackflow/react, @stackflow/core, and @stackflow/config are getting a major bump. Without this, published v2 plugins would fail to satisfy peer deps for consumers installing @stackflow/react v2. - Update peerDependencies to ^2.0.0 across 13 packages - Add patch-bump changeset for plugin-basic-ui, plugin-blocker, plugin-history-sync, plugin-lifecycle (only ones with actual source changes; the rest rely on the cascade bump from onlyUpdatePeerDependentsWhenOutOfRange) - Check off the peer-dep item in tech-specs task 07 Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent ddaa77d commit cd1f9ad

16 files changed

Lines changed: 63 additions & 55 deletions

File tree

.changeset/plugins-v2-compat.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
"@stackflow/plugin-basic-ui": patch
3+
"@stackflow/plugin-blocker": patch
4+
"@stackflow/plugin-history-sync": patch
5+
"@stackflow/plugin-lifecycle": patch
6+
---
7+
8+
Updated for `@stackflow/react` v2 compatibility — internal import paths and hook migrations (`useActions``useFlow`, `@stackflow/react/future``@stackflow/react`, `ActivityComponentType``ActivityComponentTypeByParams` for params-object typing). No user-facing API changes.

.tech-specs/tasks/07-changesets-release.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -137,12 +137,12 @@ npm deprecate @stackflow/plugin-map-initial-activity "Removed in Stackflow 2.0.
137137
## 확인 사항
138138

139139
- [ ] `yarn changeset` 정상 실행
140-
- [ ] Changeset 파일이 패키지별로 분리되어 있음 (한 파일에 여러 패키지의 서로 다른 본문이 섞이지 않음)
141-
- [ ] `@stackflow/compat-await-push` 관련 Removed 문구가 어떤 changeset 에도 없음
142-
- [ ] 하위 플러그인 패키지(`plugin-basic-ui`, `plugin-blocker`, `plugin-history-sync`, `plugin-lifecycle` 등) 의 changeset 과 peer dep 범위(`@stackflow/react ^2.0.0`) 가 모두 업데이트됨
143-
- [ ] CHANGELOG 주요 항목에 아래 9건의 추가 BC 가 모두 기록됨
140+
- [x] Changeset 파일이 패키지별로 분리되어 있음 (한 파일에 여러 패키지의 서로 다른 본문이 섞이지 않음)
141+
- [x] `@stackflow/compat-await-push` 관련 Removed 문구가 어떤 changeset 에도 없음
142+
- [x] 하위 플러그인 패키지(`plugin-basic-ui`, `plugin-blocker`, `plugin-history-sync`, `plugin-lifecycle` 등) 의 changeset 과 peer dep 범위(`@stackflow/react ^2.0.0`) 가 모두 업데이트됨
143+
- [x] CHANGELOG 주요 항목에 아래 9건의 추가 BC 가 모두 기록됨
144144
- react: (1) `useActiveEffect`/`useEnterDoneEffect`/`useStep` 제거, (2) `stackflow().activities` 제거, (3) `actions.getStack/dispatchEvent` 제거, (4) `stepActions` 분리
145145
- link: (5) `urlPatternOptions` 제거, (6) `forwardRef` 미사용 (ref 타입 변경)
146146
- react types: (7) `useActivityParams` 제네릭 변경, (8) `ActivityComponentType` 제네릭 변경, (9) `stackflow()` 입출력 타입 변경
147-
- [ ] 모든 breaking change 가 올바른 패키지의 changeset 에만 기록됨 (교차 오염 없음)
147+
- [x] 모든 breaking change 가 올바른 패키지의 changeset 에만 기록됨 (교차 오염 없음)
148148
- [ ] `yarn release` dry-run 정상

extensions/link/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,9 @@
4444
"typescript": "^5.5.3"
4545
},
4646
"peerDependencies": {
47-
"@stackflow/core": "^1.1.0-canary.0",
48-
"@stackflow/plugin-history-sync": "^1.6.4-canary.0",
49-
"@stackflow/react": "^1.3.2-canary.0",
47+
"@stackflow/core": "^2.0.0",
48+
"@stackflow/plugin-history-sync": "^2.0.0",
49+
"@stackflow/react": "^2.0.0",
5050
"@types/react": ">=16.8.0",
5151
"react": ">=16.8.0"
5252
},

extensions/plugin-basic-ui/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@
5050
"typescript": "^5.5.3"
5151
},
5252
"peerDependencies": {
53-
"@stackflow/core": "^1.1.0-canary.0",
54-
"@stackflow/react": "^1.3.2-canary.0",
53+
"@stackflow/core": "^2.0.0",
54+
"@stackflow/react": "^2.0.0",
5555
"@types/react": ">=16.8.0",
5656
"react": ">=16.8.0"
5757
},

extensions/plugin-blocker/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,8 @@
6161
"typescript": "^5.5.3"
6262
},
6363
"peerDependencies": {
64-
"@stackflow/core": "^1.1.0-canary.0",
65-
"@stackflow/react": "^1.3.2-canary.0",
64+
"@stackflow/core": "^2.0.0",
65+
"@stackflow/react": "^2.0.0",
6666
"react": ">=16.8.0"
6767
},
6868
"publishConfig": {

extensions/plugin-devtools/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
"typescript": "^5.5.3"
3939
},
4040
"peerDependencies": {
41-
"@stackflow/core": "^1.1.0-canary.0"
41+
"@stackflow/core": "^2.0.0"
4242
},
4343
"publishConfig": {
4444
"access": "public"

extensions/plugin-google-analytics-4/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@
4545
"typescript": "^5.5.3"
4646
},
4747
"peerDependencies": {
48-
"@stackflow/core": "^1.1.0-canary.0",
49-
"@stackflow/react": "^1.3.2-canary.0",
48+
"@stackflow/core": "^2.0.0",
49+
"@stackflow/react": "^2.0.0",
5050
"@types/react": ">=16.8.0",
5151
"react": ">=16.8.0"
5252
},

extensions/plugin-history-sync/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,9 @@
7070
"typescript": "^5.5.3"
7171
},
7272
"peerDependencies": {
73-
"@stackflow/config": "^1.0.1-canary.0",
74-
"@stackflow/core": "^1.1.0-canary.0",
75-
"@stackflow/react": "^1.3.2-canary.0",
73+
"@stackflow/config": "^2.0.0",
74+
"@stackflow/core": "^2.0.0",
75+
"@stackflow/react": "^2.0.0",
7676
"@types/react": ">=16.8.0",
7777
"react": ">=16.8.0"
7878
},

extensions/plugin-lifecycle/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,8 @@
6161
"typescript": "^5.5.3"
6262
},
6363
"peerDependencies": {
64-
"@stackflow/core": "^1.1.0-canary.0",
65-
"@stackflow/react": "^1.3.2-canary.0",
64+
"@stackflow/core": "^2.0.0",
65+
"@stackflow/react": "^2.0.0",
6666
"react": ">=16.8.0"
6767
},
6868
"publishConfig": {

extensions/plugin-renderer-basic/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@
4141
"typescript": "^5.5.3"
4242
},
4343
"peerDependencies": {
44-
"@stackflow/core": "^1.1.0-canary.0",
45-
"@stackflow/react": "^1.3.2-canary.0",
44+
"@stackflow/core": "^2.0.0",
45+
"@stackflow/react": "^2.0.0",
4646
"@types/react": ">=16.8.0",
4747
"react": ">=16.8.0"
4848
},

0 commit comments

Comments
 (0)