| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1741,10 +1741,11 @@ surface on other platforms, but the performance impact may be severe. | |||
| 1741 | 1741 | added: v22.4.0 | |
| 1742 | 1742 | --> | |
| 1743 | 1743 | ||
| 1744 | + > Stability: 1.2 - Release candidate. | ||
| 1745 | + | ||
| 1744 | 1746 | The file used to store `localStorage` data. If the file does not exist, it is | |
| 1745 | 1747 | created the first time `localStorage` is accessed. The same file may be shared | |
| 1746 | - between multiple Node.js processes concurrently. This flag is a no-op if | ||
| 1747 | - Node.js is started with the `--no-webstorage` (or `--no-experimental-webstorage`) flag. | ||
| 1748 | + between multiple Node.js processes concurrently. | ||
| 1748 | 1749 | ||
| 1749 | 1750 | ### `--max-http-header-size=size` | |
| 1750 | 1751 | ||
@@ -1906,6 +1907,20 @@ added: v22.0.0 | |||
| 1906 | 1907 | ||
| 1907 | 1908 | Disable exposition of {WebSocket} on the global scope. | |
| 1908 | 1909 | ||
| 1910 | + ### `--no-experimental-webstorage` | ||
| 1911 | + | ||
| 1912 | + <!-- YAML | ||
| 1913 | + added: v22.4.0 | ||
| 1914 | + changes: | ||
| 1915 | + - version: v25.0.0 | ||
| 1916 | + pr-url: https://github.com/nodejs/node/pull/57666 | ||
| 1917 | + description: The feature is now enabled by default. | ||
| 1918 | + --> | ||
| 1919 | + | ||
| 1920 | + > Stability: 1.2 - Release candidate. | ||
| 1921 | + | ||
| 1922 | + Disable [`Web Storage`][] support. | ||
| 1923 | + | ||
| 1909 | 1924 | ### `--no-extra-info-on-fatal-exception` | |
| 1910 | 1925 | ||
| 1911 | 1926 | <!-- YAML | |
@@ -1973,14 +1988,6 @@ added: v6.0.0 | |||
| 1973 | 1988 | ||
| 1974 | 1989 | Silence all process warnings (including deprecations). | |
| 1975 | 1990 | ||
| 1976 | - ### `--no-webstorage` | ||
| 1977 | - | ||
| 1978 | - <!-- YAML | ||
| 1979 | - added: v25.0.0 | ||
| 1980 | - --> | ||
| 1981 | - | ||
| 1982 | - Disable [`Web Storage`][] support. | ||
| 1983 | - | ||
| 1984 | 1991 | ### `--node-memory-debug` | |
| 1985 | 1992 | ||
| 1986 | 1993 | <!-- YAML | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -644,13 +644,23 @@ A browser-compatible implementation of {Headers}. | |||
| 644 | 644 | ||
| 645 | 645 | <!-- YAML | |
| 646 | 646 | added: v22.4.0 | |
| 647 | + changes: | ||
| 648 | + - version: v25.0.0 | ||
| 649 | + pr-url: https://github.com/nodejs/node/pull/57666 | ||
| 650 | + description: When webstorage is enabled and `--localstorage-file` is not | ||
| 651 | + provided, accessing the `localStorage` global now returns an | ||
| 652 | + empty object. | ||
| 653 | + - version: v25.0.0 | ||
| 654 | + pr-url: https://github.com/nodejs/node/pull/57666 | ||
| 655 | + description: This API is no longer behind `--experimental-webstorage` runtime flag. | ||
| 647 | 656 | --> | |
| 648 | 657 | ||
| 658 | + > Stability: 1.2 - Release candidate. Disable this API with [`--no-experimental-webstorage`][]. | ||
| 659 | + | ||
| 649 | 660 | A browser-compatible implementation of [`localStorage`][]. Data is stored | |
| 650 | 661 | unencrypted in the file specified by the [`--localstorage-file`][] CLI flag. | |
| 651 | 662 | The maximum amount of data that can be stored is 10 MB. | |
| 652 | 663 | Any modification of this data outside of the Web Storage API is not supported. | |
| 653 | - Disable this API with the [`--no-webstorage`][] (or its alias `--no-experimental-webstorage`) CLI flag. | ||
| 654 | 664 | `localStorage` data is not stored per user or per request when used in the context | |
| 655 | 665 | of a server, it is shared across all users and requests. | |
| 656 | 666 | ||
@@ -1073,9 +1083,13 @@ A browser-compatible implementation of {Request}. | |||
| 1073 | 1083 | ||
| 1074 | 1084 | <!-- YAML | |
| 1075 | 1085 | added: v22.4.0 | |
| 1086 | + changes: | ||
| 1087 | + - version: v25.0.0 | ||
| 1088 | + pr-url: https://github.com/nodejs/node/pull/57666 | ||
| 1089 | + description: This API is no longer behind `--experimental-webstorage` runtime flag. | ||
| 1076 | 1090 | --> | |
| 1077 | 1091 | ||
| 1078 | - > Stability: 1.0 - Early development. | ||
| 1092 | + > Stability: 1.2 - Release candidate. Disable this API with [`--no-experimental-webstorage`][]. | ||
| 1079 | 1093 | ||
| 1080 | 1094 | A browser-compatible implementation of [`sessionStorage`][]. Data is stored in | |
| 1081 | 1095 | memory, with a storage quota of 10 MB. `sessionStorage` data persists only within | |
@@ -1111,10 +1125,9 @@ added: v0.0.1 | |||
| 1111 | 1125 | added: v22.4.0 | |
| 1112 | 1126 | --> | |
| 1113 | 1127 | ||
| 1114 | - > Stability: 1.0 - Early development. | ||
| 1128 | + > Stability: 1.2 - Release candidate. Disable this API with [`--no-experimental-webstorage`][]. | ||
| 1115 | 1129 | ||
| 1116 | - A browser-compatible implementation of {Storage}. Disable this API with the | ||
| 1117 | - [`--no-webstorage`][] (or its alias `--no-experimental-webstorage`) CLI flag. | ||
| 1130 | + A browser-compatible implementation of {Storage}. | ||
| 1118 | 1131 | ||
| 1119 | 1132 | ## `structuredClone(value[, options])` | |
| 1120 | 1133 | ||
@@ -1328,7 +1341,7 @@ A browser-compatible implementation of [`WritableStreamDefaultWriter`][]. | |||
| 1328 | 1341 | [`--localstorage-file`]: cli.md#--localstorage-filefile | |
| 1329 | 1342 | [`--no-experimental-global-navigator`]: cli.md#--no-experimental-global-navigator | |
| 1330 | 1343 | [`--no-experimental-websocket`]: cli.md#--no-experimental-websocket | |
| 1331 | - [`--no-webstorage`]: cli.md#--no-webstorage | ||
| 1344 | + [`--no-experimental-webstorage`]: cli.md#--no-experimental-webstorage | ||
| 1332 | 1345 | [`ByteLengthQueuingStrategy`]: webstreams.md#class-bytelengthqueuingstrategy | |
| 1333 | 1346 | [`CompressionStream`]: webstreams.md#class-compressionstream | |
| 1334 | 1347 | [`CountQueuingStrategy`]: webstreams.md#class-countqueuingstrategy | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -207,8 +207,8 @@ Enable experimental support for the EventSource Web API. | |||
| 207 | 207 | .It Fl -no-experimental-websocket | |
| 208 | 208 | Disable experimental support for the WebSocket API. | |
| 209 | 209 | . | |
| 210 | - .It Fl -no-webstorage | ||
| 211 | - Disable webstorage. | ||
| 210 | + .It Fl -no-experimental-webstorage | ||
| 211 | + Disable experimental support for the Web Storage API. | ||
| 212 | 212 | . | |
| 213 | 213 | .It Fl -no-experimental-repl-await | |
| 214 | 214 | Disable top-level await keyword support in REPL. | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -398,7 +398,7 @@ function setupQuic() { | |||
| 398 | 398 | ||
| 399 | 399 | function setupWebStorage() { | |
| 400 | 400 | if (getEmbedderOptions().noBrowserGlobals || | |
| 401 | - !getOptionValue('--webstorage')) { | ||
| 401 | + !getOptionValue('--experimental-webstorage')) { | ||
| 402 | 402 | return; | |
| 403 | 403 | } | |
| 404 | 404 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -567,12 +567,12 @@ EnvironmentOptionsParser::EnvironmentOptionsParser() { | |||
| 567 | 567 | NoOp{}, | |
| 568 | 568 | #endif | |
| 569 | 569 | kAllowedInEnvvar); | |
| 570 | - AddOption("--webstorage", | ||
| 571 | - "Web Storage API", | ||
| 570 | + AddOption("--experimental-webstorage", | ||
| 571 | + "experimental Web Storage API", | ||
| 572 | 572 | &EnvironmentOptions::webstorage, | |
| 573 | 573 | kAllowedInEnvvar, | |
| 574 | 574 | true); | |
| 575 | - AddAlias("--experimental-webstorage", "--webstorage"); | ||
| 575 | + AddAlias("--webstorage", "--experimental-webstorage"); | ||
| 576 | 576 | AddOption("--localstorage-file", | |
| 577 | 577 | "file used to persist localStorage data", | |
| 578 | 578 | &EnvironmentOptions::localstorage_file, | |
| Back | FazBrowse Home | New Git URL |
0 commit comments