@recapi/client 0.1.2 → 0.2.0

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 +5 -3
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -16,7 +16,7 @@ are, gzipped, and browsers cache them for a year:
16
16
 
17
17
  ```html
18
18
  <script type="module">
19
- import { createClient } from 'https://api.example.com/sdk/0.1.2/index.js';
19
+ import { createClient } from 'https://api.example.com/sdk/0.2.0/index.js';
20
20
 
21
21
  const recapi = createClient({ apiKey: 'rk_pub_…', baseUrl: 'https://api.example.com' });
22
22
  recapi.track('item-42', 'view'); // and the calls of the quick start below
@@ -508,6 +508,8 @@ minifier, to keep zero dev dependencies.
508
508
 
509
509
  ## Changes
510
510
 
511
+ - 2026-10-30: version 0.2.0, the same code as 0.1.2: the first version
512
+ published to npm by GitHub Actions (trusted publishing), with provenance.
511
513
  - 2026-10-26: version 0.1.2. When `GET /v1/popular` fails too (recapi is
512
514
  down altogether), `recommend()` resolves with an empty list
513
515
  (`fallback: true`) instead of rejecting, and reports both errors to
@@ -540,8 +542,8 @@ to `published.json` (the digest is `sha256sum src/*.js | sha256sum`, then
540
542
  each file's exports), and change the `/sdk/<version>/` paths in this
541
543
  README and `docs/api.md` (the quick start follows by itself). Never edit
542
544
  an existing entry of `published.json`.
543
- Once production runs that version, the release service publishes it to
544
- npm as `@recapi/client` ([deployment.md](../../docs/deployment.md#publishing-the-javascript-library)):
545
+ Once production runs that version, the release service has GitHub publish
546
+ it to npm as `@recapi/client` ([deployment.md](../../docs/deployment.md#publishing-the-javascript-library)):
545
547
  nobody runs `npm publish` by hand.
546
548
 
547
549
  Every older path, whatever its version number, redirects to the new
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@recapi/client",
3
- "version": "0.1.2",
3
+ "version": "0.2.0",
4
4
  "description": "Browser and Node client for the recapi recommendation API: local decayed history, event batching, attribution.",
5
5
  "type": "module",
6
6
  "main": "./src/index.js",