Cherry-pick the types compilation from v3 to hopefully fix the consumption error:
node_modules/editions/source/index.ts:6:20 - error TS7016: Could not find a declaration file for module 'semver'. '/Users/balupton/Projects/active/envfile/node_modules/semver/semver.js' implicitly has an 'any' type.
Try `npm install @types/semver` if it exists or add a new declaration (.d.ts) file containing `declare module 'semver';`
6 import semver from 'semver'
browser
edition introduced in v2.0.1 as the Editions Autloader has no use in the web browsererrlop
dependency, should function to fix issue #2Iternal change of not assuming the error code
property exists, as on certain node versions its existance is denied. This should fix the following error:
./node_modules/editions/edition-node-0.8/index.js:310
if (editionError.code.indexOf('unsupported-edition-engines-node-version') === 0) {
^
TypeError: Cannot read property 'indexOf' of undefined
Internal change of requiring a specific Errlop edition, which should function as a workaround for errlop#2 to fix the following error:
./node_modules/errlop/index.js:4
module.exports = require('editions').requirePackage(\_\_dirname, require)
^
TypeError: require(...).requirePackage is not a function
4 || 6 || 8 || 10
to looser ones like >=4
, and if that fails, then it will attempt to load the last edition for the environment.
strict
option, which omission of a value enables the above behaviour.syntaxes
to tags
, with backwards compatibility. This applies to edition specifications, as well as for the blacklist environment variable which is now named EDITIONS_TAG_BLACKLIST
.Error: Cannot find module 'editions'
on Windows (caused by edition directories containing :
which is unsupported on Windows)
Error: Cannot find module 'editions'
(causes by main
pointing to a legacy location
description
, directory
, entry
, and the new engines
field (which follows the package.json:engines
spec).engines
field is a better replacement. The syntaxes
field remains optional, as it is still useful for user configured blacklisting and ecosystem tooling.EDITIONS_SYNTAX_BLACKLIST
environment variable
DEBUG_BEVRY_EDITIONS
as failures will not output all the necessary debugging informationesnext
skip from v8 engines < 4 to node engines < 0.12import
syntax, as the module
field inside package.json
skips the autoloader if supportedesnext
syntax on v8 engines < 4console.error
(stderr) rather than console.log
(stdout)
Initial release