Skip to content

Commit 3fc8a55

Browse files
Version Packages
1 parent ffffaf1 commit 3fc8a55

19 files changed

Lines changed: 89 additions & 46 deletions

File tree

.changeset/condensed-publish-runtime-conditions.md

Lines changed: 0 additions & 13 deletions
This file was deleted.

.changeset/dependencies-GH-3297.md

Lines changed: 0 additions & 8 deletions
This file was deleted.

.changeset/dependencies-GH-3298.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

.changeset/dependencies-GH-3299.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

.changeset/skip-synthesized-namespace-release-tags.md

Lines changed: 0 additions & 8 deletions
This file was deleted.

packages/@sanity/parse-package-json/CHANGELOG.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,18 @@
11
# @sanity/parse-package-json
22

3+
## 2.3.2
4+
5+
### Patch Changes
6+
7+
- [#3290](https://github.com/sanity-io/pkg-utils/pull/3290) [`32ecd1c`](https://github.com/sanity-io/pkg-utils/commit/32ecd1cefccbb51358b1b2125a6978c0a71f0f20) Thanks [@rexxars](https://github.com/rexxars)! - Accept a runtime condition condensed to a plain string in `publishConfig.exports`
8+
(`"node": "./dist/index.node.js"` resolves identically to
9+
`"node": {"default": "./dist/index.node.js"}`), which is what is left of a `{source, default}`
10+
condition once `source` is stripped for publishing. Validating an export subpath now also picks the
11+
expected shape from the subpath itself, so a malformed entry is reported against the condition that
12+
is wrong instead of as `A conditional CSS export must resolve to at least one ".css" file`, and a
13+
`package.json` validation error that carries its own message is printed as a message rather than as
14+
a raw issue object.
15+
316
## 2.3.1
417

518
### Patch Changes

packages/@sanity/parse-package-json/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@sanity/parse-package-json",
3-
"version": "2.3.1",
3+
"version": "2.3.2",
44
"description": "Internal library used by other sanity.io packages",
55
"homepage": "https://github.com/sanity-io/pkg-utils/tree/main/packages/@sanity/parse-package-json#readme",
66
"bugs": {

packages/@sanity/pkg-utils/CHANGELOG.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,28 @@
11
# @sanity/pkg-utils
22

3+
## 12.1.3
4+
5+
### Patch Changes
6+
7+
- [#3290](https://github.com/sanity-io/pkg-utils/pull/3290) [`32ecd1c`](https://github.com/sanity-io/pkg-utils/commit/32ecd1cefccbb51358b1b2125a6978c0a71f0f20) Thanks [@rexxars](https://github.com/rexxars)! - Accept a runtime condition condensed to a plain string in `publishConfig.exports`
8+
(`"node": "./dist/index.node.js"` resolves identically to
9+
`"node": {"default": "./dist/index.node.js"}`), which is what is left of a `{source, default}`
10+
condition once `source` is stripped for publishing. Validating an export subpath now also picks the
11+
expected shape from the subpath itself, so a malformed entry is reported against the condition that
12+
is wrong instead of as `A conditional CSS export must resolve to at least one ".css" file`, and a
13+
`package.json` validation error that carries its own message is printed as a message rather than as
14+
a raw issue object.
15+
16+
- [#3298](https://github.com/sanity-io/pkg-utils/pull/3298) [`3aac365`](https://github.com/sanity-io/pkg-utils/commit/3aac36517efe6111c5c157efda0ff5ef284fc926) Thanks [@squiggler-app](https://github.com/apps/squiggler-app)! - fix(deps): update dependency tsx to ^4.23.12
17+
18+
- [#3288](https://github.com/sanity-io/pkg-utils/pull/3288) [`5bfa760`](https://github.com/sanity-io/pkg-utils/commit/5bfa76059aaf49793cc537b5c78b41a9466f858b) Thanks [@stipsan](https://github.com/stipsan)! - Stop flagging the synthesized namespace wrappers of the declaration bundler with `ae-missing-release-tag`.
19+
20+
Namespace re-exports (`export * as ns from './module'`, or `import * as ns` + `export {ns}`) make the declaration bundling pass synthesize a `declare namespace <module>_d_exports {…}` wrapper that drops the doc comment of the re-export statement, so the wrapper could never carry a release tag and there was no userland fix short of downgrading the rule for the whole package. The TSDoc check now recognizes those wrappers (the interop naming, declared as a namespace in the entry or a shared chunk, a body that only re-exports sibling declarations, and re-exported under an alias) and exempts them from `ae-missing-release-tag`, like API Extractor's own rollups never checked the equivalent namespace. Everything else, including user namespaces that merely resemble the interop naming, stays checked: a namespace that declares members of its own is yours to tag, even when the bundler's deconflicting hands it a wrapper-shaped name.
21+
22+
- Updated dependencies [[`32ecd1c`](https://github.com/sanity-io/pkg-utils/commit/32ecd1cefccbb51358b1b2125a6978c0a71f0f20), [`5496b49`](https://github.com/sanity-io/pkg-utils/commit/5496b49a8ce776af68a9c4f71715c52270b398b6), [`5bfa760`](https://github.com/sanity-io/pkg-utils/commit/5bfa76059aaf49793cc537b5c78b41a9466f858b)]:
23+
- @sanity/parse-package-json@2.3.2
24+
- @sanity/tsdown-config@0.24.2
25+
326
## 12.1.2
427

528
### Patch Changes

packages/@sanity/pkg-utils/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@sanity/pkg-utils",
3-
"version": "12.1.2",
3+
"version": "12.1.3",
44
"description": "Simple utilities for modern npm packages.",
55
"keywords": [
66
"sanity-io",

packages/@sanity/tsdown-config/CHANGELOG.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,18 @@
11
# @sanity/tsdown-config
22

3+
## 0.24.2
4+
5+
### Patch Changes
6+
7+
- [#3297](https://github.com/sanity-io/pkg-utils/pull/3297) [`5496b49`](https://github.com/sanity-io/pkg-utils/commit/5496b49a8ce776af68a9c4f71715c52270b398b6) Thanks [@squiggler-app](https://github.com/apps/squiggler-app)! - fix(deps): update dependency rolldown to ~1.2.4
8+
9+
- [#3288](https://github.com/sanity-io/pkg-utils/pull/3288) [`5bfa760`](https://github.com/sanity-io/pkg-utils/commit/5bfa76059aaf49793cc537b5c78b41a9466f858b) Thanks [@stipsan](https://github.com/stipsan)! - Stop flagging the synthesized namespace wrappers of the declaration bundler with `ae-missing-release-tag`.
10+
11+
Namespace re-exports (`export * as ns from './module'`, or `import * as ns` + `export {ns}`) make the declaration bundling pass synthesize a `declare namespace <module>_d_exports {…}` wrapper that drops the doc comment of the re-export statement, so the wrapper could never carry a release tag and there was no userland fix short of downgrading the rule for the whole package. The TSDoc check now recognizes those wrappers (the interop naming, declared as a namespace in the entry or a shared chunk, a body that only re-exports sibling declarations, and re-exported under an alias) and exempts them from `ae-missing-release-tag`, like API Extractor's own rollups never checked the equivalent namespace. Everything else, including user namespaces that merely resemble the interop naming, stays checked: a namespace that declares members of its own is yours to tag, even when the bundler's deconflicting hands it a wrapper-shaped name.
12+
13+
- Updated dependencies [[`5496b49`](https://github.com/sanity-io/pkg-utils/commit/5496b49a8ce776af68a9c4f71715c52270b398b6)]:
14+
- @sanity/vanilla-extract-tsdown-plugin@0.3.2
15+
316
## 0.24.1
417

518
### Patch Changes

0 commit comments

Comments
 (0)