This is a major version bump, including several breaking changes:
- Add support for native fetch, browser / edge runtimes, timeouts by @transitive-bullshit #38
- Add conversation support by @simon300000 #26
Nothing should take you by surprise, and new examples have been added to the readme for conversation support.
We changed from using node-fetch
to using native fetch
in node.js >= 18 and browser / edge environments. For node.js < 18, we're using undici
as an optional dependency because it has better compatibility with the standards compliant fetch
API than node-fetch
.
This unfortunately means that node.js 14 is no longer supported with this release since undici
requires node >= 16.8
.
If you want to use this package with node.js 14, use v1.4.0
.
Docs on how to use this package from CommonJS were also added by @GoneTone.
All changes:
- chore: update docs 03102de
- Merge pull request #38 from transitive-bullshit/feature/native-fetch-and-edge-support 20c376e
- chore: update auto-generated docs f723ae5
- docs: updates 92318f1
- feat: fixes and documenting methods 58795f4
- docs: update readme for new release 4693de9
- docs: update auto-generated docs 52ae367
- fix: various fixes and doc updates c8b3ac7
- chore: remove support for node.js 14 from CI ec49713
- feat: WIP add support for native fetch; undici on node.js < 18, and refactor conversation support aaf5efc
- docs: tweak commonjs example a1ac915
- Merge pull request #41 from GoneTone/main 2c07e53
- Merge pull request #42 from barnesoir/main 6ee72b6
- Add MarketPlace link to ReadMe 68ee5dd
- docs: usage in CommonJS (dynamic import) 8520077
- Merge pull request #39 from gencay/patch-1 ebf9ee4
- Update readme with vscode extension e5fd7e9
- Merge pull request #26 from simon300000/main 472db7b
- Update readme.md 07f7fb4
- Merge pull request #32 from coskuncay/main 31c4399
- conversation always save conversationId 8fb30b1
- Update demo-conversation.ts 8012354
- Update readme.md 2a4a789
- optional params for Conversation df94c61
- Merge pull request #30 from barnesoir/main 96473a9
- Update readme.md d32078e
- Update readme.md ab0bea7
- added some comment 9e891f5
- Conversation support d716a35