Skip to content

Commit

Permalink
chore: update deps. and devDeps.
Browse files Browse the repository at this point in the history
  • Loading branch information
brettz9 committed Nov 17, 2024
1 parent 0bfda55 commit f0708a4
Show file tree
Hide file tree
Showing 17 changed files with 1,831 additions and 1,858 deletions.
2 changes: 1 addition & 1 deletion demo/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* globals JSONPath -- Test UMD */
// /* eslint-disable import/unambiguous */
/* eslint-disable import/unambiguous -- Demo */

// Todo: Extract testing example paths/contents and use for a
// pulldown that can populate examples
Expand Down
14 changes: 8 additions & 6 deletions dist/index-browser-esm.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,15 +93,15 @@ class Plugins {
}
}

// JavaScript Expression Parser (JSEP) 1.3.9
// JavaScript Expression Parser (JSEP) 1.4.0

class Jsep {
/**
* @returns {string}
*/
static get version() {
// To be filled in by the template
return '1.3.9';
return '1.4.0';
}

/**
Expand Down Expand Up @@ -977,6 +977,7 @@ Object.assign(Jsep, {
// see [Order of operations](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Operator_Precedence)
binary_ops: {
'||': 1,
'??': 1,
'&&': 2,
'|': 3,
'^': 4,
Expand All @@ -996,10 +997,11 @@ Object.assign(Jsep, {
'-': 9,
'*': 10,
'/': 10,
'%': 10
'%': 10,
'**': 11
},
// sets specific binary_ops as right-associative
right_associative: new Set(),
right_associative: new Set(['**']),
// Additional valid identifier chars, apart from a-z, A-Z and 0-9 (except on the starting char)
additional_identifier_chars: new Set(['$', '_']),
// Literals
Expand Down Expand Up @@ -1134,7 +1136,7 @@ const MINUS_CODE = 45; // -

const plugin = {
name: 'assignment',
assignmentOperators: new Set(['=', '*=', '**=', '/=', '%=', '+=', '-=', '<<=', '>>=', '>>>=', '&=', '^=', '|=']),
assignmentOperators: new Set(['=', '*=', '**=', '/=', '%=', '+=', '-=', '<<=', '>>=', '>>>=', '&=', '^=', '|=', '||=', '&&=', '??=']),
updateOperators: [PLUS_CODE, MINUS_CODE],
assignmentPrecedence: 0.9,
init(jsep) {
Expand Down Expand Up @@ -2138,7 +2140,7 @@ class Script {

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

// eslint-disable-next-line no-new-func -- User's choice
return new Function(...keys, code)(...values);
Expand Down
2 changes: 1 addition & 1 deletion dist/index-browser-esm.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/index-browser-esm.min.js.map

Large diffs are not rendered by default.

14 changes: 8 additions & 6 deletions dist/index-browser-umd.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -99,15 +99,15 @@
}
}

// JavaScript Expression Parser (JSEP) 1.3.9
// JavaScript Expression Parser (JSEP) 1.4.0

class Jsep {
/**
* @returns {string}
*/
static get version() {
// To be filled in by the template
return '1.3.9';
return '1.4.0';
}

/**
Expand Down Expand Up @@ -983,6 +983,7 @@
// see [Order of operations](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Operator_Precedence)
binary_ops: {
'||': 1,
'??': 1,
'&&': 2,
'|': 3,
'^': 4,
Expand All @@ -1002,10 +1003,11 @@
'-': 9,
'*': 10,
'/': 10,
'%': 10
'%': 10,
'**': 11
},
// sets specific binary_ops as right-associative
right_associative: new Set(),
right_associative: new Set(['**']),
// Additional valid identifier chars, apart from a-z, A-Z and 0-9 (except on the starting char)
additional_identifier_chars: new Set(['$', '_']),
// Literals
Expand Down Expand Up @@ -1140,7 +1142,7 @@

const plugin = {
name: 'assignment',
assignmentOperators: new Set(['=', '*=', '**=', '/=', '%=', '+=', '-=', '<<=', '>>=', '>>>=', '&=', '^=', '|=']),
assignmentOperators: new Set(['=', '*=', '**=', '/=', '%=', '+=', '-=', '<<=', '>>=', '>>>=', '&=', '^=', '|=', '||=', '&&=', '??=']),
updateOperators: [PLUS_CODE, MINUS_CODE],
assignmentPrecedence: 0.9,
init(jsep) {
Expand Down Expand Up @@ -2144,7 +2146,7 @@

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

// eslint-disable-next-line no-new-func -- User's choice
return new Function(...keys, code)(...values);
Expand Down
2 changes: 1 addition & 1 deletion dist/index-browser-umd.min.cjs

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/index-browser-umd.min.cjs.map

Large diffs are not rendered by default.

12 changes: 7 additions & 5 deletions dist/index-node-cjs.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -94,15 +94,15 @@ class Plugins {
}
}

// JavaScript Expression Parser (JSEP) 1.3.9
// JavaScript Expression Parser (JSEP) 1.4.0

class Jsep {
/**
* @returns {string}
*/
static get version() {
// To be filled in by the template
return '1.3.9';
return '1.4.0';
}

/**
Expand Down Expand Up @@ -978,6 +978,7 @@ Object.assign(Jsep, {
// see [Order of operations](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Operator_Precedence)
binary_ops: {
'||': 1,
'??': 1,
'&&': 2,
'|': 3,
'^': 4,
Expand All @@ -997,10 +998,11 @@ Object.assign(Jsep, {
'-': 9,
'*': 10,
'/': 10,
'%': 10
'%': 10,
'**': 11
},
// sets specific binary_ops as right-associative
right_associative: new Set(),
right_associative: new Set(['**']),
// Additional valid identifier chars, apart from a-z, A-Z and 0-9 (except on the starting char)
additional_identifier_chars: new Set(['$', '_']),
// Literals
Expand Down Expand Up @@ -1135,7 +1137,7 @@ const MINUS_CODE = 45; // -

const plugin = {
name: 'assignment',
assignmentOperators: new Set(['=', '*=', '**=', '/=', '%=', '+=', '-=', '<<=', '>>=', '>>>=', '&=', '^=', '|=']),
assignmentOperators: new Set(['=', '*=', '**=', '/=', '%=', '+=', '-=', '<<=', '>>=', '>>>=', '&=', '^=', '|=', '||=', '&&=', '??=']),
updateOperators: [PLUS_CODE, MINUS_CODE],
assignmentPrecedence: 0.9,
init(jsep) {
Expand Down
12 changes: 7 additions & 5 deletions dist/index-node-esm.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,15 +92,15 @@ class Plugins {
}
}

// JavaScript Expression Parser (JSEP) 1.3.9
// JavaScript Expression Parser (JSEP) 1.4.0

class Jsep {
/**
* @returns {string}
*/
static get version() {
// To be filled in by the template
return '1.3.9';
return '1.4.0';
}

/**
Expand Down Expand Up @@ -976,6 +976,7 @@ Object.assign(Jsep, {
// see [Order of operations](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Operator_Precedence)
binary_ops: {
'||': 1,
'??': 1,
'&&': 2,
'|': 3,
'^': 4,
Expand All @@ -995,10 +996,11 @@ Object.assign(Jsep, {
'-': 9,
'*': 10,
'/': 10,
'%': 10
'%': 10,
'**': 11
},
// sets specific binary_ops as right-associative
right_associative: new Set(),
right_associative: new Set(['**']),
// Additional valid identifier chars, apart from a-z, A-Z and 0-9 (except on the starting char)
additional_identifier_chars: new Set(['$', '_']),
// Literals
Expand Down Expand Up @@ -1133,7 +1135,7 @@ const MINUS_CODE = 45; // -

const plugin = {
name: 'assignment',
assignmentOperators: new Set(['=', '*=', '**=', '/=', '%=', '+=', '-=', '<<=', '>>=', '>>>=', '&=', '^=', '|=']),
assignmentOperators: new Set(['=', '*=', '**=', '/=', '%=', '+=', '-=', '<<=', '>>=', '>>>=', '&=', '^=', '|=', '||=', '&&=', '??=']),
updateOperators: [PLUS_CODE, MINUS_CODE],
assignmentPrecedence: 0.9,
init(jsep) {
Expand Down
11 changes: 6 additions & 5 deletions eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import ashNazg from 'eslint-config-ash-nazg';
export default [
{
ignores: [
'.github',
'.idea',
'dist',
'docs/ts',
Expand Down Expand Up @@ -31,11 +32,11 @@ export default [
{
files: ['*.md/*.js', '*.md/*.html'],
rules: {
// 'import/unambiguous': 0,
// 'import/no-commonjs': 0,
// 'import/no-unresolved': ['error', {
// ignore: ['jsonpath-plus']
// }],
'import/unambiguous': 0,
'import/no-commonjs': 0,
'import/no-unresolved': ['error', {
ignore: ['jsonpath-plus']
}],
'sonarjs/no-internal-api-use': 0,
'no-multiple-empty-lines': ['error', {
max: 1, maxEOF: 2, maxBOF: 2
Expand Down
24 changes: 12 additions & 12 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,30 +63,30 @@
"vm": false
},
"dependencies": {
"@jsep-plugin/assignment": "^1.2.1",
"@jsep-plugin/regex": "^1.0.3",
"jsep": "^1.3.9"
"@jsep-plugin/assignment": "^1.3.0",
"@jsep-plugin/regex": "^1.0.4",
"jsep": "^1.4.0"
},
"devDependencies": {
"@babel/core": "^7.25.7",
"@babel/preset-env": "^7.25.7",
"@babel/core": "^7.26.0",
"@babel/preset-env": "^7.26.0",
"@rollup/plugin-babel": "^6.0.4",
"@rollup/plugin-node-resolve": "^15.3.0",
"@rollup/plugin-terser": "^0.4.4",
"c8": "^10.1.2",
"chai": "^5.1.1",
"chai": "^5.1.2",
"coveradge": "^0.8.2",
"eslint": "^9.12.0",
"eslint-config-ash-nazg": "^36.19.0",
"eslint": "^9.15.0",
"eslint-config-ash-nazg": "^36.21.0",
"http-server": "^14.1.1",
"license-badger": "^0.21.1",
"mocha": "^10.7.3",
"mocha": "^10.8.2",
"mocha-badge-generator": "^0.11.0",
"mocha-multi-reporters": "^1.5.1",
"open-cli": "^8.0.0",
"rollup": "4.24.0",
"typedoc": "^0.26.8",
"typescript": "^5.6.2"
"rollup": "4.27.2",
"typedoc": "^0.26.11",
"typescript": "^5.6.3"
},
"keywords": [
"json",
Expand Down
Loading

0 comments on commit f0708a4

Please sign in to comment.