@id-sdk/vector
Advanced tools
Comparing version 3.0.0-pre.5 to 3.0.0-pre.6
{ | ||
"name": "@id-sdk/vector", | ||
"version": "3.0.0-pre.5", | ||
"version": "3.0.0-pre.6", | ||
"description": "Vector (coordinate) math functions", | ||
@@ -9,21 +9,27 @@ "homepage": "https://github.com/ideditor/id-sdk/tree/main/packages/math/vector#readme", | ||
"contributors": [ | ||
"Bryan Housel <bhousel@gmail.com> (https://github.com/bhousel)" | ||
"Ben Clark <clarkben@fb.com> (https://github.com/bonkles)", | ||
"Bryan Housel <bhousel@gmail.com> (https://github.com/bhousel)", | ||
"Danny Krause (https://github.com/vanreece)", | ||
"Milos Brzakovic <mbrzakovic@microsoft.com> (https://github.com/mbrzakovic)" | ||
], | ||
"main": "built/cjs/vector.js", | ||
"module": "built/es6/vector.js", | ||
"files": [ | ||
"built/", | ||
"src/" | ||
], | ||
"type": "module", | ||
"source": "./src/vector.ts", | ||
"types": "./built/vector.d.ts", | ||
"main": "./built/vector.mjs", | ||
"module": "./built/vector.mjs", | ||
"scripts": { | ||
"clean": "shx rm -rf ./built/*", | ||
"build": "npm-run-all -s build:**", | ||
"build:es6": "tsc --project ./tsconfig.es6.json", | ||
"build:cjs": "tsc --project ./tsconfig.cjs.json", | ||
"test": "jest --config ../../../jest.config.js --roots=./packages/math/vector" | ||
"clean": "shx rm -rf ./built", | ||
"build": "run-p esbuild tsc", | ||
"esbuild": "node ./esbuild.js", | ||
"tsc": "tsc", | ||
"test": "NODE_OPTIONS=--experimental-vm-modules npx jest --colors --config=../../../../package.json --roots=./packages/math/packages/vector" | ||
}, | ||
"devDependencies": { | ||
"npm-run-all": "^4.0.0", | ||
"shx": "^0.3.0" | ||
}, | ||
"publishConfig": { | ||
"access": "public" | ||
}, | ||
"gitHead": "ea0640f99465e5845c75bc3d041b0e3d481de6a0" | ||
"gitHead": "0b2689dbfbebf4b79f7b6a4e0c1b6e47c8d3b668" | ||
} |
@@ -12,10 +12,8 @@ [![npm version](https://badge.fury.io/js/%40id-sdk%2Fvector.svg)](https://badge.fury.io/js/%40id-sdk%2Fvector) | ||
This library is available in both ES5/CommonJS and ES6 module formats. | ||
This library is distributed in ESM format only. It cannot be `require()`'d from CommonJS. | ||
For more, please read Sindre Sorhus’s [FAQ](https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c). | ||
```js | ||
const vec = require('@id-sdk/vector'); // CommonJS import all | ||
const vecEqual = require('@id-sdk/vector').vecEqual; // CommonJS import named | ||
// or | ||
import * as vec from '@id-sdk/vector'; // ES6 import all | ||
import { vecEqual } from '@id-sdk/vector'; // ES6 import named | ||
import * as vec from '@id-sdk/vector'; | ||
import { vecEqual } from '@id-sdk/vector'; | ||
``` | ||
@@ -22,0 +20,0 @@ |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
0
Yes
15804
6
232
210
1