Igor Savin
bf93bafeca
Modernize benchmarks ( #2132 )
...
* Introduce benchmarks
2026-03-17 23:43:46 +01:00
Igor Savin
70b8f1145d
feat: migrate to RSPack ( #2131 )
...
* Migrate to RSPack
* Add tests to CI, address coverage
* fix: Restore AWS sdk
* add simple serve
2026-03-14 23:08:19 +01:00
Igor Savin
2f68d9425b
Migrate to oxlint and oxfmt v2 ( #2130 )
...
* Migrate to oxlint and oxfmt
* Address review comments
2026-03-10 17:27:44 +01:00
Igor Savin
169ef75066
Remove deprecated helpers and fix release script ( #2128 )
...
* Remove deprecated helpers
* Use more idiomatic assertions
* Fix release script
2026-03-03 21:52:28 +01:00
Igor Savin
d65683434d
Convert tests to vitest ( #2127 )
...
* Convert tests to vitest
* fix git tests
* Cleanup
* Convert ignore comments
* address code review comments
2026-03-02 21:33:52 +01:00
Jakob Linskeseder
1245255892
Fix Playwright tests in CI pipeline
...
Also change README to use standard markdown extension.
2026-03-01 17:31:58 +01:00
Igor Savin
22e04868c0
Apply compatibility fixes
2026-03-01 17:26:37 +01:00
Igor Savin
a3ac164642
Refresh Node versions used
2026-03-01 17:26:37 +01:00
William Entriken
864b721fef
remove dead link
2025-08-19 22:53:19 +02:00
Wouter Van Schandevijl
cc8574e631
fix README links to docs
2025-07-07 19:01:55 +02:00
Mohamed Akram
f422bfdf3e
Improve rendering performance
...
Avoid unnecessary copies via Utils.extend in hot paths.
2024-09-03 22:27:34 +02:00
Christian Clauss
25c696b889
Upgrade GitHub Actions checkout and setup-node
...
* https://github.com/actions/checkout/releases
* https://github.com/actions/setup-node/releases
2023-12-14 00:07:04 +01:00
Benoit Vallée
1fc4ef09c1
Fix type "RuntimeOptions" also accepting string partials
2023-09-21 22:30:51 +02:00
Mohamed Akram
ce1f2abf5a
Drop support for EOL Node.js versions
2023-09-20 21:51:23 +02:00
Mohamed Akram
2afecb25db
Fix running integration tests on macOS
2023-09-20 21:26:53 +02:00
Jonas Thelemann
cb828aa282
feat(types): set hash to be a Record<string, any>
...
Resolves #2001
2023-09-12 23:24:37 +02:00
Jonas Thelemann
0bc9f634ca
chore(pull-request-template): correct types path
...
I think it's `/types` now.
2023-09-08 23:12:13 +02:00
Jakob Linskeseder
ae83edd5c4
Support Map and Set in #each block
...
Also support Map-keys in lookup-expressions.
See #1418 #1679
2023-09-06 23:20:32 +02:00
Seyed Mohammad Mahdi Hatami
8ce2be4496
Improve error-message when partial is missing
...
Signed-off-by: Seyed Mohammad Mahdi Hatami <hatamik7@gmail.com >
2023-09-01 00:29:18 +02:00
Nils Knappmeier
d3b93571a7
refactor: rename i to startPartIndex
2023-08-05 22:41:22 +02:00
Jakob Linskeseder
99d162cadc
Fix link to homepage
...
When visiting the www-variant, a `SSL_ERROR_INTERNAL_ERROR_ALERT`
error is displayed by the browser.
2023-08-02 23:35:14 +02:00
Jakob Linskeseder
7147755b55
Allow manually triggering the release-action
2023-08-02 23:03:30 +02:00
Jakob Linskeseder
9413ea99ce
Format *.md files with prettier
...
The `npm run format` command now matches
the husky `lint-staged`-commands.
Also upgraded to prettier v3.
2023-07-30 23:38:10 +02:00
Jakob Linskeseder
f202c501a3
Pass correct environment for AWS S3 publishing
...
See #1972
2023-07-29 21:44:00 +02:00
Jakob Linskeseder
bb55dead2d
Checkout submodules when publishing to AWS S3
...
See #1972
2023-07-29 21:24:52 +02:00
Jakob Linskeseder
6e10b1f658
Fix publishing to AWS S3
...
See #1972
2023-07-29 21:18:15 +02:00
Jakob Linskeseder
65f24eb8b6
Publish latest and tags to AWS S3
...
This recreates the logic from this removed
TravisCI job:
https://github.com/handlebars-lang/handlebars.js/blob/a9a8e403213583ca90cb7c872d3a22796c37d961/.travis.yml#L16-L25
2023-07-29 21:09:35 +02:00
Jay Linski
35f001862c
Create SECURITY.md
...
Closes #1961 .
2023-07-25 19:21:46 +02:00
Jakob Linskeseder
b3ffb16e5d
Fix browser tests in CI pipeline
2023-07-24 21:55:20 +02:00
biodiscus
42adee3f82
Add the link to html-bundler-webpack-plugin in README
2023-07-24 21:53:06 +02:00
Jakob Linskeseder
b4a54ad86e
Test with Node 20
2023-05-17 01:30:18 +02:00
Jakob Linskeseder
e6686963ba
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
2022-10-29 22:09:05 +02:00
Jakob Linskeseder
262b84b08a
Fix integration-tests by not using browserlist from root
...
The `browserlist`-config was introduced in 6bc73fdad7 .
See https://webpack.js.org/configuration/target/#browserslist .
2022-10-29 21:49:15 +02:00
Jakob Linskeseder
6186128ad0
Make library compatible with workers
...
Pulled from 4.x branch, see #1894 .
2022-10-29 21:49:15 +02:00
Jakob Linskeseder
03fe783a69
Ignore prettier formatting-commit
...
See https://github.blog/changelog/2022-03-24-ignore-commits-in-the-blame-view-beta/
2022-10-29 21:49:15 +02:00
Jakob Linskeseder
e534a911f3
Upgrade prettier to v2
...
Prettier v2 has the following breaking changes:
* enforces spaces between `function` and params
* enforces trailing commas by default
2022-10-29 21:49:15 +02:00
Jakob Linskeseder
f6ff3bf52b
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.
2022-10-29 21:49:15 +02:00
Jakob Linskeseder
da41887377
Get rid of underscore-dependency in specs
2022-10-29 21:49:15 +02:00
Jakob Linskeseder
83baaa469f
Remove support for IE11 and dead browsers
...
Handlebars v5 will target modern browsers,
while older browsers will still receive support
via version 4.x.
2022-10-29 21:49:15 +02:00
Jakob Linskeseder
785a63e0a8
Test on Node 18 and drop EOL Node 10
...
* Updated lock-file to fix https://github.com/npm/cli/issues/4859 .
* Updated integration-tests to webpack 5 to fix
https://github.com/webpack/webpack/issues/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
2022-10-16 22:21:56 +02:00
Jakob Linskeseder
903ca504b5
Remove unused parser tests
...
Parser tests are not used anymore, since the parser is
now living in a separate package.
2022-10-14 13:56:17 +02:00
1337617
69dbe65c19
Improving the README.markdown document
2022-09-17 19:00:38 +02:00
Nils Knappmeier
54cbc8c6c6
update package-lock.json
2022-06-21 22:26:22 +02:00
arturmakaranka
b14ff4a6fc
Fix compiling of each block params in strict mode
...
Fixes #1820
Closes #1821
2022-05-25 22:20:04 +02:00
Jakob Linskeseder
e0de1d9a4a
Add CI check for unmet dependencies
...
Fixes #1592
2022-05-20 22:37:11 +02:00
Jakob Linskeseder
9bff03fd3b
Fix bundler issue with webpack 5
...
As explained in issue #1844 and in issue
https://github.com/webpack/webpack/issues/15007#issuecomment-996615250 ,
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
2022-05-17 20:46:30 +02:00
James Wilson
a9fe6d5a03
use https instead of git for mustache submodule
2022-03-19 19:13:23 +01:00
Jakob Linskeseder
ce8982fe55
Add Plop to in-the-wild list
2022-01-10 19:21:58 +01:00
Jakob Linskeseder
80809ef7fc
Add more in-the-wild packages to README
2022-01-04 21:52:02 +01:00
Jakob Linskeseder
30bd78d457
Enable IDE code-highlighting for bin-file
...
By adding the `.js`-extension to the bin-file, IDEs will
know that js code-highlighting should be applied to the
file, which makes it easier for devs to read the code.
2022-01-02 19:19:00 +01:00