@skewedaspect/sage 0.9.0-beta.9 → 0.9.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.
@@ -8,4 +8,4 @@ import { GameCanvas, RenderEngineOptions } from "../interfaces/game.d.ts";
8
8
  * @param canvas - Pass null to get a NullEngine (headless/testing)
9
9
  * @param options
10
10
  */
11
- export declare function createEngine(canvas: GameCanvas | null, options: RenderEngineOptions): Promise<AbstractEngine>;
11
+ export declare function createEngine(canvas: GameCanvas | null, options: RenderEngineOptions, largeWorldRendering?: boolean): Promise<AbstractEngine>;
@@ -0,0 +1,18 @@
1
+ import { Quaternion, Vector3 } from '@babylonjs/core';
2
+ import { QuatConfig, Vec3Config } from "../interfaces/level.d.ts";
3
+ /**
4
+ * Convert a BabylonJS Vector3 to a plain { x, y, z } object.
5
+ */
6
+ export declare function toVec3Object(vector: Vector3): Vec3Config;
7
+ /**
8
+ * Convert a plain { x, y, z } object to a BabylonJS Vector3.
9
+ */
10
+ export declare function toVector3(vec: Vec3Config): Vector3;
11
+ /**
12
+ * Convert a BabylonJS Quaternion to a plain { x, y, z, w } object.
13
+ */
14
+ export declare function toQuatObject(quat: Quaternion): QuatConfig;
15
+ /**
16
+ * Convert a plain { x, y, z, w } object to a BabylonJS Quaternion.
17
+ */
18
+ export declare function toQuaternion(quat: QuatConfig): Quaternion;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skewedaspect/sage",
3
- "version": "0.9.0-beta.9",
3
+ "version": "0.9.1",
4
4
  "main": "dist/sage.umd.js",
5
5
  "module": "dist/sage.es.js",
6
6
  "types": "dist/sage.d.ts",
@@ -34,7 +34,7 @@
34
34
  "test:bench:id": "node ./benchmark/id-generation.bench.ts",
35
35
  "lint": "eslint \"{src,tests,benchmark}/**/*.{ts,js,vue}\" --max-warnings=0 --no-warn-ignored",
36
36
  "lint:staged": "lint-staged",
37
- "prepare": "if-env NODE_ENV=production && exit 0 || husky install",
37
+ "prepare": "if-env NODE_ENV=production && exit 0 || husky",
38
38
  "release": "bash scripts/release.sh"
39
39
  },
40
40
  "files": [
@@ -54,39 +54,44 @@
54
54
  "license": "MIT",
55
55
  "description": "A modern JavaScript/TypeScript game engine built on top of BabylonJS that provides simplified abstractions for 3D game development.",
56
56
  "devDependencies": {
57
- "@babylonjs/core": "^8.47.0",
58
- "@babylonjs/havok": "^1.3.11",
59
- "@babylonjs/loaders": "^8.47.2",
60
- "@eslint/js": "^9.24.0",
57
+ "@babylonjs/core": "^9.0.0",
58
+ "@babylonjs/havok": "^1.3.12",
59
+ "@babylonjs/loaders": "^9.0.0",
60
+ "@eslint/js": "^10.0.1",
61
61
  "@playwright/test": "^1.58.0",
62
- "@stylistic/eslint-plugin": "^4.2.0",
62
+ "@stylistic/eslint-plugin": "^5.10.0",
63
63
  "@types/eslint__js": "^8.42.3",
64
64
  "@types/js-yaml": "^4.0.9",
65
- "@types/node": "^22.14.0",
66
- "@types/sinon": "^17.0.4",
67
- "eslint": "^9.24.0",
68
- "eslint-formatter-junit": "^8.40.0",
69
- "husky": "^8.0.0",
65
+ "@types/node": "^25.5.0",
66
+ "@types/sinon": "^21.0.0",
67
+ "eslint": "^10.1.0",
68
+ "eslint-formatter-junit": "^9.0.1",
69
+ "husky": "^9.1.7",
70
70
  "if-env": "^1.0.4",
71
- "jsdom": "^26.0.0",
72
- "lint-staged": "^15.5.0",
73
- "sinon": "^20.0.0",
74
- "tinybench": "^4.0.1",
71
+ "jsdom": "^29.0.1",
72
+ "lint-staged": "^16.4.0",
73
+ "sinon": "^21.0.3",
74
+ "tinybench": "^6.0.0",
75
75
  "tslib": "^2.8.1",
76
- "typescript": "^5.8.3",
76
+ "typescript": "^6.0.2",
77
77
  "typescript-eslint": "^8.29.0",
78
78
  "uid": "^2.0.2",
79
- "vite": "^7.3.1",
80
- "vite-plugin-dts": "^4.5.3",
81
- "vitest": "^4.0.18"
79
+ "vite": "^8.0.3",
80
+ "vite-plugin-dts": "^4.5.4",
81
+ "vitest": "^4.1.2"
82
82
  },
83
83
  "lint-staged": {
84
84
  "*.{ts,js}": "npm run lint"
85
85
  },
86
86
  "peerDependencies": {
87
- "@babylonjs/core": "^8.1.0",
87
+ "@babylonjs/core": "^9.0.0",
88
88
  "@babylonjs/havok": "^1.3.10",
89
- "@babylonjs/loaders": "^8.1.0"
89
+ "@babylonjs/loaders": "^9.0.0"
90
+ },
91
+ "overrides": {
92
+ "typescript-eslint": {
93
+ "typescript": "$typescript"
94
+ }
90
95
  },
91
96
  "dependencies": {
92
97
  "hexoid": "^2.0.0",