@handlebars/parser 2.0.0 → 2.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/.eslintignore CHANGED
@@ -1,3 +1,4 @@
1
1
  /dist/
2
2
  /lib/parser.js
3
3
  /src/
4
+ *.d.ts
@@ -1,11 +1,11 @@
1
1
  module.exports = {
2
2
  extends: ['eslint:recommended', 'plugin:compat/recommended', 'prettier'],
3
3
  globals: {
4
- self: false
4
+ self: false,
5
5
  },
6
6
  env: {
7
7
  node: true,
8
- es6: true
8
+ es6: true,
9
9
  },
10
10
  rules: {
11
11
  'no-console': 'warn',
@@ -56,11 +56,10 @@ module.exports = {
56
56
 
57
57
  // ECMAScript 6 //
58
58
  //--------------//
59
- 'no-var': 'error'
59
+ 'no-var': 'error',
60
60
  },
61
61
  parserOptions: {
62
+ ecmaVersion: 2020,
62
63
  sourceType: 'module',
63
- ecmaVersion: 6,
64
- ecmaFeatures: {}
65
- }
64
+ },
66
65
  };
@@ -16,13 +16,13 @@ jobs:
16
16
  timeout-minutes: 10
17
17
 
18
18
  steps:
19
- - uses: actions/checkout@v2
20
- - uses: volta-cli/action@v1
19
+ - uses: wyvox/action@v1
21
20
 
22
21
  - name: install dependencies
23
- run: npm ci
24
-
25
- - run: npm run lint
22
+ run: pnpm i
23
+ env:
24
+ CI: true
25
+ - run: pnpm run lint
26
26
 
27
27
  tests:
28
28
  name: Tests
@@ -30,10 +30,11 @@ jobs:
30
30
  timeout-minutes: 10
31
31
 
32
32
  steps:
33
- - uses: actions/checkout@v2
34
- - uses: volta-cli/action@v1
33
+ - uses: wyvox/action@v1
35
34
 
36
35
  - name: install dependencies
37
- run: npm ci
36
+ run: pnpm i
37
+ env:
38
+ CI: true
38
39
 
