@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 +6 -0
- package/dist/analysis/storage/index.mjs +21 -33
- package/dist/analysis/version.mjs +1 -1
- package/dist/cdn/script.global.js +1 -1
- package/dist/index.d.mts +18 -1
- package/dist/index.d.ts +18 -1
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
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
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
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
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
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
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
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:
|