recast-navigation 0.7.3 → 0.9.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/README.md CHANGED
@@ -27,13 +27,13 @@ This library provides high level APIs that make it easy to get started creating
27
27
 
28
28
  ## Installation
29
29
 
30
- This package ships as ECMAScript modules, and is compatible with Node.js and browser environments.
30
+ This package ships as both ECMAScript modules and CJS, and is compatible with Node.js and browser environments.
31
31
 
32
32
  **CDN**
33
33
 
34
34
  ```html
35
35
  <script type="module">
36
- import { generateSoloNavMesh } from 'https://www.unpkg.com/@recast-navigation/core@0.7.1/dist/index.es.js';
36
+ import { generateSoloNavMesh } from 'https://www.unpkg.com/@recast-navigation/core@0.9.0/dist/index.mjs';
37
37
  </script>
38
38
  ```
39
39
 
package/index.cjs ADDED
@@ -0,0 +1,2 @@
1
+ "use strict";var e=require("@recast-navigation/core");Object.keys(e).forEach((function(t){"default"===t||Object.prototype.hasOwnProperty.call(exports,t)||Object.defineProperty(exports,t,{enumerable:!0,get:function(){return e[t]}})}));
2
+ //# sourceMappingURL=index.cjs.map
package/package.json CHANGED
@@ -18,27 +18,31 @@
18
18
  "email": "isaac@isaacmason.com",
19
19
  "url": "https://isaacmason.com/"
20
20
  },
21
- "version": "0.7.3",
21
+ "version": "0.9.0",
22
22
  "license": "MIT",
23
23
  "homepage": "https://github.com/isaac-mason/recast-navigation-js",
24
24
  "bugs": {
25
25
  "url": "https://github.com/isaac-mason/recast-navigation-js/issues"
26
26
  },
27
- "type": "module",
28
- "main": "./index.js",
27
+ "main": "./index.cjs",
28
+ "module": "./index.js",
29
29
  "types": "./index.d.ts",
30
30
  "exports": {
31
31
  ".": {
32
- "import": "./index.js"
32
+ "import": "./index.mjs",
33
+ "require": "./index.cjs"
33
34
  },
34
35
  "./three": {
35
- "import": "./three.js"
36
+ "import": "./three.mjs",
37
+ "require": "./index.cjs"
36
38
  }
37
39
  },
38
40
  "files": [
39
41
  "index.js",
42
+ "index.cjs",
40
43
  "index.d.ts",
41
44
  "three.js",
45
+ "three.cjs",
42
46
  "three.d.ts",
43
47
  "LICENSE",
44
48
  "README.md"
@@ -50,15 +54,15 @@
50
54
  "build-storybook": "storybook build"
51
55
  },
52
56
  "dependencies": {
53
- "@recast-navigation/core": "0.7.3",
54
- "@recast-navigation/three": "0.7.3"
57
+ "@recast-navigation/core": "0.9.0",
58
+ "@recast-navigation/three": "0.9.0"
55
59
  },
56
60
  "devDependencies": {
57
61
  "@babel/core": "^7.22.11",
58
62
  "@mdx-js/react": "^2.3.0",
59
63
  "@pmndrs/assets": "^1.6.0",
60
64
  "@react-three/csg": "^3.0.0",
61
- "@react-three/drei": "^9.78.2",
65
+ "@react-three/drei": "^9.83.9",
62
66
  "@react-three/fiber": "^8.12.0",
63
67
  "@rollup/plugin-commonjs": "^25.0.4",
64
68
  "@rollup/plugin-multi-entry": "^6.0.0",
@@ -84,7 +88,7 @@
84
88
  "rollup-plugin-filesize": "^10.0.0",
85
89
  "storybook": "^7.3.2",
86
90
  "suspend-react": "^0.1.3",
87
- "three": "^0.155.0",
91
+ "three": "^0.156.1",
88
92
  "three-pathfinding": "^1.2.0"
89
93
  },
90
94
  "packageManager": "yarn@3.2.2"
package/three.cjs ADDED
@@ -0,0 +1,2 @@
1
+ "use strict";var e=require("@recast-navigation/three");Object.keys(e).forEach((function(t){"default"===t||Object.prototype.hasOwnProperty.call(exports,t)||Object.defineProperty(exports,t,{enumerable:!0,get:function(){return e[t]}})}));
2
+ //# sourceMappingURL=three.cjs.map
package/index.js DELETED
@@ -1,2 +0,0 @@
1
- export*from"@recast-navigation/core";
2
- //# sourceMappingURL=index.js.map
package/three.js DELETED
@@ -1,2 +0,0 @@
1
- export*from"@recast-navigation/three";
2
- //# sourceMappingURL=three.js.map