Skip to content

Commit

Permalink
fix: Support legacy Node.js module resolution and place default exp…
Browse files Browse the repository at this point in the history
…ort last (#937)

Signed-off-by: Andrew Haines <haines@cerbos.dev>
  • Loading branch information
haines authored Apr 23, 2024
1 parent ccd3de3 commit 532fdaa
Show file tree
Hide file tree
Showing 24 changed files with 295 additions and 21 deletions.
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
"lint:check:depcheck": "pnpm --recursive --include-workspace-root exec depcheck --ignore-patterns=/lib/ --quiet --skip-missing",
"lint:check:eslint": "eslint --max-warnings=0 .",
"lint:check:prettier": "prettier --check .",
"lint:check:types": "pnpm --recursive --filter='./packages/*' exec attw --pack .",
"lint:fix": "pnpm run lint:fix:eslint && pnpm run lint:fix:prettier",
"lint:fix:eslint": "eslint --fix --max-warnings=0 .",
"lint:fix:prettier": "prettier --write .",
Expand All @@ -48,6 +49,7 @@
"test:servers:stop": "pnpm run --filter=./private/test test:servers:stop"
},
"devDependencies": {
"@arethetypeswrong/cli": "0.15.3",
"@microsoft/api-documenter": "7.24.2",
"@microsoft/api-extractor": "7.43.1",
"@tsconfig/node18": "18.2.4",
Expand Down
4 changes: 3 additions & 1 deletion packages/core/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@

## [Unreleased]

No notable changes.
### Changed

- Support legacy Node.js module resolution and place `default` export last ([#937](https://github.com/cerbos/cerbos-sdk-javascript/pull/937))

## [0.17.0] - 2024-04-12

Expand Down
7 changes: 7 additions & 0 deletions packages/core/changelog.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
unreleased:
type: patch

changed:
- summary: Support legacy Node.js module resolution and place `default` export last
pull: 937

releases:
- version: 0.17.0
date: 2024-04-12
Expand Down
6 changes: 4 additions & 2 deletions packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,14 @@
"engines": {
"node": ">= 18"
},
"main": "./lib/index.js",
"exports": {
".": {
"default": "./lib/index.js",
"types": "./lib/index.d.ts"
"types": "./lib/index.d.ts",
"default": "./lib/index.js"
}
},
"types": "./lib/index.d.ts",
"files": [
"lib/**/*.d.ts",
"lib/**/*.d.ts.map",
Expand Down
4 changes: 3 additions & 1 deletion packages/embedded/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@

## [Unreleased]

No notable changes.
### Changed

- Support legacy Node.js module resolution and place `default` export last ([#937](https://github.com/cerbos/cerbos-sdk-javascript/pull/937))

## [0.7.0] - 2024-04-12

Expand Down
7 changes: 7 additions & 0 deletions packages/embedded/changelog.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
unreleased:
type: patch

changed:
- summary: Support legacy Node.js module resolution and place `default` export last
pull: 937

releases:
- version: 0.7.0
date: 2024-04-12
Expand Down
6 changes: 4 additions & 2 deletions packages/embedded/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,14 @@
"engines": {
"node": ">= 18"
},
"main": "./lib/index.js",
"exports": {
".": {
"default": "./lib/index.js",
"types": "./lib/index.d.ts"
"types": "./lib/index.d.ts",
"default": "./lib/index.js"
}
},
"types": "./lib/index.d.ts",
"files": [
"lib/**/*.d.ts",
"lib/**/*.d.ts.map",
Expand Down
4 changes: 3 additions & 1 deletion packages/files/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@

## [Unreleased]

No notable changes.
### Changed

- Support legacy Node.js module resolution and place `default` export last ([#937](https://github.com/cerbos/cerbos-sdk-javascript/pull/937))

## [0.2.4] - 2024-04-12

Expand Down
7 changes: 7 additions & 0 deletions packages/files/changelog.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
unreleased:
type: patch

changed:
- summary: Support legacy Node.js module resolution and place `default` export last
pull: 937

releases:
- version: 0.2.4
date: 2024-04-12
Expand Down
6 changes: 4 additions & 2 deletions packages/files/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,14 @@
"engines": {
"node": ">= 18"
},
"main": "./lib/index.js",
"exports": {
".": {
"default": "./lib/index.js",
"types": "./lib/index.d.ts"
"types": "./lib/index.d.ts",
"default": "./lib/index.js"
}
},
"types": "./lib/index.d.ts",
"files": [
"lib/**/*.d.ts",
"lib/**/*.d.ts.map",
Expand Down
4 changes: 3 additions & 1 deletion packages/grpc/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@

## [Unreleased]

No notable changes.
### Changed

- Support legacy Node.js module resolution and place `default` export last ([#937](https://github.com/cerbos/cerbos-sdk-javascript/pull/937))

## [0.17.0] - 2024-04-12

Expand Down
7 changes: 7 additions & 0 deletions packages/grpc/changelog.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
unreleased:
type: patch

changed:
- summary: Support legacy Node.js module resolution and place `default` export last
pull: 937

releases:
- version: 0.17.0
date: 2024-04-12
Expand Down
6 changes: 4 additions & 2 deletions packages/grpc/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,14 @@
"engines": {
"node": ">= 18"
},
"main": "./lib/index.js",
"exports": {
".": {
"default": "./lib/index.js",
"types": "./lib/index.d.ts"
"types": "./lib/index.d.ts",
"default": "./lib/index.js"
}
},
"types": "./lib/index.d.ts",
"files": [
"lib/**/*.d.ts",
"lib/**/*.d.ts.map",
Expand Down
2 changes: 2 additions & 0 deletions packages/http/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@

### Changed

- Support legacy Node.js module resolution and place `default` export last ([#937](https://github.com/cerbos/cerbos-sdk-javascript/pull/937))

- Bump dependency on [qs] to 6.12.1 ([#933](https://github.com/cerbos/cerbos-sdk-javascript/pull/933))

## [0.18.0] - 2024-04-12
Expand Down
4 changes: 4 additions & 0 deletions packages/http/changelog.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
unreleased:
type: patch

changed:
- summary: Support legacy Node.js module resolution and place `default` export last
pull: 937

bumped:
qs:
to: 6.12.1
Expand Down
6 changes: 4 additions & 2 deletions packages/http/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,14 @@
"engines": {
"node": ">= 18"
},
"main": "./lib/index.js",
"exports": {
".": {
"default": "./lib/index.js",
"types": "./lib/index.d.ts"
"types": "./lib/index.d.ts",
"default": "./lib/index.js"
}
},
"types": "./lib/index.d.ts",
"files": [
"lib/**/*.d.ts",
"lib/**/*.d.ts.map",
Expand Down
4 changes: 3 additions & 1 deletion packages/opentelemetry/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@

## [Unreleased]

No notable changes.
### Changed

- Support legacy Node.js module resolution and place `default` export last ([#937](https://github.com/cerbos/cerbos-sdk-javascript/pull/937))

## [0.4.5] - 2024-04-12

Expand Down
7 changes: 7 additions & 0 deletions packages/opentelemetry/changelog.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
unreleased:
type: patch

changed:
- summary: Support legacy Node.js module resolution and place `default` export last
pull: 937

releases:
- version: 0.4.5
date: 2024-04-12
Expand Down
6 changes: 4 additions & 2 deletions packages/opentelemetry/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,14 @@
"engines": {
"node": ">= 18"
},
"main": "./lib/index.js",
"exports": {
".": {
"default": "./lib/index.js",
"types": "./lib/index.d.ts"
"types": "./lib/index.d.ts",
"default": "./lib/index.js"
}
},
"types": "./lib/index.d.ts",
"files": [
"lib/**/*.d.ts",
"lib/**/*.d.ts.map",
Expand Down
4 changes: 3 additions & 1 deletion packages/react/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@

## [Unreleased]

No notable changes.
### Changed

- Support legacy Node.js module resolution and place `default` export last ([#937](https://github.com/cerbos/cerbos-sdk-javascript/pull/937))

## [0.1.0] - 2024-04-12

Expand Down
7 changes: 7 additions & 0 deletions packages/react/changelog.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
unreleased:
type: patch

changed:
- summary: Support legacy Node.js module resolution and place `default` export last
pull: 937

releases:
- version: 0.1.0
date: 2024-04-12
Expand Down
6 changes: 4 additions & 2 deletions packages/react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,14 @@
"engines": {
"node": ">= 18"
},
"main": "./lib/index.js",
"exports": {
".": {
"default": "./lib/index.js",
"types": "./lib/index.d.ts"
"types": "./lib/index.d.ts",
"default": "./lib/index.js"
}
},
"types": "./lib/index.d.ts",
"files": [
"lib/**/*.d.ts",
"lib/**/*.d.ts.map",
Expand Down
Loading

0 comments on commit 532fdaa

Please sign in to comment.