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: sanity-io/pkg-utils
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v2.2.5
Choose a base ref
...
head repository: sanity-io/pkg-utils
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v2.2.6
Choose a head ref
  • 15 commits
  • 8 files changed
  • 3 contributors

Commits on Feb 14, 2023

  1. Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    8e96be5 View commit details
  2. chore: upgrade allowlist

    stipsan committed Feb 14, 2023

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    f15d517 View commit details
  3. chore: fix runs-on

    stipsan committed Feb 14, 2023

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    787f947 View commit details
  4. chore: cache build output

    stipsan committed Feb 14, 2023

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    1d2468a View commit details
  5. chore: update artifact list

    stipsan committed Feb 14, 2023

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    da68d26 View commit details
  6. chore(deps): update dependency typescript to ^4.9.5 (#59)

    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    renovate[bot] authored Feb 14, 2023

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    be419c5 View commit details
  7. chore(deps): update devdependencies (non-major) (#61)

    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    renovate[bot] authored Feb 14, 2023

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    ecfbf68 View commit details
  8. chore(deps): update pnpm to v7.27.0 (#62)

    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    renovate[bot] authored Feb 14, 2023

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    fe9064f View commit details
  9. chore(deps): lock file maintenance (#63)

    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    renovate[bot] authored Feb 14, 2023

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    aa0e7ff View commit details
  10. chore(deps): update devdependencies (non-major) (#60)

    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    renovate[bot] authored Feb 14, 2023

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    ebe1bca View commit details
  11. chore(deps): pin dependencies (#64)

    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    renovate[bot] authored Feb 14, 2023
    Copy the full SHA
    19763b2 View commit details
  12. chore(deps): lock file maintenance (#65)

    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    renovate[bot] authored Feb 14, 2023
    Copy the full SHA
    c21f38f View commit details

Commits on Feb 27, 2023

  1. Copy the full SHA
    8fc58c1 View commit details
  2. Copy the full SHA
    683f359 View commit details
  3. Copy the full SHA
    040050e View commit details
Showing with 1,086 additions and 1,020 deletions.
  1. +54 −4 .github/workflows/main.yml
  2. +6 −0 CHANGELOG.md
  3. +14 −14 package.json
  4. +1 −1 playground/babel-plugin/package.json
  5. +1 −1 playground/runtime-astro/package.json
  6. +2 −2 playground/runtime-next-js/package.json
  7. +2 −2 playground/runtime-vite/package.json
  8. +1,006 −996 pnpm-lock.yaml
58 changes: 54 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -2,31 +2,81 @@ name: CI & Release

on:
push:
branches:
- alpha
- beta
- next
- main
pull_request:
branches:
- alpha
- beta
- next
- main

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true

jobs:
build:
runs-on: ubuntu-latest
name: Lint & Build
steps:
- uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3
- uses: pnpm/action-setup@v2
- uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # v3
with:
cache: pnpm
node-version: lts/*
- run: pnpm install
- run: pnpm lint
- run: pnpm build
- uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce # v3
name: Cache build output
with:
name: build-output
path: |
bin/
dist/
test:
needs: build
runs-on: ${{ matrix.platform }}
name: Node.js ${{ matrix.node-version }} / ${{ matrix.platform }}
strategy:
# A test failing on windows doesn't mean it'll fail on macos. It's useful to let all tests run to its completion to get the full picture
fail-fast: false
matrix:
platform: [ubuntu-latest, macos-latest]
node-version: [lts/*, current]
# Run the testing suite on each major OS with the latest LTS release of Node.js
# @TODO add windows when it works
# platform: [macos-latest, ubuntu-latest, window-latest]
platform: [macos-latest, ubuntu-latest]
node-version: [lts/*]
# It makes sense to also test the oldest, and latest, versions of Node.js, on ubuntu-only since it's the fastest CI runner
include:
- platform: ubuntu-latest
# Test the oldest LTS release of Node that's still receiving bugfixes and security patches, versions older than that have reached End-of-Life
node-version: lts/-2
- platform: ubuntu-latest
# Test the actively developed version that will become the latest LTS release next October
node-version: current
steps:
- name: Set git to use LF
if: matrix.platform == 'windows-latest'
run: |
git config --global core.autocrlf false
git config --global core.eol lf
- uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3
- uses: pnpm/action-setup@v2
- uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # v3
with:
cache: pnpm
node-version: ${{ matrix.node-version }}
- run: pnpm install
- run: pnpm lint
- run: pnpm build
- uses: actions/download-artifact@9bc31d5ccc31df68ecc42ccf4149144866c47d8a # v3
name: Restore build output
with:
name: build-output
- run: pnpm test

release:
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -5,6 +5,12 @@
All notable changes to this project will be documented in this file. See
[Conventional Commits](https://conventionalcommits.org) for commit guidelines.

## [2.2.6](https://github.com/sanity-io/pkg-utils/compare/v2.2.5...v2.2.6) (2023-02-27)

### Bug Fixes

- **deps:** update dependencies (non-major) ([#67](https://github.com/sanity-io/pkg-utils/issues/67)) ([683f359](https://github.com/sanity-io/pkg-utils/commit/683f359e97886769388d092e36cc928815571b17))

## [2.2.5](https://github.com/sanity-io/pkg-utils/compare/v2.2.4...v2.2.5) (2023-02-13)

### Bug Fixes
28 changes: 14 additions & 14 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"type": "module",
"name": "@sanity/pkg-utils",
"version": "2.2.5",
"version": "2.2.6",
"author": "Sanity.io <hello@sanity.io>",
"license": "MIT",
"description": "Simple utilities for modern npm packages.",
@@ -56,9 +56,9 @@
"watch": "node --loader esbuild-register/loader -r esbuild-register scripts/watch"
},
"dependencies": {
"@babel/core": "^7.20.12",
"@babel/core": "^7.21.0",
"@babel/preset-env": "^7.20.2",
"@babel/types": "^7.20.7",
"@babel/types": "^7.21.2",
"@microsoft/api-extractor": "^7.34.4",
"@microsoft/tsdoc-config": "^0.16.2",
"@rollup/plugin-alias": "^4.0.3",
@@ -72,7 +72,7 @@
"cac": "^6.7.14",
"chalk": "^4.1.2",
"chokidar": "^3.5.3",
"esbuild": "^0.17.8",
"esbuild": "^0.17.10",
"esbuild-register": "^3.4.2",
"find-config": "^1.0.0",
"globby": "^11.1.0",
@@ -83,16 +83,16 @@
"pretty-bytes": "^5.6.0",
"recast": "^0.22.0",
"rimraf": "^4.1.2",
"rollup": "^3.15.0",
"rollup": "^3.17.3",
"rollup-plugin-esbuild": "^5.0.0",
"rxjs": "^7.8.0",
"treeify": "^1.1.0",
"uuid": "^9.0.0",
"zod": "^3.20.6"
},
"devDependencies": {
"@commitlint/cli": "^17.4.2",
"@commitlint/config-conventional": "^17.4.2",
"@commitlint/cli": "^17.4.3",
"@commitlint/config-conventional": "^17.4.3",
"@sanity/pkg-utils": "workspace:*",
"@sanity/semantic-release-preset": "4.0.0",
"@types/babel__core": "^7.20.0",
@@ -104,24 +104,24 @@
"@types/rimraf": "^3.0.2",
"@types/treeify": "^1.0.0",
"@types/uuid": "^9.0.0",
"@typescript-eslint/eslint-plugin": "^5.51.0",
"@typescript-eslint/parser": "^5.51.0",
"@typescript-eslint/eslint-plugin": "^5.52.0",
"@typescript-eslint/parser": "^5.52.0",
"commitizen": "^4.3.0",
"cpx": "^1.5.0",
"cz-conventional-changelog": "^3.3.0",
"eslint": "^8.33.0",
"eslint": "^8.34.0",
"eslint-config-prettier": "^8.6.0",
"eslint-plugin-import": "^2.27.5",
"eslint-plugin-prettier": "^4.2.1",
"husky": "^8.0.3",
"lint-staged": "^13.1.1",
"lint-staged": "^13.1.2",
"npm-run-all": "^4.1.5",
"outdent": "^0.8.0",
"rollup-plugin-visualizer": "^5.9.0",
"semantic-release": "^20.1.0",
"ts-node": "^10.9.1",
"typescript": "^4.9.4",
"vitest": "^0.28.4"
"typescript": "^4.9.5",
"vitest": "^0.28.5"
},
"peerDependencies": {
"typescript": "^4.7"
@@ -150,7 +150,7 @@
"publishConfig": {
"access": "public"
},
"packageManager": "pnpm@7.26.3",
"packageManager": "pnpm@7.27.0",
"pnpm": {
"overrides": {
"@sanity/pkg-utils": "workspace:*"
2 changes: 1 addition & 1 deletion playground/babel-plugin/package.json
Original file line number Diff line number Diff line change
@@ -23,7 +23,7 @@
"clean": "rimraf dist"
},
"devDependencies": {
"@babel/core": "^7.20.12",
"@babel/core": "^7.21.0",
"@babel/plugin-proposal-object-rest-spread": "^7.20.7"
}
}
2 changes: 1 addition & 1 deletion playground/runtime-astro/package.json
Original file line number Diff line number Diff line change
@@ -12,7 +12,7 @@
"start": "astro dev"
},
"dependencies": {
"astro": "^2.0.8",
"astro": "^2.0.15",
"dummy-commonjs": "workspace:*",
"dummy-module": "workspace:*"
}
4 changes: 2 additions & 2 deletions playground/runtime-next-js/package.json
Original file line number Diff line number Diff line change
@@ -12,9 +12,9 @@
"dummy-module": "workspace:*",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"next": "^13.1.6"
"next": "^13.2.1"
},
"devDependencies": {
"@types/react": "^18.0.27"
"@types/react": "^18.0.28"
}
}
4 changes: 2 additions & 2 deletions playground/runtime-vite/package.json
Original file line number Diff line number Diff line change
@@ -14,7 +14,7 @@
"dummy-module": "workspace:*"
},
"devDependencies": {
"typescript": "^4.9.4",
"vite": "^4.1.1"
"typescript": "^4.9.5",
"vite": "^4.1.4"
}
}
2,002 changes: 1,006 additions & 996 deletions pnpm-lock.yaml

Large diffs are not rendered by default.