Conversation
robertmclaws
left a comment
There was a problem hiding this comment.
Both changes are solid fixes for real problems. The CDN migration from Skypack to jsDelivr addresses known CORS/reliability issues, and the import.meta.url fix correctly resolves the broken fallback path that was relative to the TypeScript source rather than the compiled output.
Only minor suggestion: add a comment noting that the CDN version (@8.0.3) must stay in sync with the version in package.json to prevent drift.
LGTM — nice contribution!
Generated by Claude Code
|
Version const is a good approval. Forgot to mention that - good spot. |
Skypack suddently stopped serving correct CORS headers.
…o ensure compatibility across deployment locations. Fixes failure to load fallback idb js file.
…ration The idb version was hardcoded in both package.json and the CDN import URL. Add a prebuild script that reads the version from package.json and generates a TypeScript constant, so the version is defined in one place only. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
|
I made an adjustment based on Claude Code's suggestion that the pinned version be dynamically generated based on the package.json file. Now we get the best of both worlds, and we don't have to manually keep both files in sync. Amazing contribution, thanks so much! |
|
The 4.0.1 release is out, and it's all you man! Thanks so much for your contribution! |
../BlazorEssentials.IndexedDb/lib/index.js