@usero/sdk 0.5.3 → 1.0.2

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 (2) hide show
  1. package/README.md +8 -0
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -187,6 +187,14 @@ Outputs:
187
187
  - `dist/plugins/session-replay.js` (ESM) + `.cjs` + `.d.ts` plus a sibling `dist/all-*.js` chunk that holds the bundled rrweb runtime. The plugin loads this chunk via dynamic `import()` so it only downloads when the plugin actually needs it.
188
188
  - `dist/usero.iife.js` (minified, exposes `window.Usero`)
189
189
 
190
+ ## WordPress plugin
191
+
192
+ This repo is a monorepo. The `@usero/sdk` npm package lives at the root; the WordPress plugin lives in [`wordpress/`](./wordpress/) and ships to the wordpress.org plugin directory as `usero`.
193
+
194
+ The plugin vendors the SDK's IIFE build at `wordpress/assets/js/vendor/usero-sdk.iife.js`. It is regenerated automatically on `npm run build` via `scripts/sync-wp-vendor.mjs`. Do not edit it by hand.
195
+
196
+ To cut a plugin release see [`wordpress/RELEASE.md`](./wordpress/RELEASE.md). Tagging `v<version>` on GitHub triggers `.github/workflows/release-wordpress.yml`, which builds the SDK, verifies that `package.json`, `wordpress/usero.php`, and `wordpress/readme.txt` all agree on the version, then pushes to wordpress.org SVN via `10up/action-wordpress-plugin-deploy`.
197
+
190
198
  ## License
191
199
 
192
200
  MIT
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@usero/sdk",
3
- "version": "0.5.3",
3
+ "version": "1.0.2",
4
4
  "description": "Usero SDK. Drop-in feedback widget (vanilla JS, React, or script tag) plus future plugins like session replay. Zero config, framework-free, tiny.",
5
5
  "license": "MIT",
6
6
  "author": "Will Smith <will@willsmithte.com>",
@@ -48,7 +48,7 @@
48
48
  ],
49
49
  "sideEffects": false,
50
50
  "scripts": {
51
- "build": "tsup",
51
+ "build": "tsup && node scripts/sync-wp-vendor.mjs",
52
52
  "dev": "tsup --watch",
53
53
  "typecheck": "tsc --noEmit",
54
54
  "clean": "rm -rf dist",