feat(browser): Add IndexedDb offline transport store#6983
feat(browser): Add IndexedDb offline transport store#6983AbhiPrasad merged 23 commits intogetsentry:developfrom
Conversation
|
Note: I changed the target to |
|
Just noticed that this offline wrapper is currently getting included in the default browser bundles and adds around 2-3KB. Options:
|
The CDN bundle? I think we're fine with that sacrifice. For npm they can just tree-shake it away. |
We went with a 4th option. Exclude |
Lms24
left a comment
There was a problem hiding this comment.
This LGTM and good that we're excluding it from the bundles.
| @@ -187,8 +187,12 @@ export function makeTSPlugin(jsVersion) { | |||
| * from the browser and browser+tracing bundles. | |||
There was a problem hiding this comment.
l: Let's just update the JSDoc here that this factory function can be used to exclude basically any exported member from the bundles
AbhiPrasad
left a comment
There was a problem hiding this comment.
As part of the offline integration deprecation, we also need to revamp all of our docs for this!
Closes #3046
This PR:
insert/popwrappers for IndexedDbidb-keyvalas reference since it's well used and testedcreateIndexedDbStorethat creates anOfflineStoreimplementationmakeIndexedDbOfflineTransport) that supplements transport options withIndexedDbOptionsmakeBrowserOfflineTransportfor use in creating browser offline transportfake-indexeddbto test the code in node.jsHow it's used:
Browser support:
getAllKeysTextEncoder/TextDecoderSince IE is not supported we could make the fetch transport the default so it does not need to be passed to
makeFetchTransport?Tests