@thi.ng/adapt-dpi
Advanced tools
Comparing version 1.0.23 to 2.0.0
@@ -6,14 +6,25 @@ # Change Log | ||
## [1.0.23](https://github.com/thi-ng/umbrella/compare/@thi.ng/adapt-dpi@1.0.22...@thi.ng/adapt-dpi@1.0.23) (2021-08-08) | ||
# [2.0.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/adapt-dpi@1.0.23...@thi.ng/adapt-dpi@2.0.0) (2021-10-12) | ||
**Note:** Version bump only for package @thi.ng/adapt-dpi | ||
### Build System | ||
* major update of ALL pkgs (export maps, ESM only) ([0d1d6ea](https://github.com/thi-ng/umbrella/commit/0d1d6ea9fab2a645d6c5f2bf2591459b939c09b6)) | ||
### BREAKING CHANGES | ||
## [1.0.22](https://github.com/thi-ng/umbrella/compare/@thi.ng/adapt-dpi@1.0.21...@thi.ng/adapt-dpi@1.0.22) (2021-08-08) | ||
* discontinue CommonJS & UMD versions | ||
**Note:** Version bump only for package @thi.ng/adapt-dpi | ||
- only ESM modules will be published from now on | ||
- CJS obsolete due to ESM support in recent versions of node: | ||
- i.e. launch NodeJS via: | ||
- `node --experimental-specifier-resolution=node --experimental-repl-await` | ||
- in the node REPL use `await import(...)` instead of `require()` | ||
- UMD obsolete due to widespread browser support for ESM | ||
Also: | ||
- normalize/restructure/reorg all package.json files | ||
- cleanup all build scripts, remove obsolete | ||
- switch from mocha to @thi.ng/testament for all tests | ||
@@ -23,28 +34,12 @@ | ||
## [1.0.21](https://github.com/thi-ng/umbrella/compare/@thi.ng/adapt-dpi@1.0.20...@thi.ng/adapt-dpi@1.0.21) (2021-07-01) | ||
**Note:** Version bump only for package @thi.ng/adapt-dpi | ||
# 1.0.0 (2020-06-07) | ||
### Features | ||
- **adapt-dpi:** extract as new pkg ([7250041](https://github.com/thi-ng/umbrella/commit/7250041e30995844ac20295bdb36b351f5b2ccc8)) | ||
### BREAKING CHANGES | ||
## [1.0.20](https://github.com/thi-ng/umbrella/compare/@thi.ng/adapt-dpi@1.0.19...@thi.ng/adapt-dpi@1.0.20) (2021-06-08) | ||
**Note:** Version bump only for package @thi.ng/adapt-dpi | ||
# 1.0.0 (2020-06-07) | ||
### Features | ||
* **adapt-dpi:** extract as new pkg ([7250041](https://github.com/thi-ng/umbrella/commit/7250041e30995844ac20295bdb36b351f5b2ccc8)) | ||
### BREAKING CHANGES | ||
* **adapt-dpi:** extracted from hdom-components pkg for better re-use | ||
- **adapt-dpi:** extracted from hdom-components pkg for better re-use |
{ | ||
"name": "@thi.ng/adapt-dpi", | ||
"version": "1.0.23", | ||
"version": "2.0.0", | ||
"description": "HDPI canvas adapter / styling utility", | ||
"type": "module", | ||
"module": "./index.js", | ||
"main": "./lib/index.js", | ||
"umd:main": "./lib/index.umd.js", | ||
"typings": "./index.d.ts", | ||
"sideEffects": false, | ||
"repository": { | ||
@@ -27,19 +27,14 @@ "type": "git", | ||
"scripts": { | ||
"build": "yarn clean && yarn build:es6 && node ../../scripts/bundle-module", | ||
"build:release": "yarn clean && yarn build:es6 && node ../../scripts/bundle-module all", | ||
"build:es6": "tsc --declaration", | ||
"build:test": "rimraf build && tsc -p test/tsconfig.json", | ||
"test": "mocha test", | ||
"cover": "nyc mocha test && nyc report --reporter=lcov", | ||
"clean": "rimraf *.js *.d.ts *.map .nyc_output build coverage doc lib", | ||
"doc:readme": "ts-node -P ../../tools/tsconfig.json ../../tools/src/readme.ts", | ||
"build": "yarn clean && tsc --declaration", | ||
"clean": "rimraf *.js *.d.ts *.map doc", | ||
"doc": "typedoc --excludePrivate --excludeInternal --out doc src/index.ts", | ||
"doc:ae": "mkdir -p .ae/doc .ae/temp && node_modules/.bin/api-extractor run --local --verbose", | ||
"doc": "typedoc --excludePrivate --out doc --theme ../../tools/doc/typedoc-theme src/index.ts", | ||
"pub": "yarn build:release && yarn publish --access public" | ||
"doc:readme": "yarn doc:stats && ../../scripts/node-esm ../../tools/src/readme.ts", | ||
"doc:stats": "../../scripts/node-esm ../../tools/src/module-stats.ts", | ||
"pub": "yarn build && yarn publish --access public", | ||
"test": "testament test" | ||
}, | ||
"files": [ | ||
"*.js", | ||
"*.d.ts", | ||
"lib" | ||
], | ||
"devDependencies": { | ||
"@thi.ng/testament": "^0.1.0" | ||
}, | ||
"keywords": [ | ||
@@ -56,7 +51,15 @@ "browser", | ||
}, | ||
"sideEffects": false, | ||
"files": [ | ||
"*.js", | ||
"*.d.ts" | ||
], | ||
"exports": { | ||
".": { | ||
"import": "./index.js" | ||
} | ||
}, | ||
"thi.ng": { | ||
"year": 2015 | ||
}, | ||
"gitHead": "538019e9d8ca6c5fee4754af93ad454c0674dc72" | ||
"gitHead": "9ac1344b38b565eb894306fbf72233b6c0b2d115" | ||
} |
@@ -43,11 +43,19 @@ <!-- This file is generated - DO NOT EDIT! --> | ||
ES module import: | ||
```html | ||
// ES module | ||
<script type="module" src="https://unpkg.com/@thi.ng/adapt-dpi?module" crossorigin></script> | ||
<script type="module" src="https://cdn.skypack.dev/@thi.ng/adapt-dpi"></script> | ||
``` | ||
// UMD | ||
<script src="https://unpkg.com/@thi.ng/adapt-dpi/lib/index.umd.js" crossorigin></script> | ||
[Skypack documentation](https://docs.skypack.dev/) | ||
For NodeJS (v14.6+): | ||
```text | ||
node --experimental-specifier-resolution=node --experimental-repl-await | ||
> const adaptDpi = await import("@thi.ng/adapt-dpi"); | ||
``` | ||
Package sizes (gzipped, pre-treeshake): ESM: 150 bytes / CJS: 198 bytes / UMD: 316 bytes | ||
Package sizes (gzipped, pre-treeshake): ESM: 150 bytes | ||
@@ -67,3 +75,3 @@ ## Dependencies | ||
| Screenshot | Description | Live demo | Source | | ||
| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------- | --------------------------------------------------- | -------------------------------------------------------------------------------- | | ||
|:---------------------------------------------------------------------------------------------------------------------|:---------------------------------------------|:----------------------------------------------------|:---------------------------------------------------------------------------------| | ||
| <img src="https://raw.githubusercontent.com/thi-ng/umbrella/develop/assets/examples/soa-ecs-100k.png" width="240"/> | Entity Component System w/ 100k 3D particles | [Demo](https://demo.thi.ng/umbrella/soa-ecs/) | [Source](https://github.com/thi-ng/umbrella/tree/develop/examples/soa-ecs) | | ||
@@ -70,0 +78,0 @@ | <img src="https://raw.githubusercontent.com/thi-ng/umbrella/develop/assets/examples/webgl-cubemap.jpg" width="240"/> | WebGL cube maps with async texture loading | [Demo](https://demo.thi.ng/umbrella/webgl-cubemap/) | [Source](https://github.com/thi-ng/umbrella/tree/develop/examples/webgl-cubemap) | |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
110
Yes
19802
1
6
29