Socket
Socket
Sign inDemoInstall

editions

Package Overview
Dependencies
Maintainers
2
Versions
130
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

editions - npm Package Versions

1
1113

2.3.0-next.1576050061.23f314f466f3c406da99004d6b0ddca92f52644f

Diff

bevryme
published 2.3.0 •

Changelog

Source

v2.3.0 2019 December 11

  • Rewrote in TypeScript
  • Updated dependencies, base files, and editions using boundation
bevryme
published 2.3.0-next.1576048130.813470fc93e0dcedd30cf3a2a85047efe537c257 •

bevryme
published 2.2.0 •

Changelog

Source

v2.2.0 2019 September 11

  • Removed the browser edition introduced in v2.0.1 as the Editions Autloader has no use in the web browser
  • Updated dependencies
balupton
published 2.1.3 •

Changelog

Source

v2.1.3 2018 December 29

  • Updated errlop dependency, should function to fix issue #2
balupton
published 2.1.2 •

Changelog

Source

v2.1.2 2018 December 29

Iternal 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
bevryme
published 2.1.0 •

Changelog

Source

v2.1.0 2018 November 15

  • If none of the editions for a package match the current node version, editions will try to find a compatible package by converting strict version ranges likes 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.
    • This brings editions handling of engines closer in line with how node handles it, which is as a warning/recommendation, rather than a requirement/enforcement.
    • This has the benefit that edition authors can specify ranges as the specific versions that they have tested the edition against that pass, rather than having to omit that information for runtime compatibility.
    • As such editions will now automatically select the edition with guaranteed support for the environment, and if there are none with guaranteed support, then editions will select the one is most likely supported, and if there are none that are likely supported, then it will try the last edition, which should be the most compatible edition.
    • This is timely, as node v11 is now the version most developers use, yet if edition authors specified only LTS releases, then the editions autoloader would reject loading on v11, despite compatibility being likely with the most upper edition.
    • This behaviour is dictated by the new strict option, which omission of a value enables the above behavior.
  • Change 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.
  • Added codes to the different types of errors we may produce.
  • Upgraded babel from v6 to v7
  • Documentation has swapped from Documentation.js to JSDoc with the Minami theme.
bevryme
published 2.0.2 •

Changelog

Source

v2.0.2 2018 September 3

bevryme
published 2.0.1 •

Changelog

Source

v2.0.1 2018 August 24

  • Fixed potential Error: Cannot find module 'editions' (causes by main pointing to a legacy location
    • Regression in v2.0.0
  • Added an edition for browsers
bevryme
published 2.0.0 •

Changelog

Source

v2.0.0 2018 July 27

  • Edition entries must now make use of the fields: description, directory, entry, and the new engines field (which follows the package.json:engines spec).
  • In version 1, if an edition failed to load, its syntax combination would be blacklisted. This functionality has been removed. The engines field is a better replacement. The syntaxes field remains optional, as it is still useful for user configured blacklisting and ecosystem tooling.
  • Errors reported by the autoloader have improved readability thanks to Errlop
  • Updated base files
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc