@stinkycomputing/cachearoo 1.0.25 → 1.0.26

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.
@@ -9,7 +9,7 @@ jobs:
9
9
 
10
10
  strategy:
11
11
  matrix:
12
- node-version: [16.x]
12
+ node-version: [24.x]
13
13
 
14
14
  steps:
15
15
  - uses: actions/checkout@v3
@@ -1,5 +1,7 @@
1
- # This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
2
- # For more information see: https://help.github.com/actions/language-and-framework-guides/publishing-nodejs-packages
1
+ # This workflow runs when a tag starting with "v" is pushed and publishes the
2
+ # package to the npm registry using npm trusted publishing (OIDC) — no npm
3
+ # token secret is required, GitHub authenticates to npm via the id-token.
4
+ # For more information see: https://docs.npmjs.com/trusted-publishers
3
5
 
4
6
  name: Node.js Package
5
7
 
@@ -10,19 +12,22 @@ on:
10
12
  jobs:
11
13
  publish-npm:
12
14
  runs-on: ubuntu-latest
15
+ permissions:
16
+ contents: write # allow the release step to create a GitHub release
17
+ id-token: write # required for npm trusted publishing (OIDC) + provenance
13
18
  steps:
14
19
  - uses: actions/checkout@v3
15
20
  - uses: actions/setup-node@v3
16
21
  with:
17
- node-version: 16
22
+ node-version: 24
18
23
  registry-url: https://registry.npmjs.org/
19
- - name: Build, test and publish
24
+ - name: Build and publish
20
25
  run: |
26
+ # Trusted publishing requires npm >= 11.5.1
27
+ npm install -g npm@latest
21
28
  npm ci
22
29
  npm run build
23
30
  npm publish
24
- env:
25
- NODE_AUTH_TOKEN: ${{secrets.STINKYDEV_NPM_TOKEN}}
26
31
  - name: Release
27
32
  uses: "marvinpinto/action-automatic-releases@latest"
28
33
  with:
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Stinky Computing AB
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -398,3 +398,16 @@ consumer.onJobQuery = (job, callback) => {
398
398
  }
399
399
  };
400
400
  ```
401
+
402
+ ## Requirements
403
+
404
+ This library relies on platform-native `fetch` and `WebSocket` and has no
405
+ runtime dependencies. It requires **Node.js >= 22** (for the native global
406
+ `WebSocket`) or a modern browser.
407
+
408
+ ## License
409
+
410
+ MIT © Stinky Computing AB. See [LICENSE](LICENSE).
411
+
412
+ This package has no third-party runtime dependencies; see
413
+ [THIRD-PARTY-NOTICES.md](THIRD-PARTY-NOTICES.md) for details.
@@ -0,0 +1,17 @@
1
+ # Third-Party Notices
2
+
3
+ This package has **no third-party runtime dependencies**. The published code
4
+ under `dist/` is wholly owned by Stinky Computing AB and distributed under the
5
+ MIT License (see `LICENSE`).
6
+
7
+ Networking is provided entirely by platform-native APIs:
8
+
9
+ - HTTP requests use the global `fetch` (available in browsers and Node.js >= 18).
10
+ - The persistent connection uses the global `WebSocket` (available in browsers
11
+ and Node.js >= 22).
12
+
13
+ Build- and test-time tooling (TypeScript, Vite, Vitest, type definitions, etc.)
14
+ is listed under `devDependencies` in `package.json`. These tools are not
15
+ included in the published package and impose no attribution requirements on
16
+ distributed artifacts. Their respective licenses apply only within this
17
+ repository's development environment.
@@ -1,8 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.AlreadyExistsError = exports.TimeoutError = exports.ReplyError = exports.RequestOptions = exports.CachearooSettings = exports.Cachearoo = exports.Replier = exports.Requestor = exports.Messaging = void 0;
4
- const fetch = require("node-fetch-commonjs");
5
- global.fetch = fetch;
6
4
  const cro_1 = require("./libs/cro");
7
5
  Object.defineProperty(exports, "Cachearoo", { enumerable: true, get: function () { return cro_1.Cachearoo; } });
8
6
  Object.defineProperty(exports, "CachearooSettings", { enumerable: true, get: function () { return cro_1.CachearooSettings; } });