path2d-polyfill 2.0.0 → 2.0.1

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
@@ -1,3 +1,9 @@
1
+ ## [2.0.1](https://github.com/nilzona/path2d-polyfill/compare/v2.0.0...v2.0.1) (2023-01-22)
2
+
3
+ ### Bug Fixes
4
+
5
+ - add browser and main fields in package.json ([82e8522](https://github.com/nilzona/path2d-polyfill/commit/82e8522b17c750cc06dbade1e7022ffea312fd5d))
6
+
1
7
  ## [2.0.0](https://github.com/nilzona/path2d-polyfill/compare/v1.2.3...v2.0.0) (2023-01-22)
2
8
 
3
9
  ### ⚠ BREAKING CHANGES
package/README.md CHANGED
@@ -9,7 +9,7 @@ Polyfills `Path2D` api and `roundRect` for CanvasRenderingContext2D
9
9
  Add this script tag to your page to enable the feature.
10
10
 
11
11
  ```html
12
- <script lang="javascript" src="https://unpkg.com/path2d-polyfill"></script>
12
+ <script lang="javascript" src="https://cdn.jsdelivr.net/npm/path2d-polyfill/dist/path2d-polyfill.min.js"></script>
13
13
  ```
14
14
 
15
15
  or install from npm
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "path2d-polyfill",
3
- "version": "2.0.0",
3
+ "version": "2.0.1",
4
4
  "description": "Polyfills Path2D api for canvas rendering",
5
5
  "scripts": {
6
6
  "build": "rm -rf dist/* && rollup -c",
@@ -15,6 +15,8 @@
15
15
  "prepare": "husky install",
16
16
  "release": "release-it"
17
17
  },
18
+ "main": "dist/path2d-node.cjs",
19
+ "browser": "dist/path2d-polyfill.min.js",
18
20
  "exports": {
19
21
  "node": {
20
22
  "import": "./dist/path2d-node.mjs",