Skip to content

Commit f80b5ba

Browse files
committed
chore: add changesets
1 parent db755bf commit f80b5ba

File tree

3 files changed

+45
-0
lines changed

3 files changed

+45
-0
lines changed

.changeset/fifty-taxis-brake.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
'@sanity/image-url': major
3+
---
4+
5+
**BREAKING:** Export all public types from main export path
6+
7+
All TypeScript types are now exported from the main package entry point instead of internal `/lib` directory paths. This provides a stable, public API for type imports.
8+
9+
**Migration:** Update type imports to use the main export path:
10+
11+
```diff
12+
- import type {SanityImageSource} from '@sanity/image-url/lib/types/types'
13+
+ import type {SanityImageSource} from '@sanity/image-url'
14+
```

.changeset/icy-papers-study.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
'@sanity/image-url': major
3+
---
4+
5+
**BREAKING:** Drop CommonJS support, move to ESM only
6+
7+
The package now exclusively uses ES modules. CommonJS `require()` syntax is no longer supported.
8+
9+
**Migration:** Replace `require()` statements with `import` statements:
10+
11+
```diff
12+
- const urlBuilder = require('@sanity/image-url')
13+
+ import {createImageUrlBuilder} from '@sanity/image-url'
14+
```

.changeset/poor-readers-share.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
---
2+
'@sanity/image-url': major
3+
---
4+
5+
**BREAKING:** Replace default export with named export
6+
7+
The main function is now exported as `createImageUrlBuilder` instead of a default export.
8+
9+
**Migration:** Update your imports:
10+
11+
```diff
12+
- import imageUrlBuilder from '@sanity/image-url'
13+
+ import {createImageUrlBuilder} from '@sanity/image-url'
14+
15+
- const builder = imageUrlBuilder(client)
16+
+ const builder = createImageUrlBuilder(client)
17+
```

0 commit comments

Comments
 (0)