PackageTrack
Sign in Get early access

node_preamble

Better node.js preamble for dart2js, use it in your build system.

2.0.2 8.3M downloads/mo #61 most downloaded on pub.dev mbullington/node_preamble.dart

What this package is like to depend on

Last release 3 years ago

no release in 18 months

Release timing varies

gaps range from 1 weeks to 1.7 years

Most releases are documented

notes for 13 of 21 stable releases

Nothing withdrawn

no release was ever pulled

11 years old

21 releases · first in 2015

0 releases in the last 12 months

see the full history below

Release timeline

21 releases · Aug 2015 to Mar 2023
2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026
Release Pre-release

Releases

latest 21
  1. 2.0.2 01 Mar 2023

    Nothing published for this version

  2. 2.0.1 16 Jun 2021

    Nothing published for this version

  3. 2.0.0 03 Mar 2021

    Nothing published for this version

  4. 1.4.13 25 Jan 2021

    Nothing published for this version

  5. 1.4.12 10 Jun 2020

    Nothing published for this version

  6. 1.4.11 10 Jun 2020

    Nothing published for this version

  7. 1.4.10 03 Jun 2020

    Nothing published for this version

  8. 1.4.9 23 May 2020
    Release notes
    • Change behavior of Node.js detection that now takes into account:
      • Web workers in browser
      • Electron
    Open source →
  9. 1.4.8 10 Sep 2019
    Release notes
    • Fixed previous build 1.4.7 when minified file is used.
    Open source →
  10. 1.4.7 04 Sep 2019
    Release notes

    Thanks! @lexaknyazev

    • Move url module import to Node.js-only block.
    • Fix for when we try to load url on Node.js but are also using Webpack.
    Open source →
  11. 1.4.6 27 Jul 2019
    Release notes
    • Make location.href compatible with Node versions earlier than 10.12.0 again.
    Open source →
  12. 1.4.5 22 Jul 2019
    Release notes
    • Improve location.href so that Dart's Uri.current works for more paths.

      • Make location.href a getter so Dart's Uri.current changes along with the process's working directory.
    • Fixes for Angular 6+ applications using compiled Dart package w/ preamble:

      • Checks for global if it's not polyfilled, then try for window.
      • Don't assume that since we have CommonJS we have process, __dirname, __filename.
    Open source →
  13. 1.4.4 24 Jul 2018
    Release notes
    • Explicitly support Dart 2 stable releases.
    Open source →
  14. 1.4.3 01 Jul 2018
    Release notes
    • Add Node detector for Browserify/Webpack-type environments. (thanks to @lexaknyazev for reporting!)
    • Add examples for pub (thanks @bcko!)
    Open source →
  15. 1.4.2 25 May 2018
    Release notes
    • Keep Uri.base up to date when the current working directory changes.
    • Add .dart_tool to gitignore.
    Open source →
  16. 1.4.1 25 Apr 2018
    Release notes
    • Make sure to replace all backslashes for cwd on Windows, not just the first.
    Open source →
  17. 1.4.0 30 Jun 2017
    Release notes
    • Add __dirname and __filename to exposed globals. Adds ability of exposing more globals in the preamble by calling getPreamble(additionalGlobals: ["__dirname", ...]).
    Open source →
  18. 1.3.0 12 Mar 2017
    Release notes
    • Add minified versions of the preamble accessible as lib/preamble.min.js and by calling getPreamble(minified: true).
    Open source →
  19. 1.2.0 03 Dec 2016
    Release notes
    • Prevent encapsulation, global.self = global (old) vs. var self = Object.create(global) (new).
    Open source →
  20. 1.1.0 02 Dec 2016
    Release notes
    • Set global.location so that Uri.base() works properly on Windows in most cases.

    • Define global.exports so that it's visible to the compiled JS.

    Open source →
  21. 1.0.0 24 Aug 2015

    Nothing published for this version

Every package, every release, already written down.

The archive is open and free. Watching your own project is what we are building next.

Browse the archive