Skip to content

Commit f0708a4

Browse files
committed
chore: update deps. and devDeps.
1 parent 0bfda55 commit f0708a4

17 files changed

+1831
-1858
lines changed

demo/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/* globals JSONPath -- Test UMD */
2-
// /* eslint-disable import/unambiguous */
2+
/* eslint-disable import/unambiguous -- Demo */
33

44
// Todo: Extract testing example paths/contents and use for a
55
// pulldown that can populate examples

dist/index-browser-esm.js

+8-6
Original file line numberDiff line numberDiff line change
@@ -93,15 +93,15 @@ class Plugins {
9393
}
9494
}
9595

96-
// JavaScript Expression Parser (JSEP) 1.3.9
96+
// JavaScript Expression Parser (JSEP) 1.4.0
9797

9898
class Jsep {
9999
/**
100100
* @returns {string}
101101
*/
102102
static get version() {
103103
// To be filled in by the template
104-
return '1.3.9';
104+
return '1.4.0';
105105
}
106106

107107
/**
@@ -977,6 +977,7 @@ Object.assign(Jsep, {
977977
// see [Order of operations](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Operator_Precedence)
978978
binary_ops: {
979979
'||': 1,
980+
'??': 1,
980981
'&&': 2,
981982
'|': 3,
982983
'^': 4,
@@ -996,10 +997,11 @@ Object.assign(Jsep, {
996997
'-': 9,
997998
'*': 10,
998999
'/': 10,
999-
'%': 10
1000+
'%': 10,
1001+
'**': 11
10001002
},
10011003
// sets specific binary_ops as right-associative
1002-
right_associative: new Set(),
1004+
right_associative: new Set(['**']),
10031005
// Additional valid identifier chars, apart from a-z, A-Z and 0-9 (except on the starting char)
10041006
additional_identifier_chars: new Set(['$', '_']),
10051007
// Literals
@@ -1134,7 +1136,7 @@ const MINUS_CODE = 45; // -
11341136

11351137
const plugin = {
11361138
name: 'assignment',
1137-
assignmentOperators: new Set(['=', '*=', '**=', '/=', '%=', '+=', '-=', '<<=', '>>=', '>>>=', '&=', '^=', '|=']),
1139+
assignmentOperators: new Set(['=', '*=', '**=', '/=', '%=', '+=', '-=', '<<=', '>>=', '>>>=', '&=', '^=', '|=', '||=', '&&=', '??=']),
11381140
updateOperators: [PLUS_CODE, MINUS_CODE],
11391141
assignmentPrecedence: 0.9,
11401142
init(jsep) {
@@ -2138,7 +2140,7 @@ class Script {
21382140

21392141
// Insert `return`
21402142
const lastStatementEnd = expr.lastIndexOf(';');
2141-
const code = lastStatementEnd > -1 ? expr.slice(0, lastStatementEnd + 1) + ' return ' + expr.slice(lastStatementEnd + 1) : ' return ' + expr;
2143+
const code = lastStatementEnd !== -1 ? expr.slice(0, lastStatementEnd + 1) + ' return ' + expr.slice(lastStatementEnd + 1) : ' return ' + expr;
21422144

21432145
// eslint-disable-next-line no-new-func -- User's choice
21442146
return new Function(...keys, code)(...values);

dist/index-browser-esm.min.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index-browser-esm.min.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index-browser-umd.cjs

+8-6
Original file line numberDiff line numberDiff line change
@@ -99,15 +99,15 @@
9999
}
100100
}
101101

102-
// JavaScript Expression Parser (JSEP) 1.3.9
102+
// JavaScript Expression Parser (JSEP) 1.4.0
103103

104104
class Jsep {
105105
/**
106106
* @returns {string}
107107
*/
108108
static get version() {
109109
// To be filled in by the template
110-
return '1.3.9';
110+
return '1.4.0';
111111
}
112112

113113
/**
@@ -983,6 +983,7 @@
983983
// see [Order of operations](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Operator_Precedence)
984984
binary_ops: {
985985
'||': 1,
986+
'??': 1,
986987
'&&': 2,
987988
'|': 3,
988989
'^': 4,
@@ -1002,10 +1003,11 @@
10021003
'-': 9,
10031004
'*': 10,
10041005
'/': 10,
1005-
'%': 10
1006+
'%': 10,
1007+
'**': 11
10061008
},
10071009
// sets specific binary_ops as right-associative
1008-
right_associative: new Set(),
1010+
right_associative: new Set(['**']),
10091011
// Additional valid identifier chars, apart from a-z, A-Z and 0-9 (except on the starting char)
10101012
additional_identifier_chars: new Set(['$', '_']),
10111013
// Literals
@@ -1140,7 +1142,7 @@
11401142

11411143
const plugin = {
11421144
name: 'assignment',
1143-
assignmentOperators: new Set(['=', '*=', '**=', '/=', '%=', '+=', '-=', '<<=', '>>=', '>>>=', '&=', '^=', '|=']),
1145+
assignmentOperators: new Set(['=', '*=', '**=', '/=', '%=', '+=', '-=', '<<=', '>>=', '>>>=', '&=', '^=', '|=', '||=', '&&=', '??=']),
11441146
updateOperators: [PLUS_CODE, MINUS_CODE],
11451147
assignmentPrecedence: 0.9,
11461148
init(jsep) {
@@ -2144,7 +2146,7 @@
21442146

21452147
// Insert `return`
21462148
const lastStatementEnd = expr.lastIndexOf(';');
2147-
const code = lastStatementEnd > -1 ? expr.slice(0, lastStatementEnd + 1) + ' return ' + expr.slice(lastStatementEnd + 1) : ' return ' + expr;
2149+
const code = lastStatementEnd !== -1 ? expr.slice(0, lastStatementEnd + 1) + ' return ' + expr.slice(lastStatementEnd + 1) : ' return ' + expr;
21482150

21492151
// eslint-disable-next-line no-new-func -- User's choice
21502152
return new Function(...keys, code)(...values);

dist/index-browser-umd.min.cjs

+1-1
Large diffs are not rendered by default.

dist/index-browser-umd.min.cjs.map

+1-1
Large diffs are not rendered by default.

dist/index-node-cjs.cjs

+7-5
Original file line numberDiff line numberDiff line change
@@ -94,15 +94,15 @@ class Plugins {
9494
}
9595
}
9696

97-
// JavaScript Expression Parser (JSEP) 1.3.9
97+
// JavaScript Expression Parser (JSEP) 1.4.0
9898

9999
class Jsep {
100100
/**
101101
* @returns {string}
102102
*/
103103
static get version() {
104104
// To be filled in by the template
105-
return '1.3.9';
105+
return '1.4.0';
106106
}
107107

108108
/**
@@ -978,6 +978,7 @@ Object.assign(Jsep, {
978978
// see [Order of operations](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Operator_Precedence)
979979
binary_ops: {
980980
'||': 1,
981+
'??': 1,
981982
'&&': 2,
982983
'|': 3,
983984
'^': 4,
@@ -997,10 +998,11 @@ Object.assign(Jsep, {
997998
'-': 9,
998999
'*': 10,
9991000
'/': 10,
1000-
'%': 10
1001+
'%': 10,
1002+
'**': 11
10011003
},
10021004
// sets specific binary_ops as right-associative
1003-
right_associative: new Set(),
1005+
right_associative: new Set(['**']),
10041006
// Additional valid identifier chars, apart from a-z, A-Z and 0-9 (except on the starting char)
10051007
additional_identifier_chars: new Set(['$', '_']),
10061008
// Literals
@@ -1135,7 +1137,7 @@ const MINUS_CODE = 45; // -
11351137

11361138
const plugin = {
11371139
name: 'assignment',
1138-
assignmentOperators: new Set(['=', '*=', '**=', '/=', '%=', '+=', '-=', '<<=', '>>=', '>>>=', '&=', '^=', '|=']),
1140+
assignmentOperators: new Set(['=', '*=', '**=', '/=', '%=', '+=', '-=', '<<=', '>>=', '>>>=', '&=', '^=', '|=', '||=', '&&=', '??=']),
11391141
updateOperators: [PLUS_CODE, MINUS_CODE],
11401142
assignmentPrecedence: 0.9,
11411143
init(jsep) {

dist/index-node-esm.js

+7-5
Original file line numberDiff line numberDiff line change
@@ -92,15 +92,15 @@ class Plugins {
9292
}
9393
}
9494

95-
// JavaScript Expression Parser (JSEP) 1.3.9
95+
// JavaScript Expression Parser (JSEP) 1.4.0
9696

9797
class Jsep {
9898
/**
9999
* @returns {string}
100100
*/
101101
static get version() {
102102
// To be filled in by the template
103-
return '1.3.9';
103+
return '1.4.0';
104104
}
105105

106106
/**
@@ -976,6 +976,7 @@ Object.assign(Jsep, {
976976
// see [Order of operations](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Operator_Precedence)
977977
binary_ops: {
978978
'||': 1,
979+
'??': 1,
979980
'&&': 2,
980981
'|': 3,
981982
'^': 4,
@@ -995,10 +996,11 @@ Object.assign(Jsep, {
995996
'-': 9,
996997
'*': 10,
997998
'/': 10,
998-
'%': 10
999+
'%': 10,
1000+
'**': 11
9991001
},
10001002
// sets specific binary_ops as right-associative
1001-
right_associative: new Set(),
1003+
right_associative: new Set(['**']),
10021004
// Additional valid identifier chars, apart from a-z, A-Z and 0-9 (except on the starting char)
10031005
additional_identifier_chars: new Set(['$', '_']),
10041006
// Literals
@@ -1133,7 +1135,7 @@ const MINUS_CODE = 45; // -
11331135

11341136
const plugin = {
11351137
name: 'assignment',
1136-
assignmentOperators: new Set(['=', '*=', '**=', '/=', '%=', '+=', '-=', '<<=', '>>=', '>>>=', '&=', '^=', '|=']),
1138+
assignmentOperators: new Set(['=', '*=', '**=', '/=', '%=', '+=', '-=', '<<=', '>>=', '>>>=', '&=', '^=', '|=', '||=', '&&=', '??=']),
11371139
updateOperators: [PLUS_CODE, MINUS_CODE],
11381140
assignmentPrecedence: 0.9,
11391141
init(jsep) {

eslint.config.js

+6-5
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import ashNazg from 'eslint-config-ash-nazg';
33
export default [
44
{
55
ignores: [
6+
'.github',
67
'.idea',
78
'dist',
89
'docs/ts',
@@ -31,11 +32,11 @@ export default [
3132
{
3233
files: ['*.md/*.js', '*.md/*.html'],
3334
rules: {
34-
// 'import/unambiguous': 0,
35-
// 'import/no-commonjs': 0,
36-
// 'import/no-unresolved': ['error', {
37-
// ignore: ['jsonpath-plus']
38-
// }],
35+
'import/unambiguous': 0,
36+
'import/no-commonjs': 0,
37+
'import/no-unresolved': ['error', {
38+
ignore: ['jsonpath-plus']
39+
}],
3940
'sonarjs/no-internal-api-use': 0,
4041
'no-multiple-empty-lines': ['error', {
4142
max: 1, maxEOF: 2, maxBOF: 2

package.json

+12-12
Original file line numberDiff line numberDiff line change
@@ -63,30 +63,30 @@
6363
"vm": false
6464
},
6565
"dependencies": {
66-
"@jsep-plugin/assignment": "^1.2.1",
67-
"@jsep-plugin/regex": "^1.0.3",
68-
"jsep": "^1.3.9"
66+
"@jsep-plugin/assignment": "^1.3.0",
67+
"@jsep-plugin/regex": "^1.0.4",
68+
"jsep": "^1.4.0"
6969
},
7070
"devDependencies": {
71-
"@babel/core": "^7.25.7",
72-
"@babel/preset-env": "^7.25.7",
71+
"@babel/core": "^7.26.0",
72+
"@babel/preset-env": "^7.26.0",
7373
"@rollup/plugin-babel": "^6.0.4",
7474
"@rollup/plugin-node-resolve": "^15.3.0",
7575
"@rollup/plugin-terser": "^0.4.4",
7676
"c8": "^10.1.2",
77-
"chai": "^5.1.1",
77+
"chai": "^5.1.2",
7878
"coveradge": "^0.8.2",
79-
"eslint": "^9.12.0",
80-
"eslint-config-ash-nazg": "^36.19.0",
79+
"eslint": "^9.15.0",
80+
"eslint-config-ash-nazg": "^36.21.0",
8181
"http-server": "^14.1.1",
8282
"license-badger": "^0.21.1",
83-
"mocha": "^10.7.3",
83+
"mocha": "^10.8.2",
8484
"mocha-badge-generator": "^0.11.0",
8585
"mocha-multi-reporters": "^1.5.1",
8686
"open-cli": "^8.0.0",
87-
"rollup": "4.24.0",
88-
"typedoc": "^0.26.8",
89-
"typescript": "^5.6.2"
87+
"rollup": "4.27.2",
88+
"typedoc": "^0.26.11",
89+
"typescript": "^5.6.3"
9090
},
9191
"keywords": [
9292
"json",

0 commit comments

Comments
 (0)