Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: upgrade deps #52

Merged
merged 5 commits into from
Oct 3, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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 .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
name: "CodeQL"
name: 'CodeQL'

on:
push:
branches: [ "main" ]
branches: ['main']
pull_request:
branches: [ "main" ]
branches: ['main']
schedule:
- cron: "3 10 * * 4"
- cron: '3 10 * * 4'

jobs:
analyze:
Expand All @@ -20,11 +20,11 @@ jobs:
strategy:
fail-fast: false
matrix:
language: [ javascript ]
language: [javascript]

steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Initialize CodeQL
uses: github/codeql-action/init@v2
Expand All @@ -38,4 +38,4 @@ jobs:
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
with:
category: "/language:${{ matrix.language }}"
category: '/language:${{ matrix.language }}'
23 changes: 16 additions & 7 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,21 +6,30 @@ on:
jobs:
publish-npm:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Checkout
uses: actions/checkout@v4
with:
token: ${{ secrets.GH_PAT }}
ref: 'main'
- name: Use Node.js v16 (LTS)
uses: actions/setup-node@v2

- name: Use Node.js v18 (LTS)
uses: actions/setup-node@v3
with:
node-version: '16'
node-version: '18'
cache: 'yarn'
registry-url: https://registry.npmjs.org/
- run: yarn --frozen-lockfile
- run: |

- name: Install dependencies
run: yarn --frozen-lockfile

- name: Build
run: |
yarn build
yarn build:types
- run: npm publish

- name: Publish to NPM
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
26 changes: 15 additions & 11 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
# This workflow is automatically triggered on release/tag and will bump the
# version in the package.json
#
name: Release Version

on:
Expand All @@ -10,36 +7,43 @@ on:
jobs:
bump-version:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Checkout
uses: actions/checkout@v4
with:
token: ${{ secrets.GH_PAT }}
ref: 'main'
- name: Use Node.js v16 (LTS)
uses: actions/setup-node@v2

- name: Use Node.js v18 (LTS)
uses: actions/setup-node@v3
with:
node-version: '16'
node-version: '18'
cache: 'yarn'

- name: Install dependencies
run: |
yarn --frozen-lockfile
run: yarn --frozen-lockfile

- name: Get release
id: get_release
uses: bruceadams/get-release@v1.2.3
uses: bruceadams/get-release@v1.3.2
env:
GITHUB_TOKEN: ${{ secrets.GH_PAT }}

- name: Bump the version
run: |
git config --local user.name "${{ secrets.GIT_AUTHOR_NAME }}"
git config --local user.email "${{ secrets.GIT_AUTHOR_EMAIL }}"
npm version --no-commit-hooks --no-git-tag-version ${{ steps.get_release.outputs.tag_name }}

- name: Commit and push the version change
run: |
git add .
git commit -m "Release ${{ steps.get_release.outputs.tag_name }}" --no-gpg-sign --no-verify --signoff
git push

- name: Trigger the Publish Action
uses: benc-uk/workflow-dispatch@v1.1
uses: benc-uk/workflow-dispatch@v1.2.2
with:
workflow: Publish
token: ${{ secrets.GH_PAT }}
16 changes: 12 additions & 4 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,22 +11,30 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Use Node.js v16 (LTS)
uses: actions/setup-node@v2
- name: Checkout
uses: actions/checkout@v4

- name: Use Node.js v18 (LTS)
uses: actions/setup-node@v3
with:
node-version: '16'
node-version: '18'
cache: 'yarn'

- name: Install dependencies
run: yarn --frozen-lockfile

- name: Lint the source files
run: yarn lint

- name: Type check
run: yarn type-check

- name: Build the library
run: yarn build

- name: Build the typings
run: yarn build:types

- name: Execute the tests
run: |
yarn test:unit
Expand Down
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Changelog

## 0.6.2

> Oct 4, 2023

- Upgrades all dependencies to the latest versions

## 0.6.1

> May 4, 2022
Expand Down
8 changes: 4 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:16 AS builder
FROM node:18 AS builder

WORKDIR /app

Expand All @@ -17,7 +17,7 @@ RUN mkdir build
RUN npm pack --pack-destination ./build

# For CI testing
FROM node:16 AS tester
FROM node:18 AS tester

WORKDIR /app

Expand All @@ -32,7 +32,7 @@ RUN yarn --frozen-lockfile
RUN rm -rf ./lib/__mocks__

# For manual testing in a vanilla environment
FROM node:16 AS tester-vanilla
FROM node:18 AS tester-vanilla

WORKDIR /app

Expand All @@ -44,7 +44,7 @@ RUN PACKAGE_TAR_PATH="./build/$(ls ./build)" && \
RUN yarn

# For manual testing in an environment with libpostal
FROM node:16 AS tester-libpostal
FROM node:18 AS tester-libpostal

WORKDIR /app

Expand Down
2 changes: 1 addition & 1 deletion TODO.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# TODO

- Implement the more _stringParser_ methods
- Implement more _stringParser_ methods
54 changes: 27 additions & 27 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,35 +69,35 @@
"node-postal": "^1.1.2"
},
"devDependencies": {
"@babel/core": "^7.18.5",
"@babel/plugin-transform-runtime": "^7.18.5",
"@babel/preset-env": "^7.18.2",
"@babel/preset-typescript": "^7.17.12",
"@babel/runtime": "^7.18.3",
"@types/jest": "^27.5.2",
"@types/node": "^17.0.45",
"@types/node-postal": "^1.1.0",
"@typescript-eslint/eslint-plugin": "^5.28.0",
"@typescript-eslint/parser": "^5.28.0",
"@babel/core": "^7.23.0",
"@babel/plugin-transform-runtime": "^7.22.15",
"@babel/preset-env": "^7.22.20",
"@babel/preset-typescript": "^7.23.0",
"@babel/runtime": "^7.23.1",
"@types/jest": "^29.5.5",
"@types/node": "^20.8.2",
"@types/node-postal": "^1.1.1",
"@typescript-eslint/eslint-plugin": "^6.7.4",
"@typescript-eslint/parser": "^6.7.4",
"babel-eslint": "^10.1.0",
"babel-jest": "^28.1.1",
"babel-loader": "^8.2.5",
"core-js": "^3.23.1",
"eslint": "^8.18.0",
"babel-jest": "^29.7.0",
"babel-loader": "^9.1.3",
"core-js": "^3.33.0",
"eslint": "^8.50.0",
"eslint-config-airbnb-base": "^15.0.0",
"eslint-config-airbnb-typescript": "^17.0.0",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-import": "^2.26.0",
"eslint-plugin-jest": "^26.5.3",
"eslint-plugin-prettier": "^4.0.0",
"husky": ">=8.0.1",
"jest": "^28.1.1",
"lint-staged": ">=13.0.2",
"eslint-config-airbnb-typescript": "^17.1.0",
"eslint-config-prettier": "^9.0.0",
"eslint-plugin-import": "^2.28.1",
"eslint-plugin-jest": "^27.4.2",
"eslint-plugin-prettier": "^5.0.0",
"husky": ">=8.0.3",
"jest": "^29.7.0",
"lint-staged": ">=14.0.1",
"node-postal": "^1.1.2",
"prettier": "^2.7.1",
"ts-jest": "^28.0.5",
"typescript": "^4.7.4",
"webpack": "^5.73.0",
"webpack-cli": "^4.10.0"
"prettier": "^3.0.3",
"ts-jest": "^29.1.1",
"typescript": "^5.2.2",
"webpack": "^5.88.2",
"webpack-cli": "^5.1.4"
}
}
2 changes: 1 addition & 1 deletion test-functional/web.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!DOCTYPE html>
<!doctype html>
<html class="no-js" lang="en">
<head>
<title>Test Web</title>
Expand Down
Loading