Skip to content

Commit

Permalink
update latest
Browse files Browse the repository at this point in the history
  • Loading branch information
MrWangJustToDo committed Feb 26, 2024
1 parent f99b82e commit e2e20ba
Show file tree
Hide file tree
Showing 21 changed files with 2,358 additions and 2,183 deletions.
26 changes: 13 additions & 13 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,15 @@
}
},
"devDependencies": {
"@apollo/client": "^3.8.8",
"@apollo/client": "^3.9.5",
"@babel/runtime": "^7.22.5",
"@graphql-codegen/add": "^5.0.0",
"@graphql-codegen/cli": "^5.0.0",
"@graphql-codegen/add": "^5.0.2",
"@graphql-codegen/cli": "^5.0.2",
"@graphql-codegen/import-types-preset": "^3.0.0",
"@graphql-codegen/near-operation-file-preset": "^3.0.0",
"@graphql-codegen/typed-document-node": "^5.0.1",
"@graphql-codegen/typescript": "^4.0.1",
"@graphql-codegen/typescript-operations": "^4.0.1",
"@graphql-codegen/typed-document-node": "^5.0.6",
"@graphql-codegen/typescript": "^4.0.6",
"@graphql-codegen/typescript-operations": "^4.2.0",
"@graphql-typed-document-node/core": "^3.2.0",
"@my-react/react": "workspace:*",
"@my-react/react-dom": "workspace:*",
Expand All @@ -49,19 +49,19 @@
"@my-react/react-refresh": "workspace:*",
"@my-react/react-refresh-tools": "workspace:*",
"@my-react/react-shared": "workspace:*",
"@swc/core": "^1.3.100",
"@swc/core": "^1.4.2",
"@types/lodash": "^4.14.202",
"@types/node": "^20.11.0",
"@types/react": "^18.2.45",
"@types/react-dom": "^18.2.18",
"@types/node": "^20.11.20",
"@types/react": "^18.2.58",
"@types/react-dom": "^18.2.19",
"cross-fetch": "^4.0.0",
"cross-port-killer": "^1.4.0",
"eslint": "^8.55.0",
"eslint": "^8.57.0",
"graphql": "^16.8.0",
"husky": "^8.0.2",
"husky": "^9.0.11",
"lodash": "^4.17.21",
"lodash-es": "^4.17.21",
"prettier": "^3.1.1",
"prettier": "^3.2.5",
"project-tool": "https://github.com/MrWangJustToDo/project-tool.git",
"react": "^18.2.0",
"react-dom": "^18.2.0",
Expand Down
2 changes: 2 additions & 0 deletions packages/myreact-dom/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
"dir": "./dist",
"entryFileNames": "cjs/index.js",
"format": "cjs",
"type": true,
"multiple": true,
"sourcemap": true
},
Expand All @@ -66,6 +67,7 @@
"dir": "./dist",
"entryFileNames": "cjs/server.js",
"format": "cjs",
"type": true,
"multiple": true,
"sourcemap": true
},
Expand Down
1 change: 1 addition & 0 deletions packages/myreact-jsx/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
"dir": "./dist",
"entryFileNames": "cjs/index.js",
"format": "cjs",
"type": true,
"multiple": true,
"sourcemap": true
}
Expand Down
1 change: 1 addition & 0 deletions packages/myreact-reactivity/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
"dir": "./dist",
"entryFileNames": "cjs/index.js",
"format": "cjs",
"type": true,
"multiple": true,
"sourcemap": true
},
Expand Down
1 change: 1 addition & 0 deletions packages/myreact-reconciler/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
"dir": "./dist",
"entryFileNames": "cjs/index.js",
"format": "cjs",
"type": true,
"multiple": true,
"sourcemap": true
}
Expand Down
3 changes: 3 additions & 0 deletions packages/myreact-refresh-tools/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
"dir": "./dist",
"entryFileNames": "cjs/loader.js",
"format": "cjs",
"type": true,
"multiple": true,
"sourcemap": true
}
Expand All @@ -39,6 +40,7 @@
"dir": "./dist",
"entryFileNames": "cjs/runtime.js",
"format": "cjs",
"type": true,
"multiple": true,
"sourcemap": true
}
Expand All @@ -52,6 +54,7 @@
"dir": "./dist",
"entryFileNames": "cjs/webpackPlugin.js",
"format": "cjs",
"type": true,
"multiple": true,
"sourcemap": true
}
Expand Down
2 changes: 2 additions & 0 deletions packages/myreact-refresh/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
"dir": "./dist",
"entryFileNames": "cjs/RefreshBabelPlugin.js",
"format": "cjs",
"type": true,
"multiple": true,
"sourcemap": true
}
Expand All @@ -45,6 +46,7 @@
"dir": "./dist",
"entryFileNames": "cjs/RefreshRuntime.js",
"format": "cjs",
"type": true,
"multiple": true,
"sourcemap": true
}
Expand Down
1 change: 1 addition & 0 deletions packages/myreact-shared/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
"dir": "./dist",
"entryFileNames": "cjs/index.js",
"format": "cjs",
"type": true,
"multiple": true,
"sourcemap": true
}
Expand Down
1 change: 1 addition & 0 deletions packages/myreact-terminal/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
"dir": "./dist",
"entryFileNames": "cjs/index.js",
"format": "cjs",
"type": true,
"multiple": true,
"sourcemap": true
},
Expand Down
4 changes: 3 additions & 1 deletion packages/myreact-vite/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
"dir": "./dist",
"entryFileNames": "cjs/index.js",
"format": "cjs",
"type": true,
"multiple": true,
"sourcemap": true
},
Expand All @@ -50,6 +51,7 @@
"dir": "./dist",
"entryFileNames": "cjs/refreshUtils.js",
"format": "cjs",
"type": true,
"multiple": true,
"sourcemap": true
}
Expand All @@ -66,6 +68,6 @@
"@babel/plugin-transform-react-jsx-source": "^7.22.5"
},
"devDependencies": {
"@types/babel__core": "^7.20.1"
"@types/babel__core": "^7.20.5"
}
}
1 change: 1 addition & 0 deletions packages/myreact-wxs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
"dir": "./dist",
"entryFileNames": "cjs/index.js",
"format": "cjs",
"type": true,
"multiple": true,
"sourcemap": true
}
Expand Down
1 change: 1 addition & 0 deletions packages/myreact/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
"dir": "./dist",
"entryFileNames": "cjs/index.js",
"format": "cjs",
"type": true,
"multiple": true,
"sourcemap": true
},
Expand Down
12 changes: 9 additions & 3 deletions packages/myreact/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,13 @@ const version = enableMockReact.current ? "18.2.0" : __VERSION__;
/**
* @beta
*/
const __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = {};
const __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = {
ReactCurrentActQueue: {},
ReactCurrentBatchConfig: {},
ReactCurrentDispatcher: { current: {} },
ReactCurrentOwner: { current: null },
ReactDebugCurrentFrame: {},
};

/**
* @public
Expand All @@ -95,15 +101,15 @@ const __my_react_scheduler__ = {
yieldTask,
macroTask,
microTask,
}
};

/**
* @public
*/
const __my_react_internal__ = {
MyReactInternalInstance,
globalLoop,

initRenderPlatform,
createReadonlyRef,

Expand Down
Loading

0 comments on commit e2e20ba

Please sign in to comment.