@d1g1tal/subscribr 3.0.2 → 3.0.3

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 +17 -3
  2. package/package.json +6 -7
package/README.md CHANGED
@@ -9,16 +9,30 @@ When the event is published, your event handler will be called.
9
9
 
10
10
  ### Installation:
11
11
  ```bash
12
- npm install @d1g1tal/subscribr --save
12
+ # Install with pnpm
13
+ pnpm install @d1g1tal/subscribr
14
+
15
+ # Install with NPM
16
+ npm install @d1g1tal/subscribr
13
17
  ```
14
18
  Or Script tags from downloaded script or from a NPM CDN like jsDelivr
15
19
 
16
20
  ```html
17
21
  <!-- Load as global script -->
18
- <script src="/app/js/subscribr.min.js"></script>
22
+ <script src="/subscribr/dist/iife/subscribr.min.js"></script>
23
+
24
+ <!-- Load from CDN -->
25
+ <script src="https://cdn.jsdelivr.net/npm/@d1g1tal/subscribr@3/dist/iife/subscribr.min.js"></script>
26
+
27
+ <!-- Load as ES Module -->
28
+ <script type="module">
29
+ import Subscribr from '/app/js/subscribr.min.js';
30
+ </script>
19
31
 
20
32
  <!-- Load from CDN -->
21
- <script src="https://cdn.jsdelivr.net/npm/@d1g1tal/subscribr@2/dist/browser/subscribr.min.js"></script>
33
+ <script type="module">
34
+ import Subscribr from 'https://cdn.jsdelivr.net/npm/@d1g1tal/subscribr@3/dist/subscribr.min.js';
35
+ </script>
22
36
  ```
23
37
 
24
38
  ### Usage:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@d1g1tal/subscribr",
3
- "version": "3.0.2",
3
+ "version": "3.0.3",
4
4
  "description": "JavaScript Publish/Subscribe Library",
5
5
  "type": "module",
6
6
  "exports": {
@@ -34,13 +34,12 @@
34
34
  "@d1g1tal/collections": "^0.2.5"
35
35
  },
36
36
  "devDependencies": {
37
- "@d1g1tal/chrysalis": "^2.2.0",
38
- "@skypack/package-check": "^0.2.2",
39
- "esbuild": "^0.19.5",
40
- "esbuild-library": "^1.0.1",
41
- "eslint": "^8.52.0",
37
+ "@d1g1tal/chrysalis": "^2.2.1",
38
+ "esbuild": "^0.19.8",
39
+ "esbuild-library": "^1.0.3",
40
+ "eslint": "^8.54.0",
42
41
  "eslint-plugin-compat": "^4.2.0",
43
- "eslint-plugin-jsdoc": "^46.8.2",
42
+ "eslint-plugin-jsdoc": "^46.9.0",
44
43
  "jest": "^29.7.0"
45
44
  },
46
45
  "jest": {