Commit 89300ac
Migrate Node.js builtin imports to node: scheme (#57611)
Summary:
Pull Request resolved: #57611
Directly follows D112733139 (Metro).
**Motivation**
- New Node builtins are *only* available under the prefix (e.g. `node:sqlite`), as this allows Node to introduce them without ecosystem-breaking changes, so this is the direction of travel and the only choice that'll allow consistency.
- Encouraging them and grouping them separately makes it easier to reason about a module's 3rd party dependencies.
Changelog: [Internal]
Reviewed By: robhogan
Differential Revision: D112803684
fbshipit-source-id: 40668d746a7151b3aa4800ff8af997902a18d1981 parent 94d208d commit 89300ac
271 files changed
Lines changed: 822 additions & 581 deletions
File tree
- packages
- babel-plugin-codegen
- community-cli-plugin/src
- commands
- bundle
- __tests__
- start
- utils
- debugger-frontend
- debugger-shell
- __tests__
- src
- electron
- node
- dev-middleware/src
- __tests__
- inspector-proxy
- middleware
- utils
- eslint-plugin-specs
- with-babel-register
- jest-preset
- jest
- react-native-babel-preset/src
- __tests__
- react-native-babel-transformer/src
- __tests__
- react-native-codegen
- e2e
- deep_imports/__tests__
- components
- modules
- namespaced/__tests__/components
- scripts
- src
- cli
- combine
- generators
- parser
- generators
- __tests__
- parsers
- flow
- components/__tests__
- modules/__tests__
- typescript
- components/__tests__
- modules/__tests__
- react-native-compatibility-check/src/__tests__/utilities
- react-native
- Libraries/Core/__tests__
- ReactAndroid/src/main/java/com/facebook/react/views/scroll
- scripts
- codegen
- __tests__
- generate-artifacts-executor
- featureflags
- hermes
- __tests__
- ios-prebuild
- __tests__
- spm
- __tests__
- swiftpm
- __tests__
- src/private/animated/__tests__
- third-party-podspecs
- rn-tester
- js/examples/WebSocket
- scripts
- virtualized-lists/Lists/__tests__
- private
- core-cli-utils/src/private
- eslint-plugin-monorepo/__tests__
- helloworld
- lib
- scripts
- react-native-codegen-typescript-test
- scripts
- src/__tests__
- react-native-fantom
- config
- repl
- runner
- executables
- global-setup
- llvm
- scripts
- build
- debugger-frontend
- debugger-shell
- e2e
- utils
- js-api
- build-types
- resolution
- transforms/typescript
- __tests__
- utils
- __tests__
- diff-api-snapshot
- monorepo-tests/__tests__
- release-testing
- utils
- releases-ci
- __tests__
- releases
- __tests__
- ios-prebuild
- utils
- __tests__
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
| 18 | + | |
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
| 47 | + | |
47 | 48 | | |
48 | 49 | | |
49 | 50 | | |
| |||
66 | 67 | | |
67 | 68 | | |
68 | 69 | | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
69 | 73 | | |
70 | 74 | | |
71 | 75 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
80 | 80 | | |
81 | 81 | | |
82 | 82 | | |
| 83 | + | |
83 | 84 | | |
84 | 85 | | |
85 | 86 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
| 16 | + | |
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| |||
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
15 | | - | |
| 14 | + | |
| 15 | + | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| |||
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
18 | 17 | | |
19 | | - | |
20 | | - | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| |||
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
18 | | - | |
| 17 | + | |
| 18 | + | |
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| |||
0 commit comments