Skip to content

Commit b2d914d

Browse files
authored
Merge pull request #2504 from beautifier/staging/release
Pulling staging/release into release
2 parents 8d8abbf + 20ff725 commit b2d914d

16 files changed

Lines changed: 99 additions & 63 deletions

File tree

.github/workflows/codeql-analysis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535

3636
steps:
3737
- name: Checkout repository
38-
uses: actions/checkout@v6
38+
uses: actions/checkout@v7
3939

4040
# Initializes the CodeQL tools for scanning.
4141
- name: Initialize CodeQL

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
- python-version: 3.14
2727
node-version: 26
2828
steps:
29-
- uses: actions/checkout@v6
29+
- uses: actions/checkout@v7
3030
- name: Set up Node ${{ matrix.node-version }}
3131
uses: actions/setup-node@v6
3232
with:

.github/workflows/milestone-publish.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,25 @@ on:
77
milestone:
88
types: [closed]
99

10-
1110
jobs:
1211
publish:
12+
environment:
13+
name: production
14+
deployment: false
1315
runs-on: ubuntu-latest
16+
permissions:
17+
id-token: write # Required for OIDC
18+
contents: read
1419
steps:
15-
- uses: actions/checkout@v6
20+
- uses: actions/checkout@v7
1621
with:
1722
fetch-depth: 0
1823
- name: Set up Node
1924
uses: actions/setup-node@v6
2025
with:
2126
node-version: 26
2227
registry-url: https://registry.npmjs.org/
28+
package-manager-cache: false # never use caching in release builds
2329
- name: Set up Python
2430
uses: actions/setup-python@v6
2531
with:
@@ -58,7 +64,6 @@ jobs:
5864
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5965
SSH_AUTH_SOCK: /tmp/ssh_agent.sock
6066
MILESTONE_VERSION: ${{ github.event.milestone.title }}
61-
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
6267
TWINE_USERNAME: ${{secrets.PYPI_USERNAME}}
6368
TWINE_PASSWORD: ${{secrets.PYPI_PASSWORD}}
6469
run: |

.github/workflows/pr-staging.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
PR-from-staging:
1616
runs-on: ubuntu-latest
1717
steps:
18-
- uses: actions/checkout@v6
18+
- uses: actions/checkout@v7
1919
with:
2020
fetch-depth: 0
2121
- name: pull-request gh-pages

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# Changelog
22

3+
## v2.0.3
4+
35
## v2.0.1
46
* Removed all usage of six and dropped support for Python 2. ([#2374](https://github.com/beautifier/js-beautify/pull/2374))
57
* Move minimum version to Nodejs v22.x ([#2363](https://github.com/beautifier/js-beautify/pull/2363))

README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -58,13 +58,13 @@ JS Beautifier is hosted on two CDN services: [cdnjs](https://cdnjs.com/libraries
5858

5959
To pull the latest version from one of these services include one set of the script tags below in your document:
6060
```html
61-
<script src="https://cdnjs.cloudflare.com/ajax/libs/js-beautify/2.0.1/beautify.js"></script>
62-
<script src="https://cdnjs.cloudflare.com/ajax/libs/js-beautify/2.0.1/beautify-css.js"></script>
63-
<script src="https://cdnjs.cloudflare.com/ajax/libs/js-beautify/2.0.1/beautify-html.js"></script>
61+
<script src="https://cdnjs.cloudflare.com/ajax/libs/js-beautify/2.0.3/beautify.js"></script>
62+
<script src="https://cdnjs.cloudflare.com/ajax/libs/js-beautify/2.0.3/beautify-css.js"></script>
63+
<script src="https://cdnjs.cloudflare.com/ajax/libs/js-beautify/2.0.3/beautify-html.js"></script>
6464

65-
<script src="https://cdnjs.cloudflare.com/ajax/libs/js-beautify/2.0.1/beautify.min.js"></script>
66-
<script src="https://cdnjs.cloudflare.com/ajax/libs/js-beautify/2.0.1/beautify-css.min.js"></script>
67-
<script src="https://cdnjs.cloudflare.com/ajax/libs/js-beautify/2.0.1/beautify-html.min.js"></script>
65+
<script src="https://cdnjs.cloudflare.com/ajax/libs/js-beautify/2.0.3/beautify.min.js"></script>
66+
<script src="https://cdnjs.cloudflare.com/ajax/libs/js-beautify/2.0.3/beautify-css.min.js"></script>
67+
<script src="https://cdnjs.cloudflare.com/ajax/libs/js-beautify/2.0.3/beautify-html.min.js"></script>
6868
```
6969

7070
Example usage of a JS tag in html:
@@ -76,7 +76,7 @@ Example usage of a JS tag in html:
7676

7777
. . .
7878

79-
<script src="https://cdnjs.cloudflare.com/ajax/libs/js-beautify/2.0.1/beautify.min.js"></script>
79+
<script src="https://cdnjs.cloudflare.com/ajax/libs/js-beautify/2.0.3/beautify.min.js"></script>
8080
<script src="script.js"></script>
8181
</body>
8282
</html>
@@ -446,4 +446,4 @@ Thanks also to Jason Diamond, Patrick Hof, Nochum Sossonko, Andreas Schneider, D
446446
Vasilevsky, Vital Batmanov, Ron Baldwin, Gabriel Harrison, Chris J. Shull,
447447
Mathias Bynens, Vittorio Gambaletta and others.
448448
449-
(README.md: js-beautify@2.0.1)
449+
(README.md: js-beautify@2.0.3)

js/lib/beautifier.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

js/lib/beautifier.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

js/lib/beautifier.min.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

js/lib/beautify.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1462,7 +1462,7 @@ Beautifier.prototype.handle_operator = function(current_token) {
14621462
// a++ + ++b;
14631463
// a - -b
14641464
space_before = in_array(current_token.text, ['--', '-', '++', '+']) && in_array(this._flags.last_token.text, ['--', '-', '++', '+']);
1465-
// + and - are not unary when preceeded by -- or ++ operator
1465+
// + and - are not unary when preceded by -- or ++ operator
14661466
// a-- + b
14671467
// a * +b
14681468
// a - -b

0 commit comments

Comments
 (0)