Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
d06d5b2
Catch invalid slice expressions at compile time
mkantor Dec 21, 2021
0c4eb09
Update version lock and bump package version
Jan 17, 2022
92a8c08
Remove default exports from modules
Feb 2, 2022
4223e70
Introduce stricter AST types and remove many related type casts
shortercode May 16, 2022
210f553
- refactor isFalse
shortercode May 17, 2022
1c57bec
[npm] Update dependencies and fixed vulnerabilities.
springcomp Feb 28, 2023
a1f220e
[npm] Fixed vulnerabilities.
springcomp Feb 28, 2023
b4673b4
[npm] Update eslint configuration.
springcomp Mar 1, 2023
2481076
[eslint] Improved more strongly-typed code.
springcomp Mar 1, 2023
0eff60c
Merge branch 'main' into chore/eslint-prettier
springcomp Mar 3, 2023
3a41b16
[git] Ignoring transient artifacts.
springcomp Mar 3, 2023
9f8795c
[chore] Split tests into topical files.
springcomp Feb 28, 2023
807f1d9
[lexer] Refactored tokenizing one or two-char tokens.
springcomp Feb 28, 2023
48a3103
[lexer] Supports arithmetic-expression simple tokens.
springcomp Feb 28, 2023
b9b5a94
[parser] Parsing arithmetic expressions.
springcomp Feb 28, 2023
a716546
[jep-16] arithmetic expressions
springcomp Feb 28, 2023
65091b2
[eslint] Applied automatic fixes.
springcomp Mar 1, 2023
9905a06
Merge remote-tracking branch 'upstream/refactor/ast' into main
springcomp Mar 3, 2023
d663eb9
Merged strongly-typed code from origin/main
springcomp Mar 3, 2023
21ab953
Merge branch 'master' of github.com:nanoporetech/jmespath-ts into dev
Mar 10, 2023
57e5fba
Upgrade package dependencies and version bump
Mar 10, 2023
84255f9
Fix unsupported '\\' raw-string escape sequence.
springcomp Mar 12, 2023
59b6210
Removed dependency on deprecated node/coveralls.
springcomp Mar 12, 2023
0941a42
Merge branch 'invalid-slices-are-compile-error' into dev
Mar 14, 2023
6b372ee
Update lock file version
Mar 14, 2023
9baf6ef
Merge dev
Mar 14, 2023
8f1a554
Package upgrades, JEP-19, Breaking changes everwhere
Mar 15, 2023
8c58e7e
Merge branch 'feature/arithmetic-expressions' into dev
Mar 15, 2023
8e62a6f
Merge branch 'pr/fix/raw-string-backslash' into dev
Mar 16, 2023
442199d
Merge branch 'fix/coveralls' into dev
Mar 16, 2023
9fbe546
Cleanup and CI script fixes
Mar 16, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,20 @@ module.exports = {
root: true,
parser: '@typescript-eslint/parser',
parserOptions: {
sourceType: 'module',
ecmaVersion: 2020,
'ecmaVersion': 11,
'sourceType': 'module',
'tsconfigRootDir': __dirname,
'project': ['./tsconfig.json'],
},
plugins: ['@typescript-eslint', 'prettier'],
extends: [
'plugin:@typescript-eslint/recommended',
'prettier/@typescript-eslint', // Uses eslint-config-prettier to disable ESLint rules from @typescript-eslint/eslint-plugin that would conflict with prettier
'plugin:prettier/recommended', // Enables eslint-plugin-prettier and eslint-config-prettier. This will display prettier errors as ESLint errors. Make sure this is always the last configuration in the extends array.
],
env: {
browser: true,
commonjs: true,
node: true,
mocha: true,
es6: true,
es2020: true,
node: true
},
rules: {
curly: 'error',
Expand All @@ -29,6 +28,7 @@ module.exports = {
'@typescript-eslint/ban-ts-comment': 'off',
'@typescript-eslint/class-name-casing': 'off',
'@typescript-eslint/no-empty-function': 'off',
'no-unused-vars': ['error', { varsIgnorePattern: '^_', argsIgnorePattern: '^_' }],
'prettier/prettier': 'error',
},
};
23 changes: 11 additions & 12 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,25 +5,24 @@ name: Node.js CI

on:
push:
branches: [ master ]
branches: [master]
pull_request:
branches: [ master ]
branches: [master]

jobs:
build:

runs-on: ubuntu-latest

strategy:
matrix:
node-version: [10.x, 12.x]
node-version: [16.x, 18.x]

steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: npm ci
- run: npm run build --if-present
- run: npm test
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- run: npm i
- run: npm run build --if-present
- run: npm test
36 changes: 15 additions & 21 deletions .github/workflows/npmpublish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,44 +5,38 @@ name: Node.js Package

on:
release:
branches: [master, dev]
types: [created]

jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 12
node-version: 18
- run: npm ci
- run: npm test

publish-npm:
needs: test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 12
node-version: 18
registry-url: https://registry.npmjs.org/
- run: npm ci
- run: npm run build
- run: npm publish --verbose --access public --tag latest
- name: Set distribution tag for branch
run: |
if [[ $GITHUB_REF == 'refs/heads/master' ]]; then
echo "DISTRIBUTION_TAG=latest" >> "$GITHUB_ENV"
else
echo "DISTRIBUTION_TAG=develop" >> "$GITHUB_ENV"
fi
- run: npm publish --verbose --access public --tag ${{ env.DISTRIBUTION_TAG }} ./dist
env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}

# publish-gpr:
# needs: build
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v2
# - uses: actions/setup-node@v1
# with:
# node-version: 12
# registry-url: https://npm.pkg.github.com/
# - run: npm ci
# - run: npm publish
# env:
# NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,5 @@ compiled
.awcache
.rpt2_cache
docs
src/**/*.js
src/**/*.map
58 changes: 58 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
# Changelog

All notable changes to `@metrichor/jmespath` will be documented in this file.

## [1.0.1] - 1.0.1

Clean up scripts and unused dependencies

## Breaking

- Minimum node version upgraded to >=16

### Fixed

- Fix: CI build script
- Fix: Update CI publish script to use Node 18

### Changed

- Improvement: Refactor AST to improve types [@shortercode](https://github.com/shortercode)
- Package dependency updates
- Upgrade to [email protected]
- Upgrade to rollup@3
- Upgrade to deprecated coveralls package in favour of a new community version
- Cleaned up old linting comments


## [1.0.0] - 1.0.0

Update package dependencies to address vulnerabilities

## Breaking

- Minimum node version upgraded to >=14
- NPM package exports have changed.
- Using named exports only
- Exporting ems and cjs only (dropped UMD export)
- No minified files

### Added

- [JEP-16] Arithmetic Expressions [@springcomp](https://github.com/springcomp)
- [JEP-19] Pipe evaluation [@springcomp](https://github.com/springcomp)
- `CHANGELOG.md`: Going to start tracking changes now that the JMESPath community is contributing

### Fixed

- Fix: Catch invalid slice expressions at compile time [@mkantor](https://github.com/mkantor)
- Fix: Fix unsupported '\\' raw-string escape sequence [@springcomp](https://github.com/springcomp)

### Changed

- Improvement: Refactor AST to improve types [@shortercode](https://github.com/shortercode)
- Package dependency updates
- Upgrade to [email protected]
- Upgrade to rollup@3
- Upgrade to deprecated coveralls package in favour of a new community version
- Cleaned up old linting comments
Loading