@apollosproject/canvas-embeds 2.1.3052 → 2.1.3053-staging.45231873404.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.
Files changed (3) hide show
  1. package/README.md +4 -4
  2. package/package.json +4 -4
  3. package/widget/index.js +270 -270
package/README.md CHANGED
@@ -156,7 +156,7 @@ Embeds are bundled as `index.js` and `index.css` in the `/widget` folder and dis
156
156
 
157
157
  ### Local Development
158
158
 
159
- To work on this package locally, ensure you have a valid **Feature Feed ID**. Use `index.html` for testing with examples. Keep in mind that embeds from different churches on the same page may cause conflicts, so ensure you only use one church per page. You should be running `apollos-cluster` as well as this entire repo by running `yarn dev`.
159
+ To work on this package locally, ensure you have a valid **Feature Feed ID**. Use `index.html` for testing with examples. Keep in mind that embeds from different churches on the same page may cause conflicts, so ensure you only use one church per page. You should be running `apollos-cluster` as well as this entire repo by running `bun run dev`.
160
160
 
161
161
  #### Testing Embeds Locally
162
162
 
@@ -183,9 +183,9 @@ To test changes, open `http://localhost:5174` in your browser.
183
183
  Merges to `main` publish an npm `@staging` prerelease; `@latest` moves only after the staging confidence gate passes and the commit is tagged for release (see [Release automation](../../.github/release-automation-admin-web.md#embeds)). If you wish to manually deploy:
184
184
 
185
185
  1. `cd apps/web-embeds`
186
- 2. Bump the version (patch by default): `yarn bump` (or `yarn bump:minor` / `yarn bump:major`). You may want to consult NPM to check on the last deployed version (it will be different than the version in package.json).
186
+ 2. Bump the version (patch by default): `bun run bump` (or `bun run bump:minor` / `bun run bump:major`). You may want to consult NPM to check on the last deployed version (it will be different than the version in package.json).
187
187
  3. Publish the package: `npm publish --access public` (automatically runs `prepublishOnly`/build)
188
- 4. After npm shows the new version, purge jsDelivr so `@latest` updates immediately: `yarn flush`
188
+ 4. After npm shows the new version, purge jsDelivr so `@latest` updates immediately: `bun run flush`
189
189
  5. (Optional) Hit `https://cdn.jsdelivr.net/npm/@apollosproject/canvas-embeds@latest/widget/index.js` to verify the new bundle is served
190
190
 
191
191
  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.
@@ -207,7 +207,7 @@ To test caching in local development, modify the Apollo client configuration by
207
207
  If you need to force jsDelivr to fetch the latest version of a file, you can manually purge the cache by accessing the purge subdomain of the file's URL. This command clears the cached version of the file from jsDelivr's CDN.
208
208
 
209
209
  ```bash
210
- yarn flush
210
+ bun run flush
211
211
  ```
212
212
 
213
213
  ---
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@apollosproject/canvas-embeds",
3
3
  "description": "Apollos React embed widgets",
4
- "version": "2.1.3052",
4
+ "version": "2.1.3053-staging.45231873404.1",
5
5
  "license": "MIT",
6
6
  "repository": {
7
7
  "type": "git",
@@ -29,6 +29,7 @@
29
29
  "@apollosproject/analytics": "workspace:^",
30
30
  "@apollosproject/canvas-ui-web": "workspace:^",
31
31
  "@apollosproject/cluster-client": "workspace:^",
32
+ "@apollosproject/donation-embed": "workspace:^",
32
33
  "@phosphor-icons/react": "2.1.10",
33
34
  "@sentry/react": "^7.40.0",
34
35
  "@styled-system/theme-get": "^5.1.2",
@@ -54,12 +55,11 @@
54
55
  "web-vitals": "^0.2.4"
55
56
  },
56
57
  "scripts": {
57
- "prebuild": "yarn workspace @apollosproject/cluster-client build",
58
- "build": "yarn workspace @apollosproject/cluster-client build && dotenv -- vite build && node scripts/build.js",
58
+ "build": "bun run --cwd ../../packages/cluster-client build && dotenv -- vite build && node scripts/build.js",
59
59
  "bump": "./scripts/bump.sh",
60
60
  "bump:minor": "./scripts/bump.sh minor",
61
61
  "bump:major": "./scripts/bump.sh major",
62
- "prepublishOnly": "yarn build && ([ -s widget/index.js ] && [ -s widget/index.css ] || (echo \"Web embed bundle missing. Build failed.\" && exit 1))",
62
+ "prepublishOnly": "bun run build && ([ -s widget/index.js ] && [ -s widget/index.css ] || (echo \"Web embed bundle missing. Build failed.\" && exit 1))",
63
63
  "dev": "vite --host",
64
64
  "flush": "sh scripts/flush-cdn-cache.sh",
65
65
  "format": "prettier --write .",