Skip to content
This repository was archived by the owner on Dec 20, 2025. It is now read-only.

Commit 8f249f4

Browse files
committed
chore: add changeset
1 parent 0b1d83c commit 8f249f4

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

.changeset/ready-worlds-act.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
---
2+
"google-sr": major
3+
---
4+
5+
Fixed types and improved all result parsers
6+
7+
Fixed generic types for partial results. Now `search` and `searchWithPages` return the correct types based on the `noPartialResults` option.
8+
9+
**Breaking Changes:**
10+
- `DictionaryResultNode` interface: `phonetic` and `word` properties are now required when `noPartialResults` is `true`. This makes all result types consistent.
11+
- All parsers now convert empty strings to `undefined` (this was in the types but not working). This may break your code if you expected empty strings in the previous versions.
12+
13+
**Other Changes:**
14+
- Refactored all internal parsers for better consistency
15+
- Added better documentation and examples
16+
- Improved parsing reliability

0 commit comments

Comments
 (0)