Remove transform-object-set-prototype-of-to-assign (#17958)

This commit is contained in:
liuxingbaoyu
2026-05-01 19:17:02 +02:00
committed by GitHub
parent 35371492fb
commit 51d2fa81e4
12 changed files with 0 additions and 131 deletions
@@ -1,5 +0,0 @@
src
test
*.log
tsconfig.json
tsconfig.tsbuildinfo
@@ -1,19 +0,0 @@
# @babel/plugin-transform-object-set-prototype-of-to-assign
> Turn Object.setPrototypeOf to assignments
See our website [@babel/plugin-transform-object-set-prototype-of-to-assign](https://babeljs.io/docs/babel-plugin-transform-object-set-prototype-of-to-assign) for more information.
## Install
Using npm:
```sh
npm install --save-dev @babel/plugin-transform-object-set-prototype-of-to-assign
```
or using yarn:
```sh
yarn add @babel/plugin-transform-object-set-prototype-of-to-assign --dev
```
@@ -1,41 +0,0 @@
{
"name": "@babel/plugin-transform-object-set-prototype-of-to-assign",
"version": "8.0.0-rc.4",
"description": "Turn Object.setPrototypeOf to assignments",
"repository": {
"type": "git",
"url": "https://github.com/babel/babel.git",
"directory": "packages/babel-plugin-transform-object-set-prototype-of-to-assign"
},
"homepage": "https://babel.dev/docs/en/next/babel-plugin-transform-object-set-prototype-of-to-assign",
"license": "MIT",
"publishConfig": {
"access": "public"
},
"main": "./lib/index.js",
"keywords": [
"babel-plugin"
],
"dependencies": {
"@babel/helper-plugin-utils": "workspace:^"
},
"peerDependencies": {
"@babel/core": "workspace:^"
},
"devDependencies": {
"@babel/core": "workspace:^",
"@babel/helper-plugin-test-runner": "workspace:^"
},
"engines": {
"node": "^20.19.0 || >=22.12.0"
},
"author": "The Babel Team (https://babel.dev/team)",
"exports": {
".": {
"types": "./lib/index.d.ts",
"default": "./lib/index.js"
},
"./package.json": "./package.json"
},
"type": "module"
}
@@ -1,17 +0,0 @@
import { declare } from "@babel/helper-plugin-utils";
export default declare(api => {
api.assertVersion(REQUIRED_VERSION("^7.0.0-0 || ^8.0.0"));
return {
name: "transform-object-set-prototype-of-to-assign",
visitor: {
CallExpression(path, file) {
if (path.get("callee").matchesPattern("Object.setPrototypeOf")) {
path.node.callee = file.addHelper("defaults");
}
},
},
};
});
@@ -1,21 +0,0 @@
/* This file is automatically generated by scripts/generators/tsconfig.ts */
{
"extends": [
"../../tsconfig.base.json",
"../../tsconfig.paths.json"
],
"include": [
"./src/**/*.ts",
"./src/**/*.cts",
"../../lib/globals.d.ts",
"../../scripts/repo-utils/*.d.ts"
],
"references": [
{
"path": "../../packages/babel-helper-plugin-utils"
},
{
"path": "../../packages/babel-core"
}
]
}
-1
View File
@@ -77,7 +77,6 @@
"@babel/plugin-transform-nullish-coalescing-operator": "workspace:^",
"@babel/plugin-transform-numeric-separator": "workspace:^",
"@babel/plugin-transform-object-rest-spread": "workspace:^",
"@babel/plugin-transform-object-set-prototype-of-to-assign": "workspace:^",
"@babel/plugin-transform-object-super": "workspace:^",
"@babel/plugin-transform-optional-catch-binding": "workspace:^",
"@babel/plugin-transform-optional-chaining": "workspace:^",
@@ -70,7 +70,6 @@
"transform-named-capturing-groups-regex",
"transform-new-target",
"transform-object-super",
"transform-object-set-prototype-of-to-assign",
"transform-parameters",
"transform-property-literals",
"transform-proto-to-assign",
@@ -70,7 +70,6 @@ import transformModulesUmd from "@babel/plugin-transform-modules-umd";
import transformNamedCapturingGroupsRegex from "@babel/plugin-transform-named-capturing-groups-regex";
import transformNewTarget from "@babel/plugin-transform-new-target";
import transformObjectSuper from "@babel/plugin-transform-object-super";
import transformObjectSetPrototypeOfToAssign from "@babel/plugin-transform-object-set-prototype-of-to-assign";
import transformParameters from "@babel/plugin-transform-parameters";
import transformPropertyLiterals from "@babel/plugin-transform-property-literals";
import transformProtoToAssign from "@babel/plugin-transform-proto-to-assign";
@@ -162,7 +161,6 @@ export {
transformNamedCapturingGroupsRegex,
transformNewTarget,
transformObjectSuper,
transformObjectSetPrototypeOfToAssign,
transformParameters,
transformPropertyLiterals,
transformProtoToAssign,
@@ -256,8 +254,6 @@ export const all: Record<string, any> = {
"transform-named-capturing-groups-regex": transformNamedCapturingGroupsRegex,
"transform-new-target": transformNewTarget,
"transform-object-super": transformObjectSuper,
"transform-object-set-prototype-of-to-assign":
transformObjectSetPrototypeOfToAssign,
"transform-parameters": transformParameters,
"transform-property-literals": transformPropertyLiterals,
"transform-proto-to-assign": transformProtoToAssign,
-3
View File
@@ -202,9 +202,6 @@
{
"path": "../../packages/babel-plugin-transform-object-rest-spread"
},
{
"path": "../../packages/babel-plugin-transform-object-set-prototype-of-to-assign"
},
{
"path": "../../packages/babel-plugin-transform-object-super"
},
-3
View File
@@ -355,9 +355,6 @@
{
"path": "./packages/babel-plugin-transform-object-rest-spread"
},
{
"path": "./packages/babel-plugin-transform-object-set-prototype-of-to-assign"
},
{
"path": "./packages/babel-plugin-transform-object-super"
},
-3
View File
@@ -320,9 +320,6 @@
"@babel/plugin-transform-object-rest-spread": [
"./packages/babel-plugin-transform-object-rest-spread/src"
],
"@babel/plugin-transform-object-set-prototype-of-to-assign": [
"./packages/babel-plugin-transform-object-set-prototype-of-to-assign/src"
],
"@babel/plugin-transform-object-super": [
"./packages/babel-plugin-transform-object-super/src"
],
-13
View File
@@ -3005,18 +3005,6 @@ __metadata:
languageName: unknown
linkType: soft
"@babel/plugin-transform-object-set-prototype-of-to-assign@workspace:^, @babel/plugin-transform-object-set-prototype-of-to-assign@workspace:packages/babel-plugin-transform-object-set-prototype-of-to-assign":
version: 0.0.0-use.local
resolution: "@babel/plugin-transform-object-set-prototype-of-to-assign@workspace:packages/babel-plugin-transform-object-set-prototype-of-to-assign"
dependencies:
"@babel/core": "workspace:^"
"@babel/helper-plugin-test-runner": "workspace:^"
"@babel/helper-plugin-utils": "workspace:^"
peerDependencies:
"@babel/core": "workspace:^"
languageName: unknown
linkType: soft
"@babel/plugin-transform-object-super@npm:^8.0.0-rc.4":
version: 8.0.0-rc.4
resolution: "@babel/plugin-transform-object-super@npm:8.0.0-rc.4"
@@ -4028,7 +4016,6 @@ __metadata:
"@babel/plugin-transform-nullish-coalescing-operator": "workspace:^"
"@babel/plugin-transform-numeric-separator": "workspace:^"
"@babel/plugin-transform-object-rest-spread": "workspace:^"
"@babel/plugin-transform-object-set-prototype-of-to-assign": "workspace:^"
"@babel/plugin-transform-object-super": "workspace:^"
"@babel/plugin-transform-optional-catch-binding": "workspace:^"
"@babel/plugin-transform-optional-chaining": "workspace:^"