All notable changes to this project will be documented in this file. See Conventional Commits for commit guidelines.
8.5.0 (2024-05-23)
8.4.30 (2024-05-14)
8.4.29 (2024-05-07)
8.4.28 (2024-05-03)
8.4.27 (2024-04-19)
- handle bug affecting next 14.2.2 during static pregeneration (1a794fe)
8.4.26 (2024-04-17)
- typings: improve
.d.ts
output (3fd490e)
8.4.25 (2024-04-17)
- allow setting
retryDelay
as a request option (08e5f24)
8.4.24 (2024-04-17)
- inline
debug
for better ESM interop (18798b6) - inline
parse-headers
for better ESM interop (1f36dfe) - package exports for react-native (#413) (a93400e)
8.4.23 (2024-04-13)
8.4.22 (2024-04-13)
- inline is-plain-object (d902fdb)
8.4.21 (2024-04-11)
- improve bun support (ea370bd)
8.4.20 (2024-04-11)
- add bun export condition (f616b13)
8.4.19 (2024-04-10)
- remove unnecessary
source
condition (5c60ce0)
8.4.18 (2024-04-05)
8.4.17 (2024-04-02)
8.4.16 (2024-03-20)
8.4.15 (2024-03-20)
8.4.14 (2024-03-18)
8.4.13 (2024-03-15)
8.4.12 (2024-03-15)
8.4.11 (2024-03-11)
8.4.10 (2024-02-26)
- deps: update non-major (1115b66)
8.4.9 (2024-02-21)
8.4.8 (2024-02-21)
8.4.7 (2024-02-20)
- deps: update dependency @sanity/pkg-utils to ^4.2.0 (#314) (55440e4)
- deps: update dependency @sanity/pkg-utils to ^4.2.4 (#329) (151e7e4)
8.4.6 (2024-01-25)
8.4.5 (2024-01-11)
- deps: update dependency @sanity/pkg-utils to ^3.3.7 (#297) (9660580)
- deps: Update react monorepo (#265) (080b96c)
8.4.4 (2023-10-24)
- deps: lock file maintenance (#251) (eeed9ef)
- deps: Update dependency @types/node to v20 (#250) (a73b40d)
8.4.3 (2023-08-17)
8.4.2 (2023-08-09)
- improve React Native compatiblity (ead5ceb)
8.4.1 (2023-08-07)
- support Gatsby v5 (3274198)
8.4.0 (2023-08-07)
8.3.2 (2023-08-04)
8.3.1 (2023-07-25)
8.3.0 (2023-07-07)
8.2.0 (2023-06-28)
8.1.4 (2023-06-28)
8.1.3 (2023-05-15)
- remove debug code (a9eca1f)
8.1.2 (2023-05-11)
- add missing attemptNumber argument to retry option typings (#113) (5713f87)
- produce error instances from xhr error & timeout event callbacks (#127) (6169b6a)
8.1.1 (2023-03-24)
- fetch: check for existence of
EventTarget
before using (b31db80)
8.1.0 (2023-03-23)
8.0.11 (2023-03-14)
8.0.10 (2023-03-06)
8.0.9 (2023-01-25)
8.0.8 (2023-01-23)
- improve legacy ESM support (d622f1c)
8.0.7 (2023-01-18)
- replace
create-error-class
with nativeError
(3056ed1) - replace
form-urlencoded
with native APIs (d56750c)
8.0.6 (2023-01-14)
8.0.5 (2023-01-11)
- replace
url-parse
with nativeURL
(f6317e3)
8.0.4 (2023-01-10)
8.0.3 (2023-01-09)
- add support for deno and worker conditions (5a1a263)
8.0.2 (2023-01-06)
8.0.1 (2023-01-04)
- typo in
pkg.typesVersions
(03ead62)
8.0.0 (2023-01-04)
- umd builds are removed and all middleware imports are moved to
get-it/middleware
. Imports such asimport promise from 'get-it/lib-node/middleware/promise'
are no longer supported. The default import is replaced with a named one: changeimport getIt from 'get-it'
toimport {getIt} from 'get-it'
Other changes
- Migrated codebase to TypeScript, moving away from using
any
is out of scope for this PR but linter rules are setup to make it easier to do this refactor in a later PR. - The required Node.js version is moved from 12 to 14, as 12 does not support
pkg.exports
. - Tooling have moved to
@sanity/pkg-utils
, gone is@babel/cli
,browserify
,esbuild
,uglifyjs
, and more. - Replaced
mocha
testing suite withvitest
to ensure the new ESM codebase runs the same way it'll run in production with codebases such assanity
. - The
pkg.exports
are refactored to follow our updated ESM best practices, spearheaded by@sanity/pkg-utils
. It implements the Node.jsdual package hazard
technique to steer the Node.js ESM runtime back into CJS mode as half ourdependencies
aren't shipping ESM-runtime code yet.
- full Node.js ESM runtime support (#54) (ab8a4fd), closes /github.com/sanity-io/get-it/blob/8fecf9ff77e8805bb9ae1aac74b74d4d786a11ca/package.json#L42-L154 /github.com/sanity-io/get-it/blob/8fecf9ff77e8805bb9ae1aac74b74d4d786a11ca/package.json#L18-L41
7.0.2 (2022-09-27)
7.0.1 (2022-09-15)
7.0.0 (2022-09-15)
- Adding ESM support is a significant change. Although a tremendous effort is made to preserve backward compatibility it can't be guaranteed as there are too many conditions, environments, and runtime versions to cover them all.