Skip to content

Commits

Commits on Oct 29, 2022

  1. Use @handlebars/parser v2

    We have to remove `--failAfterWarnings` from our Rollup integration-test,
    because Typescript, when targeting es5, will use global `this` for transpilation.
    Rollup warns about this, since it replaces `this` with `undefined`:
    
    ```
    src/index.js → dist/bundle.js...
    (!) `this` has been rewritten to `undefined`
    https://rollupjs.org/guide/en/#error-this-is-undefined
    ../../../node_modules/@handlebars/parser/dist/esm/printer.js
    1: var __spreadArrays = (this && this.__spreadArrays) || function () {}
    ```
    
    See https://github.com/handlebars-lang/handlebars-parser/releases/tag/v2.0.0
    jaylinski committed Oct 29, 2022
    Copy the full SHA
    e668696 View commit details
    View at this point in the history
    Browse the repository at this point in the history
  2. Copy the full SHA
    262b84b View commit details
    View at this point in the history
    Browse the repository at this point in the history
  3. Upgrade prettier to v2

    Prettier v2 has the following breaking changes:
    * enforces spaces between `function` and params
    * enforces trailing commas by default
    jaylinski committed Oct 29, 2022
    Copy the full SHA
    e534a91 View commit details
    View at this point in the history
    Browse the repository at this point in the history
  4. Upgrade to ECMAScript 2020

    This is needed in order to use `globalThis`, see #1894.
    It also made it possible to remove some old polyfills and fallbacks.
    jaylinski committed Oct 29, 2022
    Copy the full SHA
    f6ff3bf View commit details
    View at this point in the history
    Browse the repository at this point in the history
  5. Remove support for IE11 and dead browsers

    Handlebars v5 will target modern browsers,
    while older browsers will still receive support
    via version 4.x.
    jaylinski committed Oct 29, 2022
    Copy the full SHA
    83baaa4 View commit details
    View at this point in the history
    Browse the repository at this point in the history

Commits on Oct 16, 2022

  1. Test on Node 18 and drop EOL Node 10

    * Updated lock-file to fix npm/cli#4859.
    * Updated integration-tests to webpack 5 to fix
      webpack/webpack#14532.
    * Added `mode` to webpack-integration-tests to avoid
      the warning `The 'mode' option has not been set...`.
    * Replaced outdated `grunt-bg-shell`-package to get rid of
      coffee-script warnings
    jaylinski committed Oct 16, 2022
    Copy the full SHA
    785a63e View commit details
    View at this point in the history
    Browse the repository at this point in the history

Commits on May 17, 2022

  1. Fix bundler issue with webpack 5

    As explained in issue #1844 and in issue
    webpack/webpack#15007 (comment),
    the way we used the `browser`-field was wrong.
    
    The main reason for using the `browser`-field is the requirement of
    `require('fs')` in the main-entry-file.
    The workaround for this was using `require('handlebars/lib/handlebars')`,
    but now it will also work via `require('handlebars')` for bundlers that
    respect the `browser`-field.
    
    The `"./runtime"`-config was removed, because it didn't have any effect.
    In order to detect regressions, the webpack-integration test was
    extended to test with different webpack versions.
    
    Fixes #1174
    Closes #1844
    jaylinski committed May 17, 2022
    Copy the full SHA
    9bff03f View commit details
    View at this point in the history
    Browse the repository at this point in the history

Commits on Jan 1, 2022

  1. Remove outdated eco package from bench

    The `eco`-templates (Embedded CoffeeScript templates)
    had their last update over 10 years ago, so we can
    remove this dependency from our benchmark.
    jaylinski committed Jan 1, 2022
    Copy the full SHA
    0896d00 View commit details
    View at this point in the history
    Browse the repository at this point in the history

Commits on Dec 29, 2021

  1. Fix integration-tests issue with npm >= 7

    Fixes the following error when running integration-tests:
    ```
    npm ERR! code ERESOLVE
    npm ERR! ERESOLVE unable to resolve dependency tree
    npm ERR!
    npm ERR! While resolving: webpack-test@1.0.0
    npm ERR! Found: handlebars@5.0.0-alpha.1
    npm ERR! node_modules/handlebars
    npm ERR!   dev handlebars@"file:../../.." from the root project
    npm ERR!
    npm ERR! Could not resolve dependency:
    npm ERR! peer handlebars@">= 1.3.0 < 5" from handlebars-loader@1.7.1
    npm ERR! node_modules/handlebars-loader
    npm ERR!   dev handlebars-loader@"^1.7.1" from the root project
    npm ERR!
    ```
    jaylinski committed Dec 29, 2021
    Copy the full SHA
    b3b2671 View commit details
    View at this point in the history
    Browse the repository at this point in the history
  2. Remove AMD tests

    AMD modules were removed in v5.
    jaylinski committed Dec 29, 2021
    Copy the full SHA
    37f4ea1 View commit details
    View at this point in the history
    Browse the repository at this point in the history
  3. Copy the full SHA
    82c6132 View commit details
    View at this point in the history
    Browse the repository at this point in the history
  4. Copy the full SHA
    78e7e28 View commit details
    View at this point in the history
    Browse the repository at this point in the history
  5. Copy the full SHA
    03d387b View commit details
    View at this point in the history
    Browse the repository at this point in the history
  6. Copy the full SHA
    e0f50b4 View commit details
    View at this point in the history
    Browse the repository at this point in the history
  7. Replace Saucelabs with Playwright

    Also reorganized npm scripts.
    jaylinski committed Dec 29, 2021
    Copy the full SHA
    9ed9418 View commit details
    View at this point in the history
    Browse the repository at this point in the history
  8. Move print-script.js-file in tests-folder

    Also removed it from published files, since the script doesn't seem to be used.
    
    Fourth part of reorganizing and cleaning up test-folders.
    jaylinski committed Dec 29, 2021
    Copy the full SHA
    ef0fc29 View commit details
    View at this point in the history
    Browse the repository at this point in the history
  9. Move integration-testing-folder in tests-folder

    Third part of reorganizing and cleaning up test-folders.
    jaylinski committed Dec 29, 2021
    Copy the full SHA
    edc65b5 View commit details
    View at this point in the history
    Browse the repository at this point in the history
  10. Move bench-folder in tests-folder

    First part of reorganizing and cleaning up test-folders.
    jaylinski committed Dec 29, 2021
    Copy the full SHA
    3bd0fa8 View commit details
    View at this point in the history
    Browse the repository at this point in the history