mascot-vis 3.1.7 → 3.3.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.
@@ -17,9 +17,9 @@ jobs:
17
17
  steps:
18
18
  - uses: actions/checkout@v4
19
19
 
20
- - uses: actions/setup-node@v4
20
+ - uses: actions/setup-node@v6
21
21
  with:
22
- node-version: 20
22
+ node-version: 24
23
23
  registry-url: https://registry.npmjs.org
24
24
 
25
25
  - run: npm ci
@@ -27,10 +27,15 @@ jobs:
27
27
  - run: npm test
28
28
 
29
29
  # Publish with provenance (recommended for OIDC + supply-chain metadata)
30
- - name: Publish
31
- run: npm publish --provenance
32
- # If this is the FIRST publish of a scoped package, you may need:
33
- # run: npm publish --provenance --access public
30
+ # Publish with provenance for PUBLIC repos only
31
+ - name: Publish (provenance)
32
+ if: ${{ !github.event.repository.private }}
33
+ run: npm publish --provenance --access public
34
+
35
+ # Fallback for PRIVATE repos (provenance unsupported by npm for private repos)
36
+ - name: Publish (no provenance)
37
+ if: ${{ github.event.repository.private }}
38
+ run: npm publish --access public
34
39
 
35
40
  - name: GitHub Release
36
41
  run: gh release create "${GITHUB_REF_NAME}" --generate-notes
package/README.md CHANGED
@@ -7,10 +7,11 @@
7
7
 
8
8
  ## Build and Run Project
9
9
 
10
- 1. To build project one time with `npm run build` OR build automatically on save with file watching `npm run watch`. Two modules (same content, different formats) will be built: `mascot-es.js` for node.js applications, and `mascot-umd.js` for in-browser appications.
10
+ 1. To build project one time with `npm run build` OR build automatically on save with file watching `npm run watch`. Three outputs (same content, different formats) will be built: `mascot-esm.js` for modern browsers and bundler usage (import/export), `mascot-umd.js` for direct <script> usage in browsers (global variable), and `mascot-cjs.cjs` for Node.js applications (require). No rendering support is included inside `mascot-cjs.cjs`.
11
+
11
12
  2. To run the in-browser demos, start a server with `npm run start` (you need to have Python 3 installed), and load `localhost:8020` in browser; you can also start the server using Python 2 with the command `python -m SimpleHTTPServer <port>`
12
13
 
13
- ### Releasing
14
+ ## Releasing
14
15
  1. Ensure all intended changes are committed to `main`.
15
16
 
16
17
  2. Run the release script with **either**: