fetch-nodeshim 0.3.0 → 0.4.0-canary-2b29583b1a984d5ee8a9b457f7c00942dca24790

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # minifetch
2
2
 
3
+ ## 0.4.0-canary-2b29583b1a984d5ee8a9b457f7c00942dca24790
4
+
5
+ ### Minor Changes
6
+
7
+ - Add automatic configuration for `HTTP_PROXY`, `HTTPS_PROXY`, and `NO_PROXY` similar to the upcoming Node 24+ built-in support. Agents will automatically be created and used when these environment variables are set
8
+ Submitted by [@kitten](https://github.com/kitten) (See [#8](https://github.com/kitten/fetch-nodeshim/pull/8))
9
+
10
+ ### Patch Changes
11
+
12
+ - Prevent outright error when `--no-experimental-fetch` is set, which causes `Request`, `Response`, `FormData`, and `Headers` to not be available globally
13
+ Submitted by [@kitten](https://github.com/kitten) (See [#11](https://github.com/kitten/fetch-nodeshim/pull/11))
14
+ - Update rollup config for reduced output and exclude sources from sourcemaps
15
+ Submitted by [@kitten](https://github.com/kitten) (See [#9](https://github.com/kitten/fetch-nodeshim/pull/9))
16
+
3
17
  ## 0.3.0
4
18
 
5
19
  ### Minor Changes
@@ -47,22 +47,22 @@ declare const _URL: URLClass;
47
47
  interface RequestClass extends Or<typeof Request, typeof globalThis.Request> {
48
48
  new (input: RequestInfo, init?: _RequestInit | Or<RequestInit, globalThis.RequestInit>): _Request;
49
49
  }
50
- interface _Request extends Or<Request, globalThis.Request> {}
51
- declare const _Request: RequestClass;
52
50
  interface ResponseClass extends Or<typeof Response, typeof globalThis.Response> {
53
51
  new (body?: BodyInit$1, init?: _ResponseInit): _Response;
54
52
  }
55
- interface _Response extends Or<Response, globalThis.Response> {}
56
- declare const _Response: ResponseClass;
57
53
  interface HeadersClass extends Or<typeof Headers, typeof globalThis.Headers> {
58
54
  new (init?: HeadersInit): _Headers;
59
55
  }
60
- interface _Headers extends Or<Headers, globalThis.Headers> {}
61
- declare const _Headers: HeadersClass;
62
56
  interface FormDataClass extends Or<typeof FormData, typeof globalThis.FormData> {}
57
+ interface _Request extends Or<Request, globalThis.Request> {}
58
+ declare let _Request: RequestClass;
59
+ interface _Response extends Or<Response, globalThis.Response> {}
60
+ declare let _Response: ResponseClass;
61
+ interface _Headers extends Or<Headers, globalThis.Headers> {}
62
+ declare let _Headers: HeadersClass;
63
63
  interface _FormData
64
64
  extends Or<FormData & _Iterable<[string, FormDataEntryValue]>, globalThis.FormData> {}
65
- declare const _FormData: FormDataClass;
65
+ declare let _FormData: FormDataClass;
66
66
 
67
67
  declare function _fetch(
68
68
  input: string | _URL | _Request,