◐ Shell
clean mode source ↗

doc,src,lib: clarify experimental status of Web Storage support · nodejs/node@ca878bc

@@ -644,13 +644,23 @@ A browser-compatible implementation of {Headers}.

644644645645

<!-- YAML

646646

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.

647656

-->

648657658+

> Stability: 1.2 - Release candidate. Disable this API with [`--no-experimental-webstorage`][].

659+649660

A browser-compatible implementation of [`localStorage`][]. Data is stored

650661

unencrypted in the file specified by the [`--localstorage-file`][] CLI flag.

651662

The maximum amount of data that can be stored is 10 MB.

652663

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.

654664

`localStorage` data is not stored per user or per request when used in the context

655665

of a server, it is shared across all users and requests.

656666

@@ -1073,9 +1083,13 @@ A browser-compatible implementation of {Request}.

1073108310741084

<!-- YAML

10751085

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.

10761090

-->

107710911078-

> Stability: 1.0 - Early development.

1092+

> Stability: 1.2 - Release candidate. Disable this API with [`--no-experimental-webstorage`][].

1079109310801094

A browser-compatible implementation of [`sessionStorage`][]. Data is stored in

10811095

memory, with a storage quota of 10 MB. `sessionStorage` data persists only within

@@ -1111,10 +1125,9 @@ added: v0.0.1

11111125

added: v22.4.0

11121126

-->

111311271114-

> Stability: 1.0 - Early development.

1128+

> Stability: 1.2 - Release candidate. Disable this API with [`--no-experimental-webstorage`][].

111511291116-

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}.

1118113111191132

## `structuredClone(value[, options])`

11201133

@@ -1328,7 +1341,7 @@ A browser-compatible implementation of [`WritableStreamDefaultWriter`][].

13281341

[`--localstorage-file`]: cli.md#--localstorage-filefile

13291342

[`--no-experimental-global-navigator`]: cli.md#--no-experimental-global-navigator

13301343

[`--no-experimental-websocket`]: cli.md#--no-experimental-websocket

1331-

[`--no-webstorage`]: cli.md#--no-webstorage

1344+

[`--no-experimental-webstorage`]: cli.md#--no-experimental-webstorage

13321345

[`ByteLengthQueuingStrategy`]: webstreams.md#class-bytelengthqueuingstrategy

13331346

[`CompressionStream`]: webstreams.md#class-compressionstream

13341347

[`CountQueuingStrategy`]: webstreams.md#class-countqueuingstrategy