Comparing version 0.6.4 to 0.6.5
@@ -5,2 +5,16 @@ # Changelog | ||
## [0.6.5] - 2024-08-12 | ||
### Added | ||
- The `--all` toggle to enable all presets ([#43](https://github.com/imcotton/pkg-fence/pull/43)) | ||
### Changed | ||
- Updating presets `--relief` to [v2.4.0](https://github.com/es-tooling/module-replacements/releases/tag/2.4.0) of **module-replacements** ([#44](https://github.com/imcotton/pkg-fence/pull/44)) | ||
## [0.6.4] - 2024-08-03 | ||
@@ -7,0 +21,0 @@ |
@@ -20,2 +20,4 @@ export const help_text = ` | ||
--all | ||
--lodash | ||
@@ -25,3 +27,3 @@ | ||
--relief (via es-tooling/module-replacements v2.3.2) | ||
--relief (via es-tooling/module-replacements v2.4.0) | ||
--relief-native | ||
@@ -28,0 +30,0 @@ --relief-micro |
@@ -21,2 +21,5 @@ import { parseArgs } from 'node:util'; | ||
}, | ||
all: { | ||
type: 'boolean', | ||
}, | ||
// presets | ||
@@ -23,0 +26,0 @@ lodash: { |
@@ -7,10 +7,16 @@ import * as lodash from './lodash.js'; | ||
export { relief }; | ||
import { or } from '../common.js'; | ||
const on = (t) => (p) => p[t] === true; | ||
const on_all = on('all'); | ||
const all_OR_lodash = or(on_all, on('lodash')); | ||
const all_OR_nolyfill = or(on_all, on('nolyfill')); | ||
const all_OR_relief = or(on_all, on('relief')); | ||
export function* gen_presets(param) { | ||
if (param.lodash === true) { | ||
if (all_OR_lodash(param)) { | ||
yield lodash.check; | ||
} | ||
if (param.nolyfill === true) { | ||
if (all_OR_nolyfill(param)) { | ||
yield nolyfill.check; | ||
} | ||
if (param.relief === true) { | ||
if (all_OR_relief(param)) { | ||
yield* [ | ||
@@ -17,0 +23,0 @@ relief.native_check, |
import { lookup } from '../common.js'; | ||
// https://github.com/es-tooling/module-replacements/blob/2.3.2/manifests/native.json | ||
// https://github.com/es-tooling/module-replacements/blob/2.4.0/manifests/native.json | ||
export const native_list = [ | ||
@@ -68,2 +68,3 @@ 'array-buffer-byte-length', | ||
'index-of', | ||
'inherits', | ||
'is-nan', | ||
@@ -137,3 +138,3 @@ 'iterate-iterator', | ||
export const native_check = lookup(native_list); | ||
// https://github.com/es-tooling/module-replacements/blob/2.3.2/manifests/micro-utilities.json | ||
// https://github.com/es-tooling/module-replacements/blob/2.4.0/manifests/micro-utilities.json | ||
export const micro_list = [ | ||
@@ -163,3 +164,3 @@ 'call-bind', | ||
export const micro_check = lookup(micro_list); | ||
// https://github.com/es-tooling/module-replacements/blob/2.3.2/manifests/preferred.json | ||
// https://github.com/es-tooling/module-replacements/blob/2.4.0/manifests/preferred.json | ||
export const preferred_list = [ | ||
@@ -175,2 +176,6 @@ 'bluebird', | ||
'eslint-plugin-react', | ||
'fast-glob', | ||
'glob', | ||
'globby', | ||
'invariant', | ||
'is-builtin-module', | ||
@@ -511,4 +516,6 @@ 'jquery', | ||
'rimraf', | ||
'shortid', | ||
'sort-object', | ||
'tempy', | ||
'traverse', | ||
'underscore', | ||
@@ -515,0 +522,0 @@ 'uri-js', |
{ | ||
"name": "pkg-fence", | ||
"version": "0.6.4", | ||
"version": "0.6.5", | ||
"description": "A command line tool that glance over package dependencies.", | ||
@@ -5,0 +5,0 @@ "license": "AGPL-3.0-only", |
@@ -51,5 +51,6 @@ pkg-fence | ||
- `--all` | ||
- `--lodash`: pkg naming starts by `lodash.` or equals to `lodash` | ||
- `--nolyfill`: list of names from https://github.com/SukkaW/nolyfill (**1.0.34**) | ||
- `--relief`: list of names from https://github.com/es-tooling/module-replacements (**2.3.2**) | ||
- `--relief`: list of names from https://github.com/es-tooling/module-replacements (**2.4.0**) | ||
- `--relief-native` | ||
@@ -56,0 +57,0 @@ - `--relief-micro` |
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
62943
905
140