39
- - run: npm test
40
+ - run: pnpm test
@@ -0,0 +1,93 @@
1
+ name: Plan Release
2
+ on:
3
+ workflow_dispatch:
4
+ push:
5
+ branches:
6
+ - main
7
+ - master
8
+ pull_request_target: # This workflow has permissions on the repo, do NOT run code from PRs in this workflow. See https://securitylab.github.com/research/github-actions-preventing-pwn-requests/
9
+ types:
10
+ - labeled
11
+ - unlabeled
12
+
13
+ concurrency:
14
+ group: plan-release # only the latest one of these should ever be running
15
+ cancel-in-progress: true
16
+
17
+ jobs:
18
+ is-this-a-release:
19
+ name: "Is this a release?"
20
+ runs-on: ubuntu-latest
21
+ outputs:
22
+ command: ${{ steps.check-release.outputs.command }}
23
+
24
+ steps:
25
+ - uses: actions/checkout@v4
26
+ with:
27
+ fetch-depth: 2
28
+ ref: 'master'
29
+ # This will only cause the `is-this-a-release` job to have a "command" of `release`
30
+ # when the .release-plan.json file was changed on the last commit.
31
+ - id: check-release
32
+ run: if git diff --name-only HEAD HEAD~1 | grep -w -q ".release-plan.json"; then echo "command=release"; fi >> $GITHUB_OUTPUT
33
+
34
+ create-prepare-release-pr:
35
+ name: Create Prepare Release PR
36
+ runs-on: ubuntu-latest
37
+ timeout-minutes: 5
38
+ needs: is-this-a-release
39
+ permissions:
40
+ contents: write
41
+ issues: read
42
+ pull-requests: write
43
+ # only run on push event or workflow dispatch if plan wasn't updated (don't create a release plan when we're releasing)
44
+ # only run on labeled event if the PR has already been merged
45
+ if: ((github.event_name == 'push' || github.event_name == 'workflow_dispatch') && needs.is-this-a-release.outputs.command != 'release') || (github.event_name == 'pull_request_target' && github.event.pull_request.merged == true)
46
+
47
+ steps:
48
+ - uses: actions/checkout@v4
49
+ # We need to download lots of history so that
50
+ # github-changelog can discover what's changed since the last release
51
+ with:
52
+ fetch-depth: 0
53
+ ref: 'master'
54
+ - uses: pnpm/action-setup@v4
55
+ - uses: actions/setup-node@v4
56
+ with:
57
+ cache: pnpm
58
+ - run: pnpm install --frozen-lockfile
59
+ - name: "Generate Explanation and Prep Changelogs"
60
+ id: explanation
61
+ run: |
62
+ set +e
63
+ pnpm release-plan prepare 2> >(tee -a release-plan-stderr.txt >&2)
64
+
65
+ if [ $? -ne 0 ]; then
66
+ release_plan_output=$(cat release-plan-stderr.txt)
67
+ else
68
+ release_plan_output=$(jq .description .release-plan.json -r)
69
+ rm release-plan-stderr.txt
70
+
71
+ if [ $(jq '.solution | length' .release-plan.json) -eq 1 ]; then
72
+ new_version=$(jq -r '.solution[].newVersion' .release-plan.json)
73
+ echo "new_version=v$new_version" >> $GITHUB_OUTPUT
74
+ fi
75
+ fi
76
+ echo 'text<<EOF' >> $GITHUB_OUTPUT
77
+ echo "$release_plan_output" >> $GITHUB_OUTPUT
78
+ echo 'EOF' >> $GITHUB_OUTPUT
79
+ env:
80
+ GITHUB_AUTH: ${{ secrets.GITHUB_TOKEN }}
81
+
82
+ - uses: peter-evans/create-pull-request@v7
83
+ with:
84
+ commit-message: "Prepare Release ${{ steps.explanation.outputs.new_version}} using 'release-plan'"
85
+ labels: "internal"
86
+ branch: release-preview
87
+ title: Prepare Release ${{ steps.explanation.outputs.new_version }}
88
+ body: |
89
+ This PR is a preview of the release that [release-plan](https://github.com/embroider-build/release-plan) has prepared. To release you should just merge this PR 👍
90
+
91
+ -----------------------------------------
92
+
93
+ ${{ steps.explanation.outputs.text }}
@@ -0,0 +1,42 @@
1
+ # For every push to the primary branch with .release-plan.json modified,
2
+ # runs release-plan.
3
+
4
+ name: Publish Stable
5
+
6
+ on:
7
+ workflow_dispatch:
8
+ push:
9
+ branches:
10
+ - main
11
+ - master
12
+ paths:
13
+ - '.release-plan.json'
14
+
15
+ concurrency:
16
+ group: publish-${{ github.head_ref || github.ref }}
17
+ cancel-in-progress: true
18
+
19
+ jobs:
20
+ publish:
21
+ name: "NPM Publish"
22
+ runs-on: ubuntu-latest
23
+ permissions:
24
+ contents: write
25
+ pull-requests: write
26
+ id-token: write
27
+ attestations: write
28
+
29
+ steps:
30
+ - uses: actions/checkout@v4
31
+ - uses: pnpm/action-setup@v4
32
+ - uses: actions/setup-node@v4
33
+ with:
34
+ # This creates an .npmrc that reads the NODE_AUTH_TOKEN environment variable
35
+ registry-url: 'https://registry.npmjs.org'
36
+ cache: pnpm
37
+ - run: pnpm install --frozen-lockfile
38
+ - name: Publish to NPM
39
+ run: NPM_CONFIG_PROVENANCE=true pnpm release-plan publish
40
+ env:
41
+ GITHUB_AUTH: ${{ secrets.GITHUB_TOKEN }}
42
+ NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
@@ -0,0 +1,26 @@
1
+ {
2
+ "solution": {
3
+ "@handlebars/parser": {
4
+ "impact": "minor",
5
+ "oldVersion": "2.1.0",
6
+ "newVersion": "2.2.0",
7
+ "tagName": "latest",
8
+ "constraints": [
9
+ {
10
+ "impact": "minor",
11
+ "reason": "Appears in changelog section :rocket: Enhancement"
12
+ },
13
+ {
14
+ "impact": "patch",
15
+ "reason": "Appears in changelog section :bug: Bug Fix"
16
+ },
17
+ {
18
+ "impact": "patch",
19
+ "reason": "Appears in changelog section :house: Internal"
20
+ }
21
+ ],
22
+ "pkgJSONPath": "./package.json"
23
+ }
24
+ },
25
+ "description": "## Release (2025-03-19)\n\n* @handlebars/parser 2.2.0 (minor)\n\n#### :rocket: Enhancement\n* `@handlebars/parser`\n * [#15](https://github.com/handlebars-lang/handlebars-parser/pull/15) Implement hash and array literal syntax ([@wycats](https://github.com/wycats))\n * [#14](https://github.com/handlebars-lang/handlebars-parser/pull/14) Add support for a `#` prefix in path segments ([@wycats](https://github.com/wycats))\n\n#### :bug: Bug Fix\n* `@handlebars/parser`\n * [#6](https://github.com/handlebars-lang/handlebars-parser/pull/6) [bugfix] Don't emit `parts: [undefined]` for `{{this}}` ([@dfreeman](https://github.com/dfreeman))\n\n#### :house: Internal\n* `@handlebars/parser`\n * [#17](https://github.com/handlebars-lang/handlebars-parser/pull/17) Add release plan, remove release-it ([@NullVoxPopuli](https://github.com/NullVoxPopuli))\n\n#### Committers: 3\n- Dan Freeman ([@dfreeman](https://github.com/dfreeman))\n- Yehuda Katz ([@wycats](https://github.com/wycats))\n- [@NullVoxPopuli](https://github.com/NullVoxPopuli)\n"
26
+ }
package/CHANGELOG.md CHANGED
@@ -1,3 +1,35 @@
1
+ # Changelog
2
+
3
+ ## Release (2025-03-19)
4
+
5
+ * @handlebars/parser 2.2.0 (minor)
6
+
7
+ #### :rocket: Enhancement
8
+ * `@handlebars/parser`
9
+ * [#15](https://github.com/handlebars-lang/handlebars-parser/pull/15) Implement hash and array literal syntax ([@wycats](https://github.com/wycats))
10
+ * [#14](https://github.com/handlebars-lang/handlebars-parser/pull/14) Add support for a `#` prefix in path segments ([@wycats](https://github.com/wycats))
11
+
12
+ #### :bug: Bug Fix
13
+ * `@handlebars/parser`
14
+ * [#6](https://github.com/handlebars-lang/handlebars-parser/pull/6) [bugfix] Don't emit `parts: [undefined]` for `{{this}}` ([@dfreeman](https://github.com/dfreeman))
15
+
16
+ #### :house: Internal
17
+ * `@handlebars/parser`
18
+ * [#17](https://github.com/handlebars-lang/handlebars-parser/pull/17) Add release plan, remove release-it ([@NullVoxPopuli](https://github.com/NullVoxPopuli))
19
+
20
+ #### Committers: 3
21
+ - Dan Freeman ([@dfreeman](https://github.com/dfreeman))
22
+ - Yehuda Katz ([@wycats](https://github.com/wycats))
23
+ - [@NullVoxPopuli](https://github.com/NullVoxPopuli)
24
+
25
+ ## v2.1.0 (2021-02-22)
26
+
27
+ #### :rocket: Enhancement
28
+ * [#4](https://github.com/handlebars-lang/handlebars-parser/pull/4) [FEATURE] Allows SubExpressions to be PathExpression roots ([@pzuraq](https://github.com/pzuraq))
29
+
30
+ #### Committers: 1
31
+ - Chris Garrett ([@pzuraq](https://github.com/pzuraq))
32
+
1
33
  ## v2.0.0 (2020-12-09)
2
34
 
3
35
  #### :boom: Breaking Change
package/RELEASE.md CHANGED
@@ -1,60 +1,27 @@
1
1
  # Release Process
2
2
 
3
- Releases are mostly automated using
4
- [release-it](https://github.com/release-it/release-it/) and
5
- [lerna-changelog](https://github.com/lerna/lerna-changelog/).
3
+ Releases in this repo are mostly automated using [release-plan](https://github.com/embroider-build/release-plan/). Once you label all your PRs correctly (see below) you will have an automatically generated PR that updates your CHANGELOG.md file and a `.release-plan.json` that is used to prepare the release once the PR is merged.
6
4
 
7
5
  ## Preparation
8
6
 
9
- Since the majority of the actual release process is automated, the primary
10
- remaining task prior to releasing is confirming that all pull requests that
11
- have been merged since the last release have been labeled with the appropriate
12
- `lerna-changelog` labels and the titles have been updated to ensure they
13
- represent something that would make sense to our users. Some great information
14
- on why this is important can be found at
15
- [keepachangelog.com](https://keepachangelog.com/en/1.0.0/), but the overall
16
- guiding principle here is that changelogs are for humans, not machines.
17
-
18
- When reviewing merged PR's the labels to be used are:
19
-
20
- * breaking - Used when the PR is considered a breaking change.
21
- * enhancement - Used when the PR adds a new feature or enhancement.
22
- * bug - Used when the PR fixes a bug included in a previous release.
23
- * documentation - Used when the PR adds or updates documentation.
24
- * internal - Used for internal changes that still require a mention in the
25
- changelog/release notes.
26
-
27
- ## Release
7
+ Since the majority of the actual release process is automated, the remaining tasks before releasing are:
28
8
 
29
- Once the prep work is completed, the actual release is straight forward:
9
+ - correctly labeling **all** pull requests that have been merged since the last release
10
+ - updating pull request titles so they make sense to our users
30
11
 
31
- * First, ensure that you have installed your projects dependencies:
32
-
33
- ```sh
34
- npm install
35
- ```
36
-
37
- * Second, ensure that you have obtained a
38
- [GitHub personal access token][generate-token] with the `repo` scope (no
39
- other permissions are needed). Make sure the token is available as the
40
- `GITHUB_AUTH` environment variable.
41
-
42
- For instance:
12
+ Some great information on why this is important can be found at [keepachangelog.com](https://keepachangelog.com/en/1.1.0/), but the overall
13
+ guiding principle here is that changelogs are for humans, not machines.
43
14
 
44
- ```bash
45
- export GITHUB_AUTH=abc123def456
46
- ```
15
+ When reviewing merged PR's the labels to be used are:
47
16
 
48
- [generate-token]: https://github.com/settings/tokens/new?scopes=repo&description=GITHUB_AUTH+env+variable
17
+ - breaking - Used when the PR is considered a breaking change.
18
+ - enhancement - Used when the PR adds a new feature or enhancement.
19
+ - bug - Used when the PR fixes a bug included in a previous release.
20
+ - documentation - Used when the PR adds or updates documentation.
21
+ - internal - Internal changes or things that don't fit in any other category.
49
22
 
50
- * And last (but not least 😁) do your release.
23
+ **Note:** `release-plan` requires that **all** PRs are labeled. If a PR doesn't fit in a category it's fine to label it as `internal`
51
24
 
52
- ```sh
53
- npx release-it
54
- ```
25
+ ## Release
55
26
 
56
- [release-it](https://github.com/release-it/release-it/) manages the actual
57
- release process. It will prompt you to to choose the version number after which
58
- you will have the chance to hand tweak the changelog to be used (for the
59
- `CHANGELOG.md` and GitHub release), then `release-it` continues on to tagging,
60
- pushing the tag and commits, etc.
27
+ Once the prep work is completed, the actual release is straight forward: you just need to merge the open [Plan Release](https://github.com/handlebars-lang/handlebars-parser/pulls?q=is%3Apr+is%3Aopen+%22Prepare+Release%22+in%3Atitle) PR
@@ -1,5 +1,3 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
1
  var errorProps = [
4
2
  'description',
5
3
  'fileName',
@@ -55,5 +53,5 @@ function Exception(message, node) {
55
53
  }
56
54
  }
57
55
  Exception.prototype = new Error();
58
- exports.default = Exception;
59
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZXhjZXB0aW9uLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vbGliL2V4Y2VwdGlvbi5qcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBLElBQU0sVUFBVSxHQUFHO0lBQ2pCLGFBQWE7SUFDYixVQUFVO0lBQ1YsWUFBWTtJQUNaLGVBQWU7SUFDZixTQUFTO0lBQ1QsTUFBTTtJQUNOLFFBQVE7SUFDUixPQUFPO0NBQ1IsQ0FBQztBQUVGLFNBQVMsU0FBUyxDQUFDLE9BQU8sRUFBRSxJQUFJO0lBQzlCLElBQUksR0FBRyxHQUFHLElBQUksSUFBSSxJQUFJLENBQUMsR0FBRyxFQUN4QixJQUFJLEVBQ0osYUFBYSxFQUNiLE1BQU0sRUFDTixTQUFTLENBQUM7SUFFWixJQUFJLEdBQU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GlzLCAnY29sdW1uJywge1xuICAgICAgICAgIHZhbHVlOiBjb2x1bW4sXG4gICAgICAgICAgZW51bWVyYWJsZTogdHJ1ZVxuICAgICAgICB9KTtcbiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KHRoaXMsICdlbmRDb2x1bW4nLCB7XG4gICAgICAgICAgdmFsdWU6IGVuZENvbHVtbixcbiAgICAgICAgICBlbnVtZXJhYmxlOiB0cnVlXG4gICAgICAgIH0pO1xuICAgICAgfSBlbHNlIHtcbiAgICAgICAgdGhpcy5jb2x1bW4gPSBjb2x1bW47XG4gICAgICAgIHRoaXMuZW5kQ29sdW1uID0gZW5kQ29sdW1uO1xuICAgICAgfVxuICAgIH1cbiAgfSBjYXRjaCAobm9wKSB7XG4gICAgLyogSWdub3JlIGlmIHRoZSBicm93c2VyIGlzIHZlcnkgcGFydGljdWxhciAqL1xuICB9XG59XG5cbkV4Y2VwdGlvbi5wcm90b3R5cGUgPSBuZXcgRXJyb3IoKTtcblxuZXhwb3J0IGRlZmF1bHQgRXhjZXB0aW9uO1xuIl19
56
+ export default Exception;
57
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZXhjZXB0aW9uLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vbGliL2V4Y2VwdGlvbi5qcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxJQUFNLFVBQVUsR0FBRztJQUNqQixhQUFhO0lBQ2IsVUFBVTtJQUNWLFlBQVk7SUFDWixlQUFlO0lBQ2YsU0FBUztJQUNULE1BQU07SUFDTixRQUFRO0lBQ1IsT0FBTztDQUNSLENBQUM7QUFFRixTQUFTLFNBQVMsQ0FBQyxPQUFPLEVBQUUsSUFBSTtJQUM5QixJQUFJLEdBQUcsR0FBRyxJQUFJLElBQUksSUFBSSxDQUFDLEdBQUcsRUFDeEIsSUFBSSxFQUNKLGFBQWEsRUFDYixNQUFNLE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