Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
66 commits
Select commit Hold shift + click to select a range
dede7b5
Add vscode settings for Deno
aaronhuggins Apr 22, 2022
a54f710
Update source code file imports/exports
aaronhuggins Apr 22, 2022
ad23aee
Allow type 'any' for the ackMap
aaronhuggins Apr 22, 2022
95ba715
Allow any and disallow passing undefined
aaronhuggins Apr 22, 2022
66fcf51
Allow any for callback arguments
aaronhuggins Apr 22, 2022
e62be88
Narrow types to disallow undefined
aaronhuggins Apr 22, 2022
a60f17f
Fix exports for validation rules
aaronhuggins Apr 22, 2022
f1fb5b8
Fix linting errors for fat interchange class
aaronhuggins Apr 22, 2022
70797ef
Fix linting and assertion error for func groups
aaronhuggins Apr 22, 2022
5df09a9
Definitely assign options for the generator class
aaronhuggins Apr 22, 2022
e39c46d
Def assign options and fix linting for interchange
aaronhuggins Apr 22, 2022
659035f
Fix lint errors and guarantee currentElement
aaronhuggins Apr 22, 2022
79c0459
Fix linting errors in the query engine
aaronhuggins Apr 22, 2022
4fc72b5
Resolve lint errors and narrow types
aaronhuggins Apr 23, 2022
9c3657d
Fix lint error to allow any layout
aaronhuggins Apr 23, 2022
7615034
Fix lint and assertion errors for x12 transaction
aaronhuggins Apr 23, 2022
d67de54
Fix linting and improt liquidjs by default
aaronhuggins Apr 23, 2022
6dfcdb6
Fix issues with assignment in position/range
aaronhuggins Apr 23, 2022
5bc7206
Fix imports for core suite
aaronhuggins Apr 23, 2022
297f0f9
Fix imports and node fs in formatting tests
aaronhuggins Apr 23, 2022
c10f4d4
Fix imports and node fs in generator tests
aaronhuggins Apr 23, 2022
1ee137e
Fix imports and replace node fs in mapping tests
aaronhuggins Apr 23, 2022
c78f360
Fix imports and replace node fs in object model
aaronhuggins Apr 23, 2022
bd3f5ca
Fix test suite for x12 query
aaronhuggins Apr 23, 2022
38740a5
Fix validation tests
aaronhuggins Apr 23, 2022
e5c3e0a
Fix imports nad types for parser tests
aaronhuggins Apr 23, 2022
d4167ea
Fix type errors across the source code
aaronhuggins Apr 23, 2022
b9e47f2
Fix bug found in parser suite
aaronhuggins Apr 23, 2022
44da722
Fix object model test sutie expectations
aaronhuggins Apr 23, 2022
d1ac1d5
Fix regression in mapping algorithm
aaronhuggins Apr 24, 2022
fb96da3
Rename test suites for Deno
aaronhuggins Apr 24, 2022
808f415
Rename core to Deno style
aaronhuggins Apr 24, 2022
70eac2e
Remove deprecated configs
aaronhuggins Apr 24, 2022
ec4ed48
Add config for sonarcloud
aaronhuggins Apr 24, 2022
b00bba2
Fix references to missing core.ts file
aaronhuggins Apr 24, 2022
ccc78ee
Fix errors found during npm build
aaronhuggins Apr 24, 2022
b909894
Rename license file for consistency
aaronhuggins Apr 24, 2022
b2bcee2
Add deno and build script configuration
aaronhuggins Apr 24, 2022
b830155
Add buidl script
aaronhuggins Apr 24, 2022
641613e
Rename sonar config for github ci
aaronhuggins Apr 24, 2022
c38be65
Add more config for sonarcloud
aaronhuggins Apr 24, 2022
2d2a407
Update wording of readme for future releases
aaronhuggins Apr 24, 2022
a8a19a6
Add github workflows
aaronhuggins Apr 24, 2022
43b551d
Format build script and remove files property
aaronhuggins Apr 24, 2022
03b4180
Add create labels script
aaronhuggins Apr 24, 2022
c7ecb73
Fix badges and change usage to installation
aaronhuggins Apr 24, 2022
7bd1efc
Add npm install command
aaronhuggins Apr 24, 2022
731fb96
Merge pull request #40 from aaronhuggins/deno
aaronhuggins Apr 24, 2022
90854bb
Don't use shallow clone (temporarily)
aaronhuggins Apr 24, 2022
2680a35
Add deps.ts to code quality trigger
aaronhuggins Apr 24, 2022
2a1a091
Run deno fmt on the entire code base
aaronhuggins Apr 24, 2022
3f22157
Improve badge query parameters
aaronhuggins Apr 25, 2022
e35d66e
Merge pull request #41 from aaronhuggins/main
aaronhuggins Apr 25, 2022
c85f78f
Apply automatic changes
aaronhuggins Apr 25, 2022
9ebc9c9
Merge prerelease into main
github-actions[bot] Apr 25, 2022
b80c260
Revert version change
aaronhuggins Apr 25, 2022
ef385c6
Merge pull request #42 from aaronhuggins/main
aaronhuggins Apr 25, 2022
f16c276
Apply automatic changes
aaronhuggins Apr 25, 2022
d493303
Merge prerelease into main
github-actions[bot] Apr 25, 2022
0df121b
Include coverage information badge
aaronhuggins Apr 25, 2022
c0b4641
Add remark for Deno
aaronhuggins Apr 25, 2022
c82bb18
Update tests to use new std bdd module
aaronhuggins Apr 25, 2022
2d2cadf
Revert change to std bdd module
aaronhuggins Apr 25, 2022
636e371
Improve build script exclusions for npmignore
aaronhuggins Apr 25, 2022
d8dfa7f
Merge pull request #44 from aaronhuggins/main
aaronhuggins Apr 25, 2022
9bd5087
Apply automatic changes
aaronhuggins Apr 25, 2022
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
17 changes: 0 additions & 17 deletions .eslintrc.json

This file was deleted.

23 changes: 8 additions & 15 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -1,32 +1,25 @@
---

name: Bug report
about: Create a report to help us improve
title: '[BUG]'
labels: ''
assignees: ''
---**Describe the bug**
A clear and concise description of what the bug is.
name: Bug report about: Create a report to help us improve title: '[BUG]'
labels: '' assignees: '' ---**Describe the bug** A clear and concise description
of what the bug is.

**To Reproduce**
Steps to reproduce the behavior:
**To Reproduce** Steps to reproduce the behavior:

1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error

**Expected behavior**
A clear and concise description of what you expected to happen.
**Expected behavior** A clear and concise description of what you expected to
happen.

**Screenshots**
If applicable, add screenshots to help explain your problem.
**Screenshots** If applicable, add screenshots to help explain your problem.

**Environment (please complete the following information):**

- OS: [e.g. iOS]
- Version [e.g. 22]
- Executor [e.g. server, cloud]

**Additional context**
Add any other context about the problem here.
**Additional context** Add any other context about the problem here.
45 changes: 45 additions & 0 deletions .github/workflows/code_quality.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Run Code Quality
on:
push:
branches:
- main
paths:
- 'src/**/*.ts'
- 'mod.ts'
- 'deps.ts'
pull_request_target:
types:
- opened
- ready_for_review
branches:
- main
- prerelease
- release
jobs:
cover:
runs-on: ubuntu-latest
steps:
- name: Checkout codebase
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Setup Deno
uses: denoland/setup-deno@v1
with:
deno-version: v1.x
- name: Setup Node (required for SonarCloud)
uses: actions/setup-node@v3
with:
node-version: '17.x'
registry-url: 'https://registry.npmjs.org'
- name: Setup LCOV
run: sudo apt install -y lcov
- name: Run tests and coverage
run: deno task cover
- name: Fix LCOV output for SonarCloud
run: sed -i 's@'$GITHUB_WORKSPACE'@/github/workspace/@g' coverage/report.lcov
- name: SonarCloud Scan
uses: SonarSource/sonarcloud-github-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
90 changes: 90 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
name: Cut release
on:
pull_request_target:
branches:
- prerelease
- release
types:
- closed
env:
VERSION_FLAG: ''
VERSION_NUM: ''
VERSION_TAG: latest
jobs:
release:
if: github.event.pull_request.merged
runs-on: ubuntu-latest
steps:
- name: Checkout codebase
uses: actions/checkout@v3
- name: Setup Deno
uses: denoland/setup-deno@v1
with:
deno-version: v1.x
- name: Setup Node (required for dnt)
uses: actions/setup-node@v3
with:
node-version: '17.x'
registry-url: 'https://registry.npmjs.org'
- name: Check major version
if: contains(github.event.pull_request.labels.*.name, 'version_major')
run: |
echo "VERSION_FLAG=major" >> $GITHUB_ENV
- name: Check minor version
if: contains(github.event.pull_request.labels.*.name, 'version_minor')
run: |
echo "VERSION_FLAG=minor" >> $GITHUB_ENV
- name: Check patch version
if: contains(github.event.pull_request.labels.*.name, 'version_patch')
run: |
echo "VERSION_FLAG=patch" >> $GITHUB_ENV
- name: Check premajor version
if: contains(github.event.pull_request.labels.*.name, 'version_premajor')
run: |
echo "VERSION_FLAG=premajor" >> $GITHUB_ENV
- name: Check preminor version
if: contains(github.event.pull_request.labels.*.name, 'version_preminor')
run: |
echo "VERSION_FLAG=preminor" >> $GITHUB_ENV
- name: Check prepatch version
if: contains(github.event.pull_request.labels.*.name, 'version_prepatch')
run: |
echo "VERSION_FLAG=prepatch" >> $GITHUB_ENV
- name: Check prerelease version
if: contains(github.event.pull_request.labels.*.name, 'version_prerelease')
run: |
echo "VERSION_FLAG=prerelease" >> $GITHUB_ENV
- name: Build for NPM using dnt
if: env.VERSION_FLAG != ''
run: |
deno task build -- --${{ env.VERSION_FLAG }}
echo "VERSION_NUM=$(cat .version)" >> $GITHUB_ENV
- name: Setup NPM tag
if: env.VERSION_FLAG == 'premajor' || env.VERSION_FLAG == 'preminor' || env.VERSION_FLAG == 'prepatch' || env.VERSION_FLAG == 'prerelease'
run: |
echo "VERSION_TAG=prerelease" >> $GITHUB_ENV
- name: Add NPMRC file
if: env.VERSION_FLAG != '' && env.VERSION_NUM != ''
run: |
echo '//registry.npmjs.org/:_authToken=${NPM_TOKEN}' > ./npm/.npmrc
- name: Publish code to NPM
if: env.VERSION_FLAG != '' && env.VERSION_NUM != ''
run: |
cd ./npm
npm publish --tag=${{ env.VERSION_TAG }}
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Commit new version number to ${{ github.event.pull_request.base.ref }}
if: env.VERSION_FLAG != '' && env.VERSION_NUM != ''
uses: stefanzweifel/git-auto-commit-action@v4
with:
branch: ${{ github.event.pull_request.base.ref }}
tagging_message: ${{ env.VERSION_NUM }}
- name: Merge branch ${{ github.event.pull_request.base.ref }} into main
if: env.VERSION_FLAG != '' && env.VERSION_NUM != ''
uses: devmasx/[email protected]
with:
type: now
from_branch: ${{ github.event.pull_request.base.ref }}
target_branch: main
github_token: ${{ secrets.GITHUB_TOKEN }}
52 changes: 12 additions & 40 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,43 +1,15 @@
# Logs
logs
*.log
npm-debug.log*

