Skip to content

Commit

Permalink
Update Node to v18 and update all dependencies (#21)
Browse files Browse the repository at this point in the history
* Minor and patch version dependency updates

* Major version dependency updates (+ node 18)

* Update @types/node

* Update CI to use Node 18 and 20
  • Loading branch information
cmoesel committed Jan 31, 2024
1 parent 7f251e0 commit 2608b9c
Show file tree
Hide file tree
Showing 11 changed files with 3,078 additions and 3,724 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/ci-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ jobs:
name: Check tsc, lint, and prettier
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '16.x'
node-version: '18.x'
- run: npm ci
- run: npm run lint
- run: npm run prettier
Expand All @@ -22,12 +22,12 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
node-version: [16, 18]
node-version: [18, 20]

steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- run: npm ci
Expand Down
2 changes: 1 addition & 1 deletion .tool-versions
Original file line number Diff line number Diff line change
@@ -1 +1 @@
nodejs 16.19.0
nodejs 18.19.0
5 changes: 5 additions & 0 deletions DEPENDENCY-NOTES.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
As of 2024 January 26:

The `npm outdated` command reports a dependency as outdated. It is not being updated at this time for the reason given below:

- `chalk`: major version 5 causes problems for jest. Keep updated to latest 4.x release.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ FHIR Package Loader is a utility that downloads published FHIR packages from the

This tool can be used directly through a command line interface (CLI) or it can be used as a dependency in another JavaScript/TypeScript project to download FHIR packages and load the contents into memory.

FHIR Package Loader requires [Node.js](https://nodejs.org/) to be installed on the user's system. Users should install Node.js 16 (LTS), although other current LTS versions are also expected to work.
FHIR Package Loader requires [Node.js](https://nodejs.org/) to be installed on the user's system. Users should install Node.js 18, although other current LTS versions are also expected to work.

Once Node.js is installed, use either of the following methods to use the FHIR Package Loader.

Expand Down Expand Up @@ -174,7 +174,7 @@ jest.mock('fhir-package-loader', () => {
## Installation
FHIR Package Loader is a [TypeScript](https://www.typescriptlang.org/) project. At a minimum, it requires [Node.js](https://nodejs.org/) to build, test, and run the CLI. Developers should install Node.js 16 (LTS), although other current LTS versions are also expected to work.
FHIR Package Loader is a [TypeScript](https://www.typescriptlang.org/) project. At a minimum, it requires [Node.js](https://nodejs.org/) to build, test, and run the CLI. Developers should install Node.js 18, although other current LTS versions are also expected to work.
Once Node.js is installed, run the following command from this project's root folder:
Expand Down
13 changes: 8 additions & 5 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
module.exports = {
globals: {
'ts-jest': {
tsconfig: 'tsconfig.json'
}
},
moduleFileExtensions: ['js', 'ts'],
transform: {
'^.+\\.(js|jsx|ts|tsx)$': [
'ts-jest',
{
tsconfig: '<rootDir>/tsconfig.json'
}
]
},
testMatch: ['**/test/**/*.test.(ts|js)'],
testEnvironment: 'node',
setupFilesAfterEnv: ['jest-extended/all'],
Expand Down
Loading

0 comments on commit 2608b9c

Please sign in to comment.