Skip to content

Commit da4a4d7

Browse files
committed
chore: remove react peerDeps on plugin-map-initial-activity
1 parent 03e1d3a commit da4a4d7

4 files changed

Lines changed: 46 additions & 62 deletions

File tree

.pnp.cjs

Lines changed: 1 addition & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 43 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -1,54 +1,45 @@
11
{
2-
"name": "@stackflow/plugin-map-initial-activity",
3-
"version": "1.0.10",
4-
"repository": {
5-
"type": "git",
6-
"url": "https://github.com/daangn/stackflow.git",
7-
"directory": "extensions/plugin-map-initial-activity"
8-
},
9-
"license": "MIT",
10-
"exports": {
11-
".": {
12-
"types": "./dist/index.d.ts",
13-
"require": "./dist/index.js",
14-
"import": "./dist/index.mjs"
15-
}
16-
},
17-
"main": "./dist/index.js",
18-
"module": "./dist/index.mjs",
19-
"types": "./dist/index.d.ts",
20-
"files": [
21-
"dist",
22-
"src",
23-
"README.md"
24-
],
25-
"scripts": {
26-
"build": "yarn build:js && yarn build:dts",
27-
"build:dts": "tsc --emitDeclarationOnly",
28-
"build:js": "node ./esbuild.config.js",
29-
"clean": "rimraf dist",
30-
"dev": "yarn build:js --watch && yarn build:dts --watch",
31-
"typecheck": "tsc --noEmit"
32-
},
33-
"devDependencies": {
34-
"@stackflow/core": "^1.1.0",
35-
"@stackflow/esbuild-config": "^1.0.3",
36-
"@stackflow/react": "^1.3.0",
37-
"esbuild": "^0.23.0",
38-
"rimraf": "^3.0.2",
39-
"typescript": "^5.5.3"
40-
},
41-
"peerDependencies": {
42-
"@stackflow/core": "^1.1.0-canary.0",
43-
"@stackflow/react": "^1.3.0-canary.0"
44-
},
45-
"publishConfig": {
46-
"access": "public"
47-
},
48-
"ultra": {
49-
"concurrent": [
50-
"dev",
51-
"build"
52-
]
53-
}
2+
"name": "@stackflow/plugin-map-initial-activity",
3+
"version": "1.0.10",
4+
"repository": {
5+
"type": "git",
6+
"url": "https://github.com/daangn/stackflow.git",
7+
"directory": "extensions/plugin-map-initial-activity"
8+
},
9+
"license": "MIT",
10+
"exports": {
11+
".": {
12+
"types": "./dist/index.d.ts",
13+
"require": "./dist/index.js",
14+
"import": "./dist/index.mjs"
15+
}
16+
},
17+
"main": "./dist/index.js",
18+
"module": "./dist/index.mjs",
19+
"types": "./dist/index.d.ts",
20+
"files": ["dist", "src", "README.md"],
21+
"scripts": {
22+
"build": "yarn build:js && yarn build:dts",
23+
"build:dts": "tsc --emitDeclarationOnly",
24+
"build:js": "node ./esbuild.config.js",
25+
"clean": "rimraf dist",
26+
"dev": "yarn build:js --watch && yarn build:dts --watch",
27+
"typecheck": "tsc --noEmit"
28+
},
29+
"devDependencies": {
30+
"@stackflow/core": "^1.1.0",
31+
"@stackflow/esbuild-config": "^1.0.3",
32+
"esbuild": "^0.23.0",
33+
"rimraf": "^3.0.2",
34+
"typescript": "^5.5.3"
35+
},
36+
"peerDependencies": {
37+
"@stackflow/core": "^1.1.0-canary.0"
38+
},
39+
"publishConfig": {
40+
"access": "public"
41+
},
42+
"ultra": {
43+
"concurrent": ["dev", "build"]
44+
}
5445
}

extensions/plugin-map-initial-activity/src/mapInitialActivityPlugin.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1+
import type { StackflowPlugin } from "@stackflow/core";
12
import { id, makeEvent } from "@stackflow/core";
2-
import type { StackflowReactPlugin } from "@stackflow/react";
33

44
const SECOND = 1000;
55
const MINUTE = 60 * SECOND;
@@ -13,7 +13,7 @@ type MapInitialActivityPluginOptions = {
1313

1414
export function mapInitialActivityPlugin(
1515
options: MapInitialActivityPluginOptions,
16-
): StackflowReactPlugin {
16+
): StackflowPlugin {
1717
return () => ({
1818
key: "@stackflow/plugin-override-initial-activity",
1919
overrideInitialEvents({ initialEvents }) {

yarn.lock

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2528,13 +2528,11 @@ __metadata:
25282528
dependencies:
25292529
"@stackflow/core": "npm:^1.1.0"
25302530
"@stackflow/esbuild-config": "npm:^1.0.3"
2531-
"@stackflow/react": "npm:^1.3.0"
25322531
esbuild: "npm:^0.23.0"
25332532
rimraf: "npm:^3.0.2"
25342533
typescript: "npm:^5.5.3"
25352534
peerDependencies:
25362535
"@stackflow/core": ^1.1.0-canary.0
2537-
"@stackflow/react": ^1.3.0-canary.0
25382536
languageName: unknown
25392537
linkType: soft
25402538

0 commit comments

Comments
 (0)