bippy 0.2.19 → 0.2.21

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/dist/sw.d.cts ADDED
@@ -0,0 +1,68 @@
1
+ import { FiberRoot, Fiber as Fiber$1, Lanes, ReactContext } from 'react-reconciler';
2
+
3
+ interface ReactDevToolsGlobalHook {
4
+ checkDCE: (fn: unknown) => void;
5
+ supportsFiber: boolean;
6
+ supportsFlight: boolean;
7
+ renderers: Map<number, ReactRenderer>;
8
+ hasUnsupportedRendererAttached: boolean;
9
+ onCommitFiberRoot: (rendererID: number, root: FiberRoot, priority: void | number) => void;
10
+ onCommitFiberUnmount: (rendererID: number, fiber: Fiber) => void;
11
+ onPostCommitFiberRoot: (rendererID: number, root: FiberRoot) => void;
12
+ inject: (renderer: ReactRenderer) => number;
13
+ _instrumentationSource?: string;
14
+ _instrumentationIsActive?: boolean;
15
+ _sw?: boolean;
16
+ }
17
+ /**
18
+ * Represents a react-internal Fiber node.
19
+ */
20
+ type Fiber<T = any> = Omit<Fiber$1, 'stateNode' | 'dependencies' | 'child' | 'sibling' | 'return' | 'alternate' | 'memoizedProps' | 'pendingProps' | 'memoizedState' | 'updateQueue'> & {
21
+ stateNode: T;
22
+ dependencies: Dependencies | null;
23
+ child: Fiber | null;
24
+ sibling: Fiber | null;
25
+ return: Fiber | null;
26
+ alternate: Fiber | null;
27
+ memoizedProps: Props;
28
+ pendingProps: Props;
29
+ memoizedState: MemoizedState;
30
+ updateQueue: {
31
+ lastEffect: Effect | null;
32
+ [key: string]: unknown;
33
+ };
34
+ };
35
+ interface ReactRenderer {
36
+ version: string;
37
+ bundleType: 0 | 1;
38
+ findFiberByHostInstance?: (hostInstance: unknown) => Fiber | null;
39
+ }
40
+ interface ContextDependency<T> {
41
+ context: ReactContext<T>;
42
+ memoizedValue: T;
43
+ observedBits: number;
44
+ next: ContextDependency<unknown> | null;
45
+ }
46
+ interface Dependencies {
47
+ lanes: Lanes;
48
+ firstContext: ContextDependency<unknown> | null;
49
+ }
50
+ interface Effect {
51
+ next: Effect | null;
52
+ create: (...args: unknown[]) => unknown;
53
+ destroy: ((...args: unknown[]) => unknown) | null;
54
+ deps: unknown[] | null;
55
+ tag: number;
56
+ [key: string]: unknown;
57
+ }
58
+ interface MemoizedState {
59
+ memoizedState: unknown;
60
+ next: MemoizedState | null;
61
+ [key: string]: unknown;
62
+ }
63
+ interface Props {
64
+ [key: string]: unknown;
65
+ }
66
+ declare global {
67
+ var __REACT_DEVTOOLS_GLOBAL_HOOK__: ReactDevToolsGlobalHook | undefined;
68
+ }
package/dist/sw.d.ts ADDED
@@ -0,0 +1,68 @@
1
+ import { FiberRoot, Fiber as Fiber$1, Lanes, ReactContext } from 'react-reconciler';
2
+
3
+ interface ReactDevToolsGlobalHook {
4
+ checkDCE: (fn: unknown) => void;
5
+ supportsFiber: boolean;
6
+ supportsFlight: boolean;
7
+ renderers: Map<number, ReactRenderer>;
8
+ hasUnsupportedRendererAttached: boolean;
9
+ onCommitFiberRoot: (rendererID: number, root: FiberRoot, priority: void | number) => void;
10
+ onCommitFiberUnmount: (rendererID: number, fiber: Fiber) => void;
11
+ onPostCommitFiberRoot: (rendererID: number, root: FiberRoot) => void;
12
+ inject: (renderer: ReactRenderer) => number;
13
+ _instrumentationSource?: string;
14
+ _instrumentationIsActive?: boolean;
15
+ _sw?: boolean;
16
+ }
17
+ /**
18
+ * Represents a react-internal Fiber node.
19
+ */
20
+ type Fiber<T = any> = Omit<Fiber$1, 'stateNode' | 'dependencies' | 'child' | 'sibling' | 'return' | 'alternate' | 'memoizedProps' | 'pendingProps' | 'memoizedState' | 'updateQueue'> & {
21
+ stateNode: T;
22
+ dependencies: Dependencies | null;
23
+ child: Fiber | null;
24
+ sibling: Fiber | null;
25
+ return: Fiber | null;
26
+ alternate: Fiber | null;
27
+ memoizedProps: Props;
28
+ pendingProps: Props;
29
+ memoizedState: MemoizedState;
30
+ updateQueue: {
31
+ lastEffect: Effect | null;
32
+ [key: string]: unknown;
33
+ };
34
+ };
35
+ interface ReactRenderer {
36
+ version: string;
37
+ bundleType: 0 | 1;
38
+ findFiberByHostInstance?: (hostInstance: unknown) => Fiber | null;
39
+ }
40
+ interface ContextDependency<T> {
41
+ context: ReactContext<T>;
42
+ memoizedValue: T;
43
+ observedBits: number;
44
+ next: ContextDependency<unknown> | null;
45
+ }
46
+ interface Dependencies {
47
+ lanes: Lanes;
48
+ firstContext: ContextDependency<unknown> | null;
49
+ }
50
+ interface Effect {
51
+ next: Effect | null;
52
+ create: (...args: unknown[]) => unknown;
53
+ destroy: ((...args: unknown[]) => unknown) | null;
54
+ deps: unknown[] | null;
55
+ tag: number;
56
+ [key: string]: unknown;
57
+ }
58
+ interface MemoizedState {
59
+ memoizedState: unknown;
60
+ next: MemoizedState | null;
61
+ [key: string]: unknown;
62
+ }
63
+ interface Props {
64
+ [key: string]: unknown;
65
+ }
66
+ declare global {
67
+ var __REACT_DEVTOOLS_GLOBAL_HOOK__: ReactDevToolsGlobalHook | undefined;
68
+ }
package/package.json CHANGED
@@ -1,127 +1,122 @@
1
1
  {
2
- "name": "bippy",
3
- "version": "0.2.19",
4
- "description": "hack into react internals",
5
- "keywords": [
6
- "bippy",
7
- "react",
8
- "react-instrumentation",
9
- "react instrumentation",
10
- "fiber",
11
- "internals"
12
- ],
13
- "homepage": "https://bippy.dev",
14
- "bugs": {
15
- "url": "https://github.com/aidenybai/bippy/issues"
16
- },
17
- "repository": {
18
- "type": "git",
19
- "url": "git+https://github.com/aidenybai/bippy.git"
20
- },
21
- "license": "MIT",
22
- "author": {
23
- "name": "Aiden Bai",
24
- "email": "aiden@million.dev"
25
- },
26
- "sideEffects": false,
27
- "type": "module",
28
- "exports": {
29
- "./package.json": "./package.json",
30
- ".": {
31
- "import": {
32
- "types": "./dist/index.d.ts",
33
- "default": "./dist/index.js"
34
- },
35
- "require": {
36
- "types": "./dist/index.d.cts",
37
- "default": "./dist/index.cjs"
38
- }
39
- },
40
- "./core": {
41
- "import": {
42
- "types": "./dist/core.d.ts",
43
- "default": "./dist/core.js"
44
- },
45
- "require": {
46
- "types": "./dist/core.d.cts",
47
- "default": "./dist/core.cjs"
48
- }
49
- },
50
- "./sw": {
51
- "import": {
52
- "types": "./dist/sw.d.ts",
53
- "default": "./dist/sw.js"
54
- },
55
- "require": {
56
- "types": "./dist/sw.d.cts",
57
- "default": "./dist/sw.cjs"
58
- }
59
- },
60
- "./inspect": {
61
- "import": {
62
- "types": "./dist/inspect.d.ts",
63
- "default": "./dist/inspect.js"
64
- },
65
- "require": {
66
- "types": "./dist/inspect.d.cts",
67
- "default": "./dist/inspect.cjs"
68
- }
69
- },
70
- "./dist/*": "./dist/*.js",
71
- "./dist/*.js": "./dist/*.js",
72
- "./dist/*.cjs": "./dist/*.cjs",
73
- "./dist/*.mjs": "./dist/*.mjs"
74
- },
75
- "main": "dist/index.js",
76
- "module": "dist/index.js",
77
- "browser": "dist/index.global.js",
78
- "types": "dist/index.d.ts",
79
- "files": [
80
- "dist",
81
- "bin",
82
- "package.json",
83
- "README.md",
84
- "LICENSE"
85
- ],
86
- "scripts": {
87
- "build": "NODE_ENV=production tsup",
88
- "dev": "NODE_ENV=development tsup --watch",
89
- "lint": "pnpm biome lint --write src/*.ts",
90
- "format": "pnpm biome format --write src/*.ts",
91
- "check": "pnpm biome check --write src/*.ts",
92
- "publint": "publint",
93
- "test": "vitest --dom",
94
- "coverage": "vitest run --coverage --dom",
95
- "prepublishOnly": "pnpm build"
96
- },
97
- "devDependencies": {
98
- "@biomejs/biome": "1.9.4",
99
- "@testing-library/dom": "^10.4.0",
100
- "@testing-library/react": "^16.1.0",
101
- "@types/d3": "^7.4.3",
102
- "@types/node": "^20",
103
- "@types/react": "^18.3.12",
104
- "@types/react-dom": "^19.0.2",
105
- "@types/react-reconciler": "^0.28.9",
106
- "@vitest/coverage-istanbul": "2.1.8",
107
- "d3": "^7.9.0",
108
- "esbuild": "^0.24.2",
109
- "esbuild-plugin-inline-worker": "^0.1.1",
110
- "happy-dom": "^15.11.7",
111
- "pkg-pr-new": "^0.0.39",
112
- "publint": "^0.2.12",
113
- "react": "19.0.0",
114
- "react-devtools-inline": "^6.0.1",
115
- "react-dom": "19.0.0",
116
- "react-inspector": "^6.0.2",
117
- "react-reconciler": "^0.31.0",
118
- "react-refresh": "^0.16.0",
119
- "terser": "^5.36.0",
120
- "tsup": "^8.2.4",
121
- "vitest": "^2.1.8"
122
- },
123
- "packageManager": "pnpm@9.15.2",
124
- "publishConfig": {
125
- "access": "public"
126
- }
127
- }
2
+ "name": "bippy",
3
+ "version": "0.2.21",
4
+ "description": "hack into react internals",
5
+ "keywords": [
6
+ "bippy",
7
+ "react",
8
+ "react-instrumentation",
9
+ "react instrumentation",
10
+ "fiber",
11
+ "internals"
12
+ ],
13
+ "homepage": "https://bippy.dev",
14
+ "bugs": {
15
+ "url": "https://github.com/aidenybai/bippy/issues"
16
+ },
17
+ "repository": {
18
+ "type": "git",
19
+ "url": "git+https://github.com/aidenybai/bippy.git"
20
+ },
21
+ "license": "MIT",
22
+ "author": {
23
+ "name": "Aiden Bai",
24
+ "email": "aiden@million.dev"
25
+ },
26
+ "sideEffects": false,
27
+ "type": "module",
28
+ "exports": {
29
+ "./package.json": "./package.json",
30
+ ".": {
31
+ "import": {
32
+ "types": "./dist/index.d.ts",
33
+ "default": "./dist/index.js"
34
+ },
35
+ "require": {
36
+ "types": "./dist/index.d.cts",
37
+ "default": "./dist/index.cjs"
38
+ }
39
+ },
40
+ "./core": {
41
+ "import": {
42
+ "types": "./dist/core.d.ts",
43
+ "default": "./dist/core.js"
44
+ },
45
+ "require": {
46
+ "types": "./dist/core.d.cts",
47
+ "default": "./dist/core.cjs"
48
+ }
49
+ },
50
+ "./sw": {
51
+ "import": {
52
+ "types": "./dist/sw.d.ts",
53
+ "default": "./dist/sw.js"
54
+ },
55
+ "require": {
56
+ "types": "./dist/sw.d.cts",
57
+ "default": "./dist/sw.cjs"
58
+ }
59
+ },
60
+ "./inspect": {
61
+ "import": {
62
+ "types": "./dist/inspect.d.ts",
63
+ "default": "./dist/inspect.js"
64
+ },
65
+ "require": {
66
+ "types": "./dist/inspect.d.cts",
67
+ "default": "./dist/inspect.cjs"
68
+ }
69
+ },
70
+ "./dist/*": "./dist/*.js",
71
+ "./dist/*.js": "./dist/*.js",
72
+ "./dist/*.cjs": "./dist/*.cjs",
73
+ "./dist/*.mjs": "./dist/*.mjs"
74
+ },
75
+ "main": "dist/index.js",
76
+ "module": "dist/index.js",
77
+ "browser": "dist/index.global.js",
78
+ "types": "dist/index.d.ts",
79
+ "files": [
80
+ "dist",
81
+ "bin",
82
+ "package.json",
83
+ "README.md",
84
+ "LICENSE"
85
+ ],
86
+ "devDependencies": {
87
+ "@biomejs/biome": "1.9.4",
88
+ "@testing-library/dom": "^10.4.0",
89
+ "@testing-library/react": "^16.1.0",
90
+ "@types/d3": "^7.4.3",
91
+ "@types/node": "^20",
92
+ "@types/react": "^18.3.12",
93
+ "@types/react-dom": "^19.0.2",
94
+ "@types/react-reconciler": "^0.28.9",
95
+ "@vitest/coverage-istanbul": "2.1.8",
96
+ "d3": "^7.9.0",
97
+ "esbuild": "^0.24.2",
98
+ "esbuild-plugin-inline-worker": "^0.1.1",
99
+ "happy-dom": "^15.11.7",
100
+ "pkg-pr-new": "^0.0.39",
101
+ "publint": "^0.2.12",
102
+ "react": "19.0.0",
103
+ "react-devtools-inline": "^6.0.1",
104
+ "react-dom": "19.0.0",
105
+ "react-inspector": "^6.0.2",
106
+ "react-reconciler": "^0.31.0",
107
+ "react-refresh": "^0.16.0",
108
+ "terser": "^5.36.0",
109
+ "tsup": "^8.2.4",
110
+ "vitest": "^2.1.8"
111
+ },
112
+ "publishConfig": {
113
+ "access": "public"
114
+ },
115
+ "scripts": {
116
+ "build": "NODE_ENV=production tsup",
117
+ "dev": "NODE_ENV=development tsup --watch",
118
+ "publint": "publint",
119
+ "test": "vitest --dom",
120
+ "coverage": "vitest run --coverage --dom"
121
+ }
122
+ }