@corbado/observe 1.12.0 → 1.12.1

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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @corbado/observe
2
2
 
3
+ ## 1.12.1
4
+
5
+ ### Patch Changes
6
+
7
+ - a5b4069: Reader metadata: optional `storage` (`ReaderStorage`: area, keys, lifetime, retention) for readers of Observe's own storage. The SDK's local, session and cookie storage readers declare it and no longer list fields, so the manifest extractor lists them in the new `storage` section instead of `sources`. Reader metadata is stripped from builds; no runtime change.
8
+
3
9
  ## 1.12.0
4
10
 
5
11
  ### Minor Changes
@@ -28,17 +28,13 @@ var LocalStorage = class {
28
28
  accessNote: "localStorage, Observe's own cbo_ keys",
29
29
  group: "Observe SDK state",
30
30
  origin: "observe-internal",
31
- fields: [
32
- {
33
- path: "value",
34
- label: "Observe's own saved data",
35
- category: "technical",
36
- exposure: "none",
37
- transform: {
38
- note: "own cbo_* keys only (session, sequence, outbox, config cache, experiments, client env, debug); written and read back by the SDK"
39
- }
40
- }
41
- ]
31
+ fields: [],
32
+ storage: {
33
+ area: "local",
34
+ keys: ["cbo_*"],
35
+ lifetime: "persistent",
36
+ retention: "Kept on the device; Observe replaces or removes its entries as they change"
37
+ }
42
38
  });
43
39
  /**
44
40
  * Error situations:
@@ -99,17 +95,13 @@ var CookieStorage = class {
99
95
  accessNote: "document.cookie, Observe's own cbo_ cookies",
100
96
  group: "Observe SDK state",
101
97
  origin: "observe-internal",
102
- fields: [
103
- {
104
- path: "value",
105
- label: "Observe's own cookies",
106
- category: "technical",
107
- exposure: "none",
108
- transform: {
109
- note: "own cbo_* cookies only (cookie storage mode); the cookie string is scanned for the requested key"
110
- }
111
- }
112
- ]
98
+ fields: [],
99
+ storage: {
100
+ area: "cookie",
101
+ keys: ["cbo_*"],
102
+ lifetime: "browser",
103
+ retention: "Removed when the browser closes"
104
+ }
113
105
  });
114
106
  /**
115
107
  * Error situations:
@@ -183,17 +175,13 @@ var SessionStorage = class {
183
175
  accessNote: "sessionStorage, Observe's own cbo_ keys",
184
176
  group: "Observe SDK state",
185
177
  origin: "observe-internal",
186
- fields: [
187
- {
188
- path: "value",
189
- label: "Observe's own data for this tab",
190
- category: "technical",
191
- exposure: "none",
192
- transform: {
193
- note: "own cbo_* keys only (per-tab session, sequence and tab id); written and read back by the SDK"
194
- }
195
- }
196
- ]
178
+ fields: [],
179
+ storage: {
180
+ area: "session",
181
+ keys: ["cbo_*"],
182
+ lifetime: "tab",
183
+ retention: "Removed when the tab closes"
184
+ }
197
185
  });
198
186
  /**
199
187
  * Error situations:
@@ -1,6 +1,6 @@
1
1
  // src/version.ts
2
2
  var SDK_NAME = "@corbado/observe";
3
- var SDK_VERSION = true ? "1.12.0" : "0.0.0-dev";
3
+ var SDK_VERSION = true ? "1.12.1" : "0.0.0-dev";
4
4
  export {
5
5
  SDK_NAME,
6
6
  SDK_VERSION