Skip to content

Commit ca6dca7

Browse files
author
GitHub Action
committed
Merge remote-tracking branch 'origin/staging/main' into staging/release
2 parents fa4412a + d86a249 commit ca6dca7

File tree

8 files changed

+30
-14
lines changed

8 files changed

+30
-14
lines changed

CHANGELOG.md

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

3+
## v1.14.6
4+
* Globs no longer work on Windows in 1.14.5 ([#2093](https://github.com/beautify-web/js-beautify/issues/2093))
5+
36
## v1.14.5
47
* Dependency updates and UI tweaks ([#2088](https://github.com/beautify-web/js-beautify/pull/2088))
58
* Bump terser from 5.12.1 to 5.14.2 ([#2084](https://github.com/beautify-web/js-beautify/pull/2084))

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
PROJECT_ROOT=$(dir $(realpath $(firstword $(MAKEFILE_LIST))))
1+
PROJECT_ROOT=$(subst \,/,$(dir $(realpath $(firstword $(MAKEFILE_LIST)))))
22
BUILD_DIR=$(PROJECT_ROOT)build
33
SCRIPT_DIR=$(PROJECT_ROOT)tools
44
SHELL=/bin/bash

README.md

Lines changed: 7 additions & 7 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/1.14.5/beautify.js"></script>
62-
<script src="https://cdnjs.cloudflare.com/ajax/libs/js-beautify/1.14.5/beautify-css.js"></script>
63-
<script src="https://cdnjs.cloudflare.com/ajax/libs/js-beautify/1.14.5/beautify-html.js"></script>
61+
<script src="https://cdnjs.cloudflare.com/ajax/libs/js-beautify/1.14.6/beautify.js"></script>
62+
<script src="https://cdnjs.cloudflare.com/ajax/libs/js-beautify/1.14.6/beautify-css.js"></script>
63+
<script src="https://cdnjs.cloudflare.com/ajax/libs/js-beautify/1.14.6/beautify-html.js"></script>
6464

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

7070
Older versions are available by changing the version number.
@@ -397,4 +397,4 @@ Thanks also to Jason Diamond, Patrick Hof, Nochum Sossonko, Andreas Schneider, D
397397
Vasilevsky, Vital Batmanov, Ron Baldwin, Gabriel Harrison, Chris J. Shull,
398398
Mathias Bynens, Vittorio Gambaletta and others.
399399
400-
(README.md: js-beautify@1.14.5)
400+
(README.md: js-beautify@1.14.6)

js/src/cli.js

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,19 @@ nopt.typeDefs.brace_style = {
6363
return true;
6464
}
6565
};
66+
nopt.typeDefs.glob = {
67+
type: "glob",
68+
validate: function(data, key, val) {
69+
if (typeof val === 'string' && glob.hasMagic(val)) {
70+
// Preserve value if it contains glob magic
71+
data[key] = val;
72+
return true;
73+
} else {
74+
// Otherwise validate it as regular path
75+
return nopt.typeDefs.path.validate(data, key, val);
76+
}
77+
}
78+
};
6679
var path = require('path'),
6780
editorconfig = require('editorconfig'),
6881
knownOpts = {
@@ -112,7 +125,7 @@ var path = require('path'),
112125
// CLI
113126
"version": Boolean,
114127
"help": Boolean,
115-
"files": [path, Array],
128+
"files": ["glob", Array],
116129
"outfile": path,
117130
"replace": Boolean,
118131
"quiet": Boolean,

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "js-beautify",
3-
"version": "1.14.5",
3+
"version": "1.14.6",
44
"description": "beautifier.io for node",
55
"main": "js/index.js",
66
"bin": {
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "1.14.5"
1+
__version__ = "1.14.6"

python/jsbeautifier/__version__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "1.14.5"
1+
__version__ = "1.14.6"

0 commit comments

Comments
 (0)