We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fbcb2bb commit bd0c1a3Copy full SHA for bd0c1a3
2 files changed
examples/io/storage/webstorage/webstorage.js
@@ -1,5 +1,5 @@
1
/*
2
- * Copyright (c) 2025 Moddable Tech, Inc.
+ * Copyright (c) 20252-2026 Moddable Tech, Inc.
3
*
4
* This file is part of the Moddable SDK Runtime.
5
@@ -56,6 +56,10 @@
56
this.#kvp.write(key, value);
57
}
58
remove(key) {
59
+ trace("localStorage.remove() deprecated. Use localStorage.removeItem() instead\n");
60
+ return this.removeItem(key);
61
+ }
62
+ removeItem(key) {
63
this.#kvp.delete(key);
64
65
clear() {
typings/web/webstorage.d.ts
@@ -25,7 +25,7 @@ declare module "webstorage" {
25
key(index: number): string | null;
26
getItem(key: string): string | null;
27
setItem(key: string, value: string): void;
28
- remove(key: string): void;
+ removeItem(key: string): void;
29
clear(): void;
30
31
0 commit comments