@t3mode/plugin-sdk 1.0.1 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.d.ts +1 -1
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -36,7 +36,7 @@ export interface PluginApi<O extends OptionsSpec = OptionsSpec> {
36
36
  /** Creates an element owned by the plugin. It is removed when the plugin stops. */
37
37
  readonly element: <K extends keyof HTMLElementTagNameMap>(tag: K) => HTMLElementTagNameMap[K];
38
38
  readonly onCleanup: (cleanup: () => void) => void;
39
- /** JSON in localStorage, namespaced to the plugin. Lives as long as T3 Code's own UI state. */
39
+ /** JSON in <home>/plugin-data/<id>.json. Deleted when the plugin is removed or uninstall --purge runs. */
40
40
  readonly storage: {
41
41
  readonly get: <T>(key: string, fallback: T) => T;
42
42
  readonly set: (key: string, value: unknown) => void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@t3mode/plugin-sdk",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "description": "definePlugin and the plugin API types for t3mode, the plugin loader for T3 Code",
5
5
  "license": "MIT",
6
6
  "repository": {