Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Version Packages #353

Merged
merged 1 commit into from
May 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 0 additions & 37 deletions .changeset/eighty-hounds-applaud.md

This file was deleted.

7 changes: 0 additions & 7 deletions .changeset/few-weeks-jam.md

This file was deleted.

6 changes: 0 additions & 6 deletions .changeset/moody-boats-own.md

This file was deleted.

32 changes: 0 additions & 32 deletions .changeset/real-boxes-crash.md

This file was deleted.

6 changes: 0 additions & 6 deletions .changeset/sharp-maps-relate.md

This file was deleted.

6 changes: 0 additions & 6 deletions .changeset/short-geese-give.md

This file was deleted.

2 changes: 1 addition & 1 deletion examples/node-cjs-example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"license": "ISC",
"dependencies": {
"@types/three": "^0.163.0",
"recast-navigation": "0.27.0",
"recast-navigation": "0.28.0",
"three": "^0.163.0"
}
}
2 changes: 1 addition & 1 deletion examples/node-esm-example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"license": "ISC",
"dependencies": {
"@types/three": "^0.163.0",
"recast-navigation": "0.27.0",
"recast-navigation": "0.28.0",
"three": "^0.163.0"
}
}
2 changes: 1 addition & 1 deletion examples/vite-wasm-example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"@react-three/fiber": "^8.15.12",
"react": "^18.3.1",
"react-dom": "^18.2.0",
"recast-navigation": "0.27.0",
"recast-navigation": "0.28.0",
"suspend-react": "^0.1.3",
"three": "^0.163.0"
},
Expand Down
2 changes: 1 addition & 1 deletion examples/vite-worker-example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"@react-three/fiber": "^8.15.12",
"react": "^18.3.1",
"react-dom": "^18.2.0",
"recast-navigation": "0.27.0",
"recast-navigation": "0.28.0",
"suspend-react": "^0.1.3",
"three": "^0.163.0"
},
Expand Down
75 changes: 75 additions & 0 deletions packages/recast-navigation-core/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,80 @@
# @recast-navigation/core

## 0.28.0

### Minor Changes

- a86d2c3: feat: change Crowd and NavMeshQuery constructors to take NavMesh as first arg, and options as second

old usage:

```ts
import { NavMesh, Crowd, NavMeshQuery } from "recast-navigation";

const navMesh = new NavMesh();

const crowd = new Crowd({
navMesh,
maxAgents: 100,
maxAgentRadius: 0.6,
});

const navMeshQuery = new NavMeshQuery({ navMesh });
```

new usage:

```ts
import { NavMesh, Crowd, NavMeshQuery } from "recast-navigation";

const navMesh = new NavMesh();

const crowd = new Crowd(navMesh, {
maxAgents: 100,
maxAgentRadius: 0.6,
});

const navMeshQuery = new NavMeshQuery(navMesh);
```

- 365e0aa: fix: change findPolysAroundCircle resultCost to be a FloatArray, not a FloatRef
- 365e0aa: feat(NavMeshQuery): rename closestPointOnPoly posOverPoly return to isPointOverPoly
- f986fad: feat: support separate wasm file as well as inlined wasm file

Progresses https://github.com/isaac-mason/recast-navigation-js/issues/164

Now `init` can be optionally passed a default import of one of the `@recast-navigation/wasm` packages.

The `@recast-navigation/wasm` package is no longer included in the `@recast-navigation/core` package. If nothing is passed to `init`, the inlined wasm-compat flavor is dynamically imported.

Note that the other `wasm` flavor currently does not support node.js environments.

```ts
import { init } from "recast-navigation";

// import the 'wasm' flavor - has a separate wasm file, not inlined
import RecastWasm from "@recast-navigation/wasm/wasm";

await init(RecastWasm);
```

It's still possible to use the inlined wasm flavor by not passing anything to `init` as before.

```ts
import { init } from "recast-navigation";

// internally dynamically imports `@recast-navigation/wasm`
await init();
```

- 365e0aa: feat(Arrays): rename 'free' to 'destroy' for consistency with other methods
- 365e0aa: fix: missing cleanup for Raw Vec3 and \*Ref classes

### Patch Changes

- Updated dependencies [365e0aa]
- @recast-navigation/wasm@0.28.0

## 0.27.0

### Minor Changes
Expand Down
4 changes: 2 additions & 2 deletions packages/recast-navigation-core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"email": "isaac@isaacmason.com",
"url": "https://isaacmason.com/"
},
"version": "0.27.0",
"version": "0.28.0",
"license": "MIT",
"homepage": "https://github.com/isaac-mason/recast-navigation-js",
"bugs": {
Expand All @@ -27,7 +27,7 @@
"lint": "eslint --ext .ts src"
},
"dependencies": {
"@recast-navigation/wasm": "0.27.0"
"@recast-navigation/wasm": "0.28.0"
},
"devDependencies": {
"@babel/core": "^7.24.5",
Expand Down
13 changes: 13 additions & 0 deletions packages/recast-navigation-generators/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
# @recast-navigation/generators

## 0.28.0

### Patch Changes

- Updated dependencies [a86d2c3]
- Updated dependencies [365e0aa]
- Updated dependencies [365e0aa]
- Updated dependencies [f986fad]
- Updated dependencies [365e0aa]
- Updated dependencies [365e0aa]
- @recast-navigation/core@0.28.0
- @recast-navigation/wasm@0.28.0

## 0.27.0

### Patch Changes
Expand Down
6 changes: 3 additions & 3 deletions packages/recast-navigation-generators/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"email": "isaac@isaacmason.com",
"url": "https://isaacmason.com/"
},
"version": "0.27.0",
"version": "0.28.0",
"license": "MIT",
"homepage": "https://github.com/isaac-mason/recast-navigation-js",
"bugs": {
Expand All @@ -27,8 +27,8 @@
"lint": "eslint --ext .ts src"
},
"dependencies": {
"@recast-navigation/core": "0.27.0",
"@recast-navigation/wasm": "0.27.0"
"@recast-navigation/core": "0.28.0",
"@recast-navigation/wasm": "0.28.0"
},
"devDependencies": {
"@babel/core": "^7.24.5",
Expand Down
13 changes: 13 additions & 0 deletions packages/recast-navigation-three/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
# @recast-navigation/three

## 0.28.0

### Patch Changes

- Updated dependencies [a86d2c3]
- Updated dependencies [365e0aa]
- Updated dependencies [365e0aa]
- Updated dependencies [f986fad]
- Updated dependencies [365e0aa]
- Updated dependencies [365e0aa]
- @recast-navigation/core@0.28.0
- @recast-navigation/generators@0.28.0

## 0.27.0

### Patch Changes
Expand Down
6 changes: 3 additions & 3 deletions packages/recast-navigation-three/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"email": "isaac@isaacmason.com",
"url": "https://isaacmason.com/"
},
"version": "0.27.0",
"version": "0.28.0",
"license": "MIT",
"homepage": "https://github.com/isaac-mason/recast-navigation-js",
"bugs": {
Expand All @@ -27,8 +27,8 @@
"lint": "eslint --ext .ts src"
},
"dependencies": {
"@recast-navigation/core": "0.27.0",
"@recast-navigation/generators": "0.27.0"
"@recast-navigation/core": "0.28.0",
"@recast-navigation/generators": "0.28.0"
},
"peerDependencies": {
"@types/three": "0.x.x",
Expand Down
6 changes: 6 additions & 0 deletions packages/recast-navigation-wasm/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @recast-navigation/wasm

## 0.28.0

### Minor Changes

- 365e0aa: fix: change findPolysAroundCircle resultCost to be a FloatArray, not a FloatRef

## 0.27.0

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/recast-navigation-wasm/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"email": "isaac@isaacmason.com",
"url": "https://isaacmason.com/"
},
"version": "0.27.0",
"version": "0.28.0",
"license": "MIT",
"homepage": "https://github.com/isaac-mason/recast-navigation-js",
"bugs": {
Expand Down
Loading