# Runtime data
pids
*.pid
*.seed

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov

# Directory used for nyc output
npm/
bower_components
.scannerwork
.nyc_output

# Coverage directory used by tools like istanbul
coverage

# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
.grunt

# node-waf configuration
.lock-wscript

# Compiled binary addons (http://nodejs.org/api/addons.html)
build/Release
*.tgz
*.zip

# Dependency directory
node_modules

# Optional npm cache directory
.npm

# Optional REPL history
.node_repl_history

# compiled typescript
dist/**
index.js
index.d.ts
dist
esm
es5

cbor-js.zip
cbor.min.js
sauce_connect.log
debug.log
**/debug.log
8 changes: 0 additions & 8 deletions .mocharc.json

This file was deleted.

8 changes: 0 additions & 8 deletions .nycrc.json

This file was deleted.

3 changes: 0 additions & 3 deletions .prettierrc

This file was deleted.

1 change: 0 additions & 1 deletion .sonarcloud.properties

This file was deleted.

14 changes: 14 additions & 0 deletions .sonarcloud.ts.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"files": [
"mod.ts",
"src/**/*.ts"
],
"include": [
"mod.ts",
"src/**"
],
"exclude": [
"scripts/**",
"test/**"
]
}
1 change: 1 addition & 0 deletions .version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1.8.0-1
14 changes: 14 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,19 @@
"**/*.js": {
"when": "$(basename).ts"
}
},
"editor.tabSize": 2,
"deno.enable": true,
"deno.codeLens.test": true,
"deno.codeLens.testArgs": [
"--allow-all"
],
"deno.lint": true,
"deno.suggest.autoImports": true,
"deno.suggest.imports.autoDiscover": true,
"deno.suggest.paths": true,
"deno.unstable": true,
"deno.suggest.imports.hosts": {
"https://deno.land": true
}
}
22 changes: 0 additions & 22 deletions LICENSE

This file was deleted.

20 changes: 20 additions & 0 deletions LICENSE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
The MIT License (MIT)

Copyright (c) 2016 TrueCommerce Copyright (c) 2019 Net Health Shops LLC

Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
the Software, and to permit persons to whom the Software is furnished to do so,
subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Loading