Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: bcoe/c8
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: a13584d5be5259ebb6a00455d352c3e8b16006de
Choose a base ref
...
head repository: bcoe/c8
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 128bee23366cb35106f5e163e99ca2ab33dafba6
Choose a head ref
  • 6 commits
  • 8 files changed
  • 4 contributors

Commits on Jan 3, 2024

  1. chore(deps): Remove rimraf (#509)

    feat(deps): use Node.js built in rm
    feat(build)!: minimum Node.js version is now 14.14.0
    w3nl authored Jan 3, 2024
    Copy the full SHA
    2cdc86b View commit details
  2. test: fix snapshot (#511)

    build: update release-please action version
    test: switch module name checked for in assertions
    bcoe authored Jan 3, 2024
    Copy the full SHA
    ef672da View commit details
  3. Copy the full SHA
    b46b640 View commit details
  4. chore(deps): update dependency typescript to v5 (#458)

    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    renovate[bot] authored Jan 3, 2024
    Copy the full SHA
    66705b5 View commit details
  5. chore(deps): update dependency @types/node to v20 (#496)

    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    renovate[bot] authored Jan 3, 2024
    Copy the full SHA
    8724c70 View commit details
  6. chore(main): release 9.0.0 (#510)

    Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
    Co-authored-by: Benjamin E. Coe <bencoe@google.com>
    github-actions[bot] and bcoe authored Jan 3, 2024
    Copy the full SHA
    128bee2 View commit details
Showing with 2,413 additions and 1,576 deletions.
  1. +7 −7 .github/workflows/ci.yaml
  2. +1 −2 .github/workflows/release-please.yml
  3. +13 −0 CHANGELOG.md
  4. +7 −16 bin/c8.js
  5. +2,246 −1,410 package-lock.json
  6. +5 −6 package.json
  7. +4 −5 test/integration.js
  8. +130 −130 test/integration.js.snap
14 changes: 7 additions & 7 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -12,10 +12,10 @@ jobs:
strategy:
fail-fast: false
matrix:
node: [12, 14, 16, 18]
node: [14, 16, 18, 20]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
cache: npm
@@ -24,8 +24,8 @@ jobs:
windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: lts/*
cache: npm
@@ -34,8 +34,8 @@ jobs:
coverage:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: lts/*
cache: npm
3 changes: 1 addition & 2 deletions .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
@@ -8,12 +8,11 @@ jobs:
runs-on: ubuntu-latest
if: github.repository == 'bcoe/c8'
steps:
- uses: GoogleCloudPlatform/release-please-action@v3
- uses: GoogleCloudPlatform/release-please-action@v4
id: release
with:
token: ${{ secrets.GITHUB_TOKEN }}
release-type: node
package-name: c8
# The logic below handles the npm publication:
- uses: actions/checkout@v3
# these if statements ensure that a publication only occurs when
13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -2,6 +2,19 @@

All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.

## [9.0.0](https://github.com/bcoe/c8/compare/v8.0.1...v9.0.0) (2024-01-03)


### ⚠ BREAKING CHANGES

* **build:** minimum Node.js version is now 14.14.0

### Features

* **build:** minimum Node.js version is now 14.14.0 ([2cdc86b](https://github.com/bcoe/c8/commit/2cdc86bd0ac67ecf0f700212dc5f8a830ff9164f))
* **deps:** update foreground-child to promise API ([#512](https://github.com/bcoe/c8/issues/512)) ([b46b640](https://github.com/bcoe/c8/commit/b46b6401274488db5b1027a78090257095ae4f72))
* **deps:** use Node.js built in rm ([2cdc86b](https://github.com/bcoe/c8/commit/2cdc86bd0ac67ecf0f700212dc5f8a830ff9164f))

## [8.0.1](https://github.com/bcoe/c8/compare/v8.0.0...v8.0.1) (2023-07-25)


23 changes: 7 additions & 16 deletions bin/c8.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
#!/usr/bin/env node
'use strict'

const foreground = require('foreground-child')
const { foregroundChild } = require('foreground-child')
const { outputReport } = require('../lib/commands/report')
const { promises } = require('fs')
const { promisify } = require('util')
const rimraf = require('rimraf')
const { rm, mkdir } = require('fs/promises')
const {
buildYargs,
hideInstrumenteeArgs,
@@ -21,27 +19,20 @@ async function run () {
].indexOf(argv._[0]) !== -1) {
argv = buildYargs(true).parse(process.argv.slice(2))
} else {
// fs.promises was not added until Node.js v10.0.0, if it doesn't
// exist, assume we're Node.js v8.x and skip coverage.
if (!promises) {
foreground(hideInstrumenterArgs(argv))
return
}

if (argv.clean) {
await promisify(rimraf)(argv.tempDirectory)
await rm(argv.tempDirectory, { recursive: true, force: true })
}

await promises.mkdir(argv.tempDirectory, { recursive: true })
await mkdir(argv.tempDirectory, { recursive: true })
process.env.NODE_V8_COVERAGE = argv.tempDirectory
foreground(hideInstrumenterArgs(argv), async (done) => {
foregroundChild(hideInstrumenterArgs(argv), async () => {
try {
await outputReport(argv)
return process.exitCode
} catch (err) {
console.error(err.stack)
process.exitCode = 1
return 1
}
done()
})
}
}
Loading