api-def 0.5.0 → 0.5.1

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.
Files changed (2) hide show
  1. package/package.json +1 -2
  2. package/CHANGELOG.md +0 -55
package/package.json CHANGED
@@ -1,12 +1,11 @@
1
1
  {
2
2
  "name": "api-def",
3
- "version": "0.5.0",
3
+ "version": "0.5.1",
4
4
  "description": "Typed API definitions with middleware support",
5
5
  "main": "cjs/index.js",
6
6
  "types": "esm/index.d.ts",
7
7
  "module": "esm/index.js",
8
8
  "sideEffects": false,
9
- "type": "module",
10
9
  "scripts": {
11
10
  "test": "npm run test:types && npm run test:lint && npm run test:unit",
12
11
  "test:unit": "cross-env NODE_ENV=test jest",
package/CHANGELOG.md DELETED
@@ -1,55 +0,0 @@
1
- # 0.5.0
2
-
3
- ## Breaking Changes
4
-
5
- - Undocumented mocking API has been overhauled
6
-
7
- ## Changes
8
-
9
- - Add mocking!
10
- - Restructured mocking so that mocks are defined on the endpoint level (documentation updated)
11
- - Add `acceptableStatus` to specify which status codes are considered successful
12
- - Extend retry logic to use exponential back-off, rather than retrying immediately
13
- - Support for additional hot-request methods:
14
- - PUT, DELETE
15
-
16
- # 0.4.1
17
-
18
- - fix fetch backend not working with unbound fetch
19
- - add better error handling on parse
20
-
21
- # 0.4.0
22
-
23
- ## Breaking Changes
24
-
25
- - Move config values from options object up one layer
26
- - In config `retries` -> `retry`
27
- - `defaults` -> `config`
28
-
29
- ## Changes
30
-
31
- - Remove need for enum imports
32
- - Make `name` and `description` optional in endpoint definition
33
-
34
- # 0.3.11
35
-
36
- ## Changes
37
-
38
- - Make fetch backend default if fetch is present
39
- - Fix fetch backends text response type support
40
-
41
- # 0.3.0
42
-
43
- ## Features
44
-
45
- - allow defaults to be a function on api
46
- - add content type header in fetch backend to match axios backend
47
- - remove `flatted`
48
- - polyfill object.assign for ie
49
- - change retry logic so that if a middleware event responds with Retry we always attempt a retry
50
-
51
- # 0.2.5
52
-
53
- ## Changes
54
-
55
- - Remove `window` usages to allow node support