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.3.11
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.3.12
Choose a head ref
  • 2 commits
  • 3 files changed
  • 2 contributors

Commits on Aug 6, 2023

  1. Copy the full SHA
    17158bd View commit details
  2. Copy the full SHA
    43f2043 View commit details
Showing with 8 additions and 2 deletions.
  1. +6 −0 CHANGELOG.md
  2. +1 −1 package.json
  3. +1 −1 src/node/tasks/node/reexportCjsTask.ts
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.3.12](https://github.com/sanity-io/pkg-utils/compare/v2.3.11...v2.3.12) (2023-08-06)

### Bug Fixes

- handle edge case for default exports ([17158bd](https://github.com/sanity-io/pkg-utils/commit/17158bd6118ced8a1e4b92bfc773eee964c424d6))

## [2.3.11](https://github.com/sanity-io/pkg-utils/compare/v2.3.10...v2.3.11) (2023-08-06)

### Bug Fixes
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@sanity/pkg-utils",
"version": "2.3.11",
"version": "2.3.12",
"description": "Simple utilities for modern npm packages.",
"keywords": [
"sanity-io",
2 changes: 1 addition & 1 deletion src/node/tasks/node/reexportCjsTask.ts
Original file line number Diff line number Diff line change
@@ -76,7 +76,7 @@ function compileESMWrapper(mod: any, relativeImport: string) {

if (mod.__esModule) {
// If there is no default export, we shouldn't add it as it'll be undefined
if ('default' in keys) {
if ('default' in mod) {
code += `export default cjs.default;\n`
}
} else {