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
Jakob Linskeseder
0896d00c2e
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.
2022-01-02 00:15:47 +01:00
Jakob Linskeseder
f73be4ebf3
Remove unused jison package
...
This is package is not needed anymore since the parser
was moved to a standalone package in
19bdace85a .
2022-01-02 00:15:47 +01:00
Jakob Linskeseder
29ed243268
Replace shields.io with faster badgen.net
...
Badgen is a faster successor of shields.io:
https://github.com/badgen/badgen.net
2021-12-30 00:57:40 +01:00
Jakob Linskeseder
dd6ff05079
Add npm version and stats to README
2021-12-30 00:47:47 +01:00
Jakob Linskeseder
c18ed16f71
Update repository URL
...
Related to c295ef085f .
2021-12-30 00:47:47 +01:00
Jakob Linskeseder
7e5890cf5a
Fix build-status badge in README
2021-12-30 00:08:26 +01:00
Jakob Linskeseder
c7278d176a
Fix security issue in y18n (CVE-2020-7774)
...
See https://github.com/advisories/GHSA-c4w7-xm78-47vh .
2021-12-30 00:04:27 +01:00
Jay Linski
35ea8e61bf
Merge pull request #1774 from handlebars-lang/merge-4.x
...
Merge branch 4.x into master
2021-12-29 23:47:46 +01:00
Jakob Linskeseder
a98b01c2ee
Fix TypeScript linting
...
Also upgraded to `@definitelytyped/dtslint`.
2021-12-29 23:43:57 +01:00
Jakob Linskeseder
b3b26712d9
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!
```
2021-12-29 23:29:47 +01:00
Jakob Linskeseder
37f4ea18b4
Remove AMD tests
...
AMD modules were removed in v5.
2021-12-29 23:21:14 +01:00
Jakob Linskeseder
48870b41f7
Update to lock-file version 2
2021-12-29 23:11:07 +01:00
Jakob Linskeseder
82c613244a
Merge branch '4.x' into merge-4.x
2021-12-29 23:10:11 +01:00
Jakob Linskeseder
e2f63da5c0
Don't create security alerts for dev-dependencies
2021-12-29 22:48:01 +01:00
Jakob Linskeseder
4da5882660
Remove non-standard package.json property
...
This was added in 88ee4757e7
and is not used anymore since a2687fdf50 .
2021-12-29 21:48:34 +01:00
Jakob Linskeseder
78e7e28ff9
Replace custom test-server with Grunt connect
2021-12-29 21:35:16 +01:00
Jakob Linskeseder
03d387bf8e
Fix rollup warning when importing Handlebars as ESM
...
Closes #1696
2021-12-29 21:35:16 +01:00
Jakob Linskeseder
e0f50b4eec
Add integration-tests to CI workflow
2021-12-29 21:35:16 +01:00
Jakob Linskeseder
9ed9418488
Replace Saucelabs with Playwright
...
Also reorganized npm scripts.
2021-12-29 21:35:16 +01:00
Jakob Linskeseder
ef0fc290b9
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.
2021-12-29 21:35:16 +01:00
Jakob Linskeseder
edc65b5c19
Move integration-testing-folder in tests-folder
...
Third part of reorganizing and cleaning up test-folders.
2021-12-29 21:35:16 +01:00
Jakob Linskeseder
715f4af179
Remove redundant task-part in task-tests-folder
...
Second part of reorganizing and cleaning up test-folders.
2021-12-29 21:35:16 +01:00
Jakob Linskeseder
3bd0fa8b32
Move bench-folder in tests-folder
...
First part of reorganizing and cleaning up test-folders.
2021-12-29 21:35:16 +01:00
Jakob Linskeseder
476d61667d
Sort in-the-wild list by name
...
Also changed protocol to https.
2021-12-23 23:31:15 +01:00
Jakob Linskeseder
5ba0c72fe6
Add vite-package to in-the-wild list
...
Resolves https://github.com/handlebars-lang/docs/pull/70
2021-12-23 23:31:15 +01:00
Jakob Linskeseder
49621c15ac
Remove archived projects from in-the-wild list
2021-12-23 23:31:15 +01:00
Jakob Linskeseder
1dc2c0bffb
Link to new live demo (playground) on docs site
...
This site is served via HTTPS and provides the latest
Handlebars.js versions.
2021-12-23 23:31:15 +01:00
Jakob Linskeseder
fe58756da2
Fix typos
...
This was found by running an IntellijIDE
code inspection for proofreading.
2021-12-22 20:36:26 +01:00
Jakob Linskeseder
c295ef085f
Update repository URL
2021-12-03 23:12:20 +01:00
Jakob Linskeseder
c1ad3c8057
Update contributing guidelines
2021-12-03 23:12:20 +01:00
Jakob Linskeseder
af92e32822
Run CI tests on more versions
2021-12-03 23:12:20 +01:00
Jakob Linskeseder
2954e7ea66
Don't rely on Node.js global object
...
If `global` is used and handlebars is compiled for browser
usage without a Node.js `global` polyfill, handlebars
fails with a `global is undefined` error.
Fixes #1593
2021-12-03 21:57:55 +01:00
Jakob Linskeseder
b0f1a62ddb
Add missing release for tag v4.2.2
2021-12-03 21:01:26 +01:00
Jakob Linskeseder
7d9450d3c3
Add missing release for tag v4.3.5
...
Also updated all URLs
2021-12-03 20:46:55 +01:00