@apollosproject/canvas-embeds 2.1.684 → 2.1.686
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/README.md +14 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -226,6 +226,20 @@ To test changes, open `http://localhost:5174` in your browser.
|
|
|
226
226
|
|
|
227
227
|
---
|
|
228
228
|
|
|
229
|
+
### Publishing Updates / Cache Busting
|
|
230
|
+
|
|
231
|
+
Deploying the Remix app does **not** publish this package or invalidate the CDN. To ship new widget code:
|
|
232
|
+
|
|
233
|
+
1. `cd apps/web-embeds`
|
|
234
|
+
2. Bump the version (patch by default): `yarn bump` (or `yarn bump:minor` / `yarn bump:major`)
|
|
235
|
+
3. Publish the package: `npm publish --access public` (automatically runs `prepublishOnly`/build)
|
|
236
|
+
4. After npm shows the new version, purge jsDelivr so `@latest` updates immediately: `yarn flush`
|
|
237
|
+
5. (Optional) Hit `https://cdn.jsdelivr.net/npm/@apollosproject/canvas-embeds@latest/widget/index.js` to verify the new bundle is served
|
|
238
|
+
|
|
239
|
+
Skipping the publish step means users will still download the previous version even if the repo contains newer code, and skipping the flush step delays propagation until jsDelivr expires its cache.
|
|
240
|
+
|
|
241
|
+
---
|
|
242
|
+
|
|
229
243
|
### Caching
|
|
230
244
|
|
|
231
245
|
To test caching in local development, modify the Apollo client configuration by commenting out the `x-cache-me-not` header in:
|