Commit 0aad93f
Use node: scheme to import Node.js builtins
Summary:
A stylistic choice to unify on `node:`-prefixed imports, e.g. `fs` -> `node:fs`.
**Motivation**
Follows D112733139 (Metro):
- 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]
Differential Revision: D1128036841 parent 4a66207 commit 0aad93f
277 files changed
Lines changed: 600 additions & 594 deletions
File tree
- flow-typed/npm
- 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 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
19 | 23 | | |
20 | 24 | | |
21 | 25 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
13 | | - | |
14 | | - | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
13 | | - | |
14 | | - | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
16 | | - | |
17 | | - | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
| 16 | + | |
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| |||
0 commit comments