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.1.1
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.0
Choose a head ref
  • 10 commits
  • 22 files changed
  • 3 contributors

Commits on Jan 7, 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
    de63255 View commit details
  2. Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    c33ec34 View commit details

Commits on Jan 12, 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
    1789de4 View commit details
  2. Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    d1f3920 View commit details
  3. Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    ddbd7be View commit details
  4. fix: remove warning

    mariuslundgard committed Jan 12, 2023

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    e905d3c View commit details
  5. Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    4a04ad6 View commit details
  6. Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    8b9afef View commit details
  7. Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    9bd9a30 View commit details
  8. Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    f0ae385 View commit details
13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -5,6 +5,19 @@
All notable changes to this project will be documented in this file. See
[Conventional Commits](https://conventionalcommits.org) for commit guidelines.

## [2.2.0](https://github.com/sanity-io/pkg-utils/compare/v2.1.1...v2.2.0) (2023-01-12)

### Features

- validate order of export properties ([ddbd7be](https://github.com/sanity-io/pkg-utils/commit/ddbd7bede64593c8cef76f569dcf6c86186e70c5))

### Bug Fixes

- **build:** sort export map ([8b9afef](https://github.com/sanity-io/pkg-utils/commit/8b9afef8be1d66c2cbf5b1ac3bc4743d325504b4))
- keep original order of export properties ([d1f3920](https://github.com/sanity-io/pkg-utils/commit/d1f3920cea4e78750c4a7155bb43fee07ec425ec))
- order export properties ([4a04ad6](https://github.com/sanity-io/pkg-utils/commit/4a04ad6f818907a9ec391542ff2a293a7385b52b))
- remove warning ([e905d3c](https://github.com/sanity-io/pkg-utils/commit/e905d3c8a50887f26100cd9277d8fb5377967196))

## [2.1.1](https://github.com/sanity-io/pkg-utils/compare/v2.1.0...v2.1.1) (2023-01-04)

### Bug Fixes
6 changes: 3 additions & 3 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.1.1",
"version": "2.2.0",
"author": "Sanity.io <hello@sanity.io>",
"license": "MIT",
"description": "Simple utilities for modern npm packages.",
@@ -22,8 +22,8 @@
".": {
"types": "./dist/index.d.ts",
"source": "./src/node/index.ts",
"import": "./dist/index.js",
"require": "./dist/index.cjs",
"import": "./dist/index.js",
"default": "./dist/index.js"
},
"./package.json": "./package.json"
@@ -149,7 +149,7 @@
"publishConfig": {
"access": "public"
},
"packageManager": "pnpm@7.21.0",
"packageManager": "pnpm@7.24.3",
"pnpm": {
"overrides": {
"@sanity/pkg-utils": "workspace:*"
4 changes: 2 additions & 2 deletions playground/babel-plugin/package.json
Original file line number Diff line number Diff line change
@@ -12,8 +12,8 @@
".": {
"types": "./dist/index.d.ts",
"source": "./src/index.ts",
"import": "./dist/index.js",
"require": "./dist/index.cjs",
"import": "./dist/index.js",
"default": "./dist/index.js"
},
"./package.json": "./package.json"
@@ -23,7 +23,7 @@
"clean": "rimraf dist"
},
"devDependencies": {
"@babel/core": "^7.20.7",
"@babel/core": "^7.20.12",
"@babel/plugin-proposal-object-rest-spread": "^7.20.7"
}
}
2 changes: 1 addition & 1 deletion playground/custom-dist/package.json
Original file line number Diff line number Diff line change
@@ -12,8 +12,8 @@
".": {
"types": "./lib/src/index.d.ts",
"source": "./src/index.ts",
"import": "./lib/index.js",
"require": "./lib/index.cjs",
"import": "./lib/index.js",
"default": "./lib/index.js"
},
"./package.json": "./package.json"
8 changes: 4 additions & 4 deletions playground/dummy-commonjs/package.json
Original file line number Diff line number Diff line change
@@ -15,34 +15,34 @@
"exports": {
".": {
"types": "./dist/index.d.ts",
"source": "./src/index.ts",
"browser": {
"source": "./src/index.ts",
"require": "./dist/index.browser.js",
"import": "./dist/index.browser.mjs"
},
"source": "./src/index.ts",
"import": "./dist/index.mjs",
"require": "./dist/index.js",
"node": {
"import": "./node/index.mjs",
"require": "./node/index.js"
},
"import": "./dist/index.mjs",
"default": "./dist/index.mjs"
},
"./extra": {
"types": "./dist/extra.d.ts",
"source": "./src/extra.ts",
"browser": {
"source": "./src/extra.ts",
"require": "./dist/extra.browser.js",
"import": "./dist/extra.browser.mjs"
},
"source": "./src/extra.ts",
"import": "./dist/extra.mjs",
"require": "./dist/extra.js",
"node": {
"import": "./node/extra.mjs",
"require": "./node/extra.js"
},
"import": "./dist/extra.mjs",
"default": "./dist/extra.mjs"
},
"./package.json": "./package.json"
1 change: 1 addition & 0 deletions playground/dummy-module/package.config.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import {defineConfig} from '@sanity/pkg-utils'

export default defineConfig({
legacyExports: true,
tsconfig: 'tsconfig.dist.json',
})
8 changes: 4 additions & 4 deletions playground/dummy-module/package.json
Original file line number Diff line number Diff line change
@@ -15,34 +15,34 @@
"exports": {
".": {
"types": "./dist/index.d.ts",
"source": "./src/index.ts",
"browser": {
"source": "./src/index.ts",
"require": "./dist/index.browser.cjs",
"import": "./dist/index.browser.js"
},
"source": "./src/index.ts",
"import": "./dist/index.js",
"require": "./dist/index.cjs",
"node": {
"import": "./node/index.js",
"require": "./node/index.cjs"
},
"import": "./dist/index.js",
"default": "./dist/index.js"
},
"./extra": {
"types": "./dist/extra.d.ts",
"source": "./src/extra.ts",
"browser": {
"source": "./src/extra.ts",
"require": "./dist/extra.browser.cjs",
"import": "./dist/extra.browser.js"
},
"source": "./src/extra.ts",
"import": "./dist/extra.js",
"require": "./dist/extra.cjs",
"node": {
"import": "./node/extra.js",
"require": "./node/extra.cjs"
},
"import": "./dist/extra.js",
"default": "./dist/extra.js"
},
"./package.json": "./package.json"
4 changes: 2 additions & 2 deletions playground/multi-export/package.json
Original file line number Diff line number Diff line change
@@ -12,23 +12,23 @@
".": {
"types": "./dist/index.d.ts",
"source": "./src/index.ts",
"import": "./dist/index.js",
"require": "./dist/index.cjs",
"node": {
"import": "./dist/node/index.cjs.js",
"require": "./dist/index.cjs"
},
"import": "./dist/index.js",
"default": "./dist/index.js"
},
"./plugin": {
"types": "./dist/plugin.d.ts",
"source": "./src/plugin.ts",
"import": "./dist/plugin.js",
"require": "./dist/plugin.cjs",
"node": {
"import": "./dist/node/plugin.cjs.js",
"require": "./dist/plugin.cjs"
},
"import": "./dist/plugin.js",
"default": "./dist/plugin.js"
},
"./package.json": "./package.json"
12 changes: 10 additions & 2 deletions playground/multi-exports-commonjs/package.json
Original file line number Diff line number Diff line change
@@ -12,15 +12,23 @@
".": {
"types": "./dist/index.d.ts",
"source": "./src/index.ts",
"import": "./dist/index.esm.js",
"require": "./dist/index.js",
"node": {
"import": "./dist/index.cjs.mjs",
"require": "./dist/index.js"
},
"import": "./dist/index.esm.js",
"default": "./dist/index.esm.js"
},
"./plugin": {
"types": "./dist/plugin.d.ts",
"source": "./src/plugin.ts",
"import": "./dist/plugin.esm.js",
"require": "./dist/plugin.js",
"node": {
"import": "./dist/plugin.cjs.mjs",
"require": "./dist/plugin.js"
},
"import": "./dist/plugin.esm.js",
"default": "./dist/plugin.esm.js"
},
"./package.json": "./package.json"
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": "^1.8.0",
"astro": "^1.9.1",
"dummy-commonjs": "workspace:*",
"dummy-module": "workspace:*"
}
4 changes: 2 additions & 2 deletions playground/runtime-vite/package.json
Original file line number Diff line number Diff line change
@@ -5,7 +5,7 @@
"version": "0.0.0",
"scripts": {
"dev": "vite",
"build": "run-s && tsc && vite build",
"build": "run-s clean && tsc && vite build",
"clean": "rimraf dist node_modules/.vite",
"preview": "vite preview"
},
@@ -15,6 +15,6 @@
},
"devDependencies": {
"typescript": "^4.9.4",
"vite": "^4.0.3"
"vite": "^4.0.4"
}
}
2 changes: 1 addition & 1 deletion playground/runtime-webpack-v3/package.json
Original file line number Diff line number Diff line change
@@ -4,7 +4,7 @@
"version": "1.0.0",
"license": "MIT",
"scripts": {
"build": "run-s dist && webpack",
"build": "run-s clean && webpack",
"clean": "rimraf dist"
},
"devDependencies": {
5 changes: 5 additions & 0 deletions playground/ts/package.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import {defineConfig} from '@sanity/pkg-utils'

export default defineConfig({
tsconfig: 'tsconfig.dist.json',
})
8 changes: 6 additions & 2 deletions playground/ts/package.json
Original file line number Diff line number Diff line change
@@ -12,14 +12,18 @@
".": {
"types": "./dist/index.d.ts",
"source": "./src/index.ts",
"import": "./dist/index.js",
"require": "./dist/index.cjs",
"node": {
"import": "./dist/index.cjs.js",
"require": "./dist/index.cjs"
},
"import": "./dist/index.js",
"default": "./dist/index.js"
},
"./package.json": "./package.json"
},
"scripts": {
"build": "run-s clean && pkg build --strict --tsconfig tsconfig.dist.json && pkg --strict --tsconfig tsconfig.dist.json",
"build": "run-s clean && pkg build --strict && pkg --strict",
"clean": "rimraf dist"
}
}
2 changes: 1 addition & 1 deletion playground/ts/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"extends": "./tsconfig.settings",
"include": ["./src"],
"include": ["./package.config.ts", "./src"],
"compilerOptions": {
"rootDir": ".",
"noEmit": true
Loading