jis 2.2.0-rc.1 → 2.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.
package/CHANGELOG.md CHANGED
@@ -2,6 +2,8 @@
2
2
 
3
3
  ## [Unreleased]
4
4
 
5
+ ## [2.2.0]
6
+
5
7
  ### Deprecated
6
8
  - Accessing type checks directly via `jis.is` and `jis.$*` is deprecated.
7
9
  These APIs will be removed in v3.0.0.
package/README.md CHANGED
@@ -36,6 +36,30 @@ const jis = require('jis')
36
36
  import jis from 'jis'
37
37
  ```
38
38
 
39
+ #### On browser
40
+
41
+ ```html
42
+ <script src="https://unpkg.com/jis@latest"></script>
43
+
44
+ <!-- or
45
+ <script src="https://cdn.jsdelivr.net/npm/jis@latest"></script>
46
+ -->
47
+
48
+ <script>
49
+ // jis is exposed globally as window.jis
50
+ var is = jis.types.is;
51
+ console.log(is(new Date(), 'Date'))
52
+ </script>
53
+ ```
54
+
55
+ You can also pin a specific version (≥2.2.0-preview.1), e.g.:
56
+
57
+ - jis@preview
58
+ - jis@rc
59
+ - jis@2.2.0-preview.1
60
+ - jis@2.2.0-rc.1
61
+ - jis@2.2.0
62
+
39
63
  ### ⚠️ Backward compatibility
40
64
 
41
65
  In `v2.x`, legacy access via `jis.is` and `jis.$*` **still works for compatibility reasons**, but it is **deprecated** and will be removed in `v3.0.0`.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "jis",
3
3
  "private": false,
4
- "version": "2.2.0-rc.1",
4
+ "version": "2.2.0",
5
5
  "description": "When you need validate the variable data type",
6
6
  "type": "module",
7
7
  "main": "./dist/jis.umd.cjs",