From 10895d4247b0c333e9876efda8a5cbdd02c490c6 Mon Sep 17 00:00:00 2001 From: Gregg Tavares Date: Sat, 1 Jun 2024 23:54:47 +0900 Subject: [PATCH] prep for v3.x --- README.md | 8 ++++---- package.json | 8 ++++---- test/tests/mat3-test.js | 2 +- test/tests/mat4-test.js | 2 +- test/tests/quat-test.js | 2 +- test/tests/utils-test.js | 2 +- test/tests/vec2-test.js | 2 +- test/tests/vec3-test.js | 2 +- test/tests/vec4-test.js | 2 +- test/umd-test.html | 2 +- tsconfig.json | 2 +- 11 files changed, 17 insertions(+), 17 deletions(-) diff --git a/README.md b/README.md index 7958c85..a94f534 100644 --- a/README.md +++ b/README.md @@ -54,7 +54,7 @@ Fast 3d math library for webgpu import { vec3, mat4, -} from 'https://wgpu-matrix.org/dist/2.x/wgpu-matrix.module.js'; +} from 'https://wgpu-matrix.org/dist/3.x/wgpu-matrix.module.js'; const fov = 60 * Math.PI / 180 const aspect = width / height; @@ -101,7 +101,7 @@ There is also the minified version import { vec3, mat4, -} from 'https://wgpu-matrix.org/dist/2.x/wgpu-matrix.module.min.js'; +} from 'https://wgpu-matrix.org/dist/3.x/wgpu-matrix.module.min.js'; // ... etc ... ``` @@ -109,7 +109,7 @@ import { and a UMD version ```html - + + ... ``` diff --git a/package.json b/package.json index 5418a22..c4aa0fb 100644 --- a/package.json +++ b/package.json @@ -2,9 +2,9 @@ "name": "wgpu-matrix", "version": "2.9.1", "description": "fast matrix math library for WebGPU", - "main": "dist/2.x/wgpu-matrix.module.js", - "module": "dist/2.x/wgpu-matrix.module.js", - "types": "dist/2.x/wgpu-matrix.d.ts", + "main": "dist/3.x/wgpu-matrix.module.js", + "module": "dist/3.x/wgpu-matrix.module.js", + "types": "dist/3.x/wgpu-matrix.d.ts", "type": "module", "sideEffects": false, "directories": { @@ -28,7 +28,7 @@ "url": "git+https://github.com/greggman/wgpu-matrix.git" }, "files": [ - "dist/2.x/**" + "dist/3.x/**" ], "keywords": [ "webgpu", diff --git a/test/tests/mat3-test.js b/test/tests/mat3-test.js index 7008c11..0a37afb 100644 --- a/test/tests/mat3-test.js +++ b/test/tests/mat3-test.js @@ -1,4 +1,4 @@ -import {mat3, mat3d, mat3n, mat4, quat, utils} from '../../dist/2.x/wgpu-matrix.module.js'; +import {mat3, mat3d, mat3n, mat4, quat, utils} from '../../dist/3.x/wgpu-matrix.module.js'; import { assertEqual, diff --git a/test/tests/mat4-test.js b/test/tests/mat4-test.js index 1ac02dd..8707b04 100644 --- a/test/tests/mat4-test.js +++ b/test/tests/mat4-test.js @@ -1,4 +1,4 @@ -import {mat4, mat4d, mat4n, mat3, quat, utils, vec3} from '../../dist/2.x/wgpu-matrix.module.js'; +import {mat4, mat4d, mat4n, mat3, quat, utils, vec3} from '../../dist/3.x/wgpu-matrix.module.js'; import { assertEqual, diff --git a/test/tests/quat-test.js b/test/tests/quat-test.js index 2f93a44..38db067 100644 --- a/test/tests/quat-test.js +++ b/test/tests/quat-test.js @@ -1,4 +1,4 @@ -import {mat3, mat4, quat, quatn, quatd, utils, vec3} from '../../dist/2.x/wgpu-matrix.module.js'; +import {mat3, mat4, quat, quatn, quatd, utils, vec3} from '../../dist/3.x/wgpu-matrix.module.js'; import { assertEqual, diff --git a/test/tests/utils-test.js b/test/tests/utils-test.js index f61d87b..885318a 100644 --- a/test/tests/utils-test.js +++ b/test/tests/utils-test.js @@ -1,4 +1,4 @@ -import {utils} from '../../dist/2.x/wgpu-matrix.module.js'; +import {utils} from '../../dist/3.x/wgpu-matrix.module.js'; import { assertEqual, diff --git a/test/tests/vec2-test.js b/test/tests/vec2-test.js index c2a636c..61789f6 100644 --- a/test/tests/vec2-test.js +++ b/test/tests/vec2-test.js @@ -1,4 +1,4 @@ -import {vec2, vec2n, vec2d, utils} from '../../dist/2.x/wgpu-matrix.module.js'; +import {vec2, vec2n, vec2d, utils} from '../../dist/3.x/wgpu-matrix.module.js'; import { assertEqual, diff --git a/test/tests/vec3-test.js b/test/tests/vec3-test.js index 4c33c28..450788b 100644 --- a/test/tests/vec3-test.js +++ b/test/tests/vec3-test.js @@ -1,4 +1,4 @@ -import {quat, vec3, vec3d, vec3n, utils} from '../../dist/2.x/wgpu-matrix.module.js'; +import {quat, vec3, vec3d, vec3n, utils} from '../../dist/3.x/wgpu-matrix.module.js'; import { assertEqual, diff --git a/test/tests/vec4-test.js b/test/tests/vec4-test.js index 5cfa247..ed5d482 100644 --- a/test/tests/vec4-test.js +++ b/test/tests/vec4-test.js @@ -1,4 +1,4 @@ -import {vec4, vec4n, vec4d, utils} from '../../dist/2.x/wgpu-matrix.module.js'; +import {vec4, vec4n, vec4d, utils} from '../../dist/3.x/wgpu-matrix.module.js'; import { assertEqual, diff --git a/test/umd-test.html b/test/umd-test.html index 072d19e..ef2deb7 100644 --- a/test/umd-test.html +++ b/test/umd-test.html @@ -4,7 +4,7 @@ UMD Test - +