diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index e533b87c..08332857 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -8,11 +8,11 @@ jobs: timeout-minutes: 10 strategy: matrix: - node-version: [16.x] + node-version: [18.x] steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v1 + uses: actions/setup-node@v3 with: node-version: ${{ matrix.node-version }} - run: npm install @@ -23,11 +23,11 @@ jobs: timeout-minutes: 10 strategy: matrix: - node-version: [14.x, 16.x, 18.x] + node-version: [14.x, 16.x, 18.x, 20.x] steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v1 + uses: actions/setup-node@v3 with: node-version: ${{ matrix.node-version }} - name: Install @@ -44,9 +44,9 @@ jobs: node-version: [16.x] bundler: [webpack, browserify] steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v1 + uses: actions/setup-node@v3 with: node-version: ${{ matrix.node-version }} - name: Install @@ -64,9 +64,9 @@ jobs: matrix: node-version: [16.x] steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v1 + uses: actions/setup-node@v3 with: node-version: ${{ matrix.node-version }} - run: npm install @@ -78,11 +78,11 @@ jobs: timeout-minutes: 10 strategy: matrix: - node-version: [16.x] + node-version: [18.x] steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v1 + uses: actions/setup-node@v3 with: node-version: ${{ matrix.node-version }} - name: Install diff --git a/CHANGELOG.md b/CHANGELOG.md index 54d23fe0..4e66ae78 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,7 @@ and identifiers. - Skip test with 'U' escapes. Will enable when [rdf-canonize][] dependency is updated. +- Test on Node.js 20.x. ## 8.1.1 - 2023-02-25 diff --git a/lib/expand.js b/lib/expand.js index 2695a415..559079e9 100644 --- a/lib/expand.js +++ b/lib/expand.js @@ -634,7 +634,7 @@ async function _expandObject({ } return v; }), - {propertyIsArray: options.isFrame}); + {propertyIsArray: !!options.isFrame}); continue; } @@ -775,8 +775,7 @@ async function _expandObject({ expandedValue = await api.expand({ activeCtx, - activeProperty: - '@reverse', + activeProperty: '@reverse', element: value, options }); @@ -881,7 +880,7 @@ async function _expandObject({ }); } else { // recurse into @list or @set - const isList = (expandedProperty === '@list'); + const isList = expandedProperty === '@list'; if(isList || expandedProperty === '@set') { let nextActiveProperty = activeProperty; if(isList && expandedActiveProperty === '@graph') { diff --git a/package.json b/package.json index acad97e8..a2d0cea9 100644 --- a/package.json +++ b/package.json @@ -29,7 +29,7 @@ "lib/**/*.js" ], "dependencies": { - "@digitalbazaar/http-client": "^3.2.0", + "@digitalbazaar/http-client": "^3.4.1", "canonicalize": "^1.0.1", "lru-cache": "^6.0.0", "rdf-canonize": "^3.0.0"