Skip to content

Latest commit

 

History

History
470 lines (306 loc) · 30.8 KB

CHANGELOG.md

File metadata and controls

470 lines (306 loc) · 30.8 KB

Changelog

5.0.0 (2024-03-08)

Added

  • ✨ Add changelog npm script [8a456fe]

Changed

Miscellaneous

  • 📝 Generate updated docs [ef9d2fd]
  • 💥 Remove already deprecated, only Axios relevant props [85b2e93]

4.1.0 (2023-09-29)

Added

  • ✨ Add general request (promise) method to Antonio class [63e61d4]

Miscellaneous

  • 🚩 Remove gitmoji-changelog [ad0b756]

4.0.14 (2023-02-22)

Added

  • ✨ Add generic type for data error prop to isAntonioError guard func. [1c7bdf3]

4.0.13 (2023-02-22)

Changed

  • 🔧 Update peer deps format of antonio-auth pkg [4da0186]
  • ⬆️ Update browserslist [82e7c3b]

4.0.12 (2022-06-28)

Changed

  • ⬆️ Bump semver-regex from 3.1.3 to 3.1.4 [4267e43]
  • ⬆️ Bump trim-off-newlines from 1.0.1 to 1.0.3 [0874d18]
  • ⬆️ Bump node-fetch from 2.6.1 to 2.6.7 [fd0dd47]
  • ⬆️ Bump nanoid from 3.1.23 to 3.3.4 [8b02ab9]
  • ⬆️ Bump minimist from 1.2.5 to 1.2.6 [c265ece]
  • ⬆️ Bump shelljs from 0.8.4 to 0.8.5 [9183b52]

Fixed

  • 🐛 Fix takeLatestRequest [26468fc]

4.0.11 (2021-11-25)

Fixed

  • 🐛 Fix mergeParams - handle multiple identical keys [4edd52e]

4.0.10 (2021-10-25)

Changed

  • ⬆️ Bump tmpl from 1.0.4 to 1.0.5 [9262ea1]
  • ⬆️ Bump semver-regex from 3.1.2 to 3.1.3 [d528bf2]

Fixed

  • 🐛 Fix polyfilling abortcontroller in non window environment [4db4489]

4.0.9 (2021-10-20)

Miscellaneous

  • 🏷️ Improve type of TakeLatestRequest param [d155eed]
  • 📝 Update README.md at utils packages [1d5ad82]
  • 🏷️ Add proper typing for takeRequest & takeLatestRequest utils [be658bc]

4.0.7 (2021-10-19)

Miscellaneous

  • 🏷️ Fix takeLatestRequest action types [59b83ea]

4.0.6 (2021-09-20)

Fixed

  • 🐛 Fix onRequestParams interceptor return value validation [cdaabca]

Miscellaneous

4.0.5 (2021-09-15)

Miscellaneous

  • 🏷️ Pass to onRequestParams callback unmerged req. config [bbfd688]
  • 📝 Generate new docs [1da8919]

4.0.4 (2021-09-13)

Added

  • ✅ Remove the 'only' switch [ad1e715]

Miscellaneous

  • 🏷️ Remove default type for generic D at RequestResult type [d608d51]
  • 💡 Update jsdoc comment [4213fcf]

4.0.3 (2021-09-10)

Fixed

  • 🐛 Remove tag from publishConfig [931947d]

4.0.2 (2021-09-10)

Fixed

  • 🐛 Fix release:latest [471642f]

4.0.1 (2021-09-10)

Fixed

  • ✏️ Fix type in release:latest script: lastest -> latest [b89541e]

4.0.0-beta.39 (2021-09-10)

Added

  • ✨ Run type-check in code QA workflow [2528ad2]

Removed

  • 🔥 Remove an irrelevant comment [1a6de80]

Fixed

  • ✏️ Move FinalRequestConfig type to global types [fab9e7b]

Miscellaneous

  • 📝 Add docs generated with typedoc for @ackee/antonio-auth, @ackee/antonio-utils [ed63597]
  • 📝 Update docs [996ffec]
  • 📝 Update docs [8bc697c]

4.0.0-beta.37 (2021-09-10)

Changed

  • ♻️ Extend codesandbox template [d9dd042]
  • 🔧 Add linting step to the test github workflow [610bdfd]
  • ⬆️ Bump path-parse from 1.0.6 to 1.0.7 [4ad1ba5]
  • ⬆️ Bump tar from 4.4.13 to 4.4.19 [3351c1d]

Fixed

  • 🐛 Fix merging of params -> result must be instance of URLSearchParams [5dfba3b]

4.0.0-beta.36 (2021-09-10)

Changed

  • 🔧 Update npm release script [910a9b6]

4.0.0-beta.35 (2021-09-10)

Added

  • ✨ Add version script - creates changelog [299174e]

Changed

  • 🔧 Update release npm scripts [0b9fe5c]

Miscellaneous

  • 🏷️ Pass TSuccessData to RequestResult interface [cb13055]

4.0.0-beta.34 (2021-09-10)

Added

  • ✅ Add test for createREquestUrl util [657f972]
  • ✅ Add tests for joinUrlChunks util [47321f4]
  • ✅ Add tests for uriParams [f739bc8]
  • 👷‍♂️ Add release config for github actions [a2ac744]
  • 👷‍♂️ Add config for running tests with github actions [ef5b6ea]
  • ✅ Add tests for mergeRequestConfigs util [41dc0af]
  • ✨ Add util for merging search params [8f7fc6c]
  • ✅ Add tests for formatBodyData util [8c0ea82]
  • ✅ Add tests for setContentTypeHeader util [a1f886c]
  • ✅ Add tests for request mime types [4d1767d]
  • ✅ Add tests for encodeParamsToSearchParams [0ca805c]
  • ✨ Add generalConfig as prop. of Antonio [338e126]
  • ✨ Add possible to set Antonio class level generics as defaults of TSuccessData & TErrorData [9babdd0]
  • ✅ Add tests for searchParams utils [ce7f51d]
  • ✅ Add test for each req. method [7b9fced]
  • ✨ Generate docs from TS types during pre-commit hook [ceeaf1e]
  • ✨ Skip parsing response if Content-Length is 0 [5763e61]
  • ✨ Set all req. methods uppercase [dd980c7]
  • ✨ Add runIterableStream utility [0a1e772]
  • ✨ Add madge for checking circular dependencies [dafe8ca]
  • ✨ Add 'iterableStream' and 'stream' response types [ca331a3]
  • ✨ Add 'arrayBuffer' response type [49d4663]
  • ✨ Add release:yalc npm script [f84163e]
  • ✨ Add resolverType general option (resolve req. as promise or generator) [a6f871e]
  • ✨ Add a codesandbox template [f0b02eb]
  • ✨ Add core-js@3.x as a peer dependency to each package [7876e1e]
  • ✨ Add run build in prepare npm script [967afe2]
  • ✨ Pass request config as 2nd arg to req. and res. interceptors (to each callback) [b54215b]
  • ✨ Create antonio-auth package with requestAuthHeaderInterceptor [5d2151b]
  • ✨ Add setAuthHeader to antonio-utils [8188f51]

Changed

  • 🔧 Rename github workflow [02a186d]
  • 🔧 Run CI tests only when new pull request is created [c97ae34]
  • ♻️ Improve choosing default mime type for content type request header based on body [2620875]
  • 🚸 runIterableStream: throw an type error if anything other than async iterator has been passed in [05f69c2]
  • 🎨 PATCH method is case sensitive [d694e27]
  • 🔧 Adjust babel config (remove plugins that are included the @babel/preset-env) [01aea0f]
  • 🔧 Add codesandbox config [9002463]
  • 🔧 Update babel config [bce23bb]
  • 🔧 Update babel config [b1adb32]
  • ⚡ Load AbortController polyfill on demand [52f587c]
  • ⬆️ antonio-auth: @ackee/petrus@5.2.1 [fb439a5]
  • 🔧 Add release & release:beta scripts [3241eb1]
  • 🔧 Config lerna to publish packages independently [bf052d7]

Breaking changes

  • 💥 Refactor interceptors [3a80841]
  • 💥 Include null, undefined or an empty string values as params in req. URL [02bc1a1]
  • 💥 Disable resolver type 'promise' option, use the 'generator' one statically, by default [43a24cb]
  • 💥 Remove 'create' method in favor of 'new Antonio()' [f5ba39d]
  • 💥 Set content type based on body for req.; choose default response data type based on content type [f7de00b]

Removed

  • 🔥 Removing release CD config for github actinos [58ab6f9]
  • 🔥 Remove resolver types -> methods return sync generator by default (never promise) [eb77dfc]
  • 🔥 Remove unused import [f6f61f1]
  • 🔥 Remove path aliases [112e714]
  • 🔥 Remove npmignore [f4ad35d]
  • 🔥 Remove jsnext:main prop in favor of module from package.json [22529e9]
  • 🔥 Remove version and release npm scripts [28045c6]

Fixed

  • ✏️ Fix typo in antonio-core version [78c2e9a]
  • 🐛 Don't set Content-Type for FormData request body [7192db4]
  • 🐛 Prevent modifying existing headers [72f7f4e]
  • 🐛 Fix throwing out error when req. fails & running onFailure interceptors [c39996b]
  • 🐛 Fix req. interceptor return value validation [56b3bd7]
  • 🐛 Correct script name in pre-push hook [a158c26]
  • 🐛 Don't parse res. for 'HEAD' req. method [5dcd611]
  • 🐛 Fix iterableStream - resolve the generator even the stream turns out to be empty [7eacf54]
  • 🐛 Fix choosing response data type [9c61e6b]
  • 🐛 Handle empty request body [7a73a61]
  • 🐛 If parsing response as json fails, try to parse it as text [d792241]
  • 🐛 Force responseType 'text' for delete and head req. methods [06ea42d]
  • 🐛 Fix adding search param array value to URLSearchParams [bc57776]
  • 🐛 Yield only non-empty chunks from iterable stream [bef8cde]
  • 🐛 Fix cir. import [39e748c]
  • 🐛 Filter out invalid search params (empty string, null, undefined, etc.) [af556f7]
  • 🐛 Fix removing slashed in joinUrlChunks util [625ca71]
  • 🐛 Correct min version of @ackee/petrus peer dependency [24f4f4e]
  • 🐛 Support params to req. for better backwards compatibility (works same as searchParams) [278faf1]
  • 🐛 Fix default token type at setAuthHeader [5aa3596]
  • 🐛 Fix default token type at setAuthHeader [e60cb74]

Miscellaneous

  • Update README.md [d7ff90e]
  • Merge pull request #62 from AckeeCZ/feat/tests-2 [6a561cf]
  • Merge pull request #61 from AckeeCZ/feat/tests [21cacaf]
  • Merge pull request #60 from AckeeCZ/feat/tests [903b5b6]
  • 🏷️ Export FinalRequestConfig TS interface [1dd85ef]
  • Merge pull request #58 from AckeeCZ/feat/tests [6f87b92]
  • 📝 Update antonio-core README [f0bae44]
  • 📝 Update docs - API references [2378107]
  • 💡 Add docs comments for req. & res. interceptors [17ef1cc]
  • 🏷️ Add isAntonioError type guard [cc10f07]
  • 🏷️ Propagate generic argument of 'data' to AntonioError [41c127a]
  • 🏷️ Add generic argument to each req. method to set req. result 'data' type [a946fc1]
  • 🚧 Add tests for each req. method [6aa48ec]
  • 📝 Generate docs api references to be compatible with github wiki [d74aa6f]
  • 📝 Update API references [23a6ee4]
  • 💡 Add docs comment to runIterableStream, create & destroy methods [70b57b9]
  • 💡 Add comments & examples to properties in FullRequestConfig type [e0abefa]
  • 🏷️ Make defaultGeneralConfig object const [fc4cf98]
  • 🏷️ Preserve enums as constant objects after transpilation [ac50cd1]
  • 🏷️ Type generalConfigs weak map [3c8e0a3]
  • 📝 Fix internal links in README in antonio-core [d77daf0]
  • Update README.md [a4cd2e4]
  • 🏷️ Fix exporting AntonioError type [8edad30]
  • 🏷️ Export types from @ackee/antonio-core [5391d2e]
  • 📝 Add browsers support paragraph to the main README [478c8d8]
  • 💡 Add badges [9fbe280]
  • 💡 Update the main README [f5a3deb]
  • 💡 Add README about interceptors [eb2302e]
  • 💡 Update READMEs [9a9de4d]
  • 🏷️ Adding RequestHandler type [bc321c4]
  • 🏷️ Correct type at request interceptor: RequestInit -> Request [c8c4517]
  • Merge pull request #46 from AckeeCZ/feat/antonio-auth [580dd65]
  • 💡 Update README at antonio-utils [4fa475f]
  • Merge pull request #45 from AckeeCZ/feat/antonio-auth [c7e83ee]
  • 🏷️ Fix return type of mergeHeaders; complete RequestHeaders type [b62a072]
  • Merge pull request #44 from AckeeCZ/feat/antonio-utils [8574a6b]
  • Merge pull request #43 from AckeeCZ/feat/antonio-utils [1785a2d]
  • Merge pull request #42 from AckeeCZ/feat/antonio-core [ce8329b]
  • Merge pull request #41 from AckeeCZ/feat/interceptors [2fe8c59]
  • Merge pull request #40 from AckeeCZ/feat/antonio-core [7882e2b]
  • Merge pull request #39 from AckeeCZ/feat/monorepo [fbbc6ce]

4.0.0-beta.3 (2021-05-05)

Fixed

  • 🐛 Fix adding AbortController polyfill [149a31a]

4.0.0-beta.2 (2021-05-05)

Added

  • ✨ Add polyfill for AbortController [5069fa2]
  • ➕ Add loglevel dependency [cba50e0]

4.0.0-beta.1 (2021-05-05)

Added

  • ✨ Create antonio-utils with custom saga effects for easily canceling API requests [d5f7a37]

4.0.0-beta.0 (2021-05-05)

Added

  • ✨ Implement request and response interceptors [5c43d21]
  • ✨ Implement support for custom logger with loglevel as default one [c87d69a]
  • ✨ Add @ackee/antonio package [53bfabf]

Changed

  • 🚚 Move TS types from constants to types file [87a0b66]
  • ⬆️ Upgrade node to v12 in the travis config [8643c00]
  • ♻️ Transforming it to monorepo: @ackee/antonio -> @ackee/antonio-core [26f6c14]
  • 🚚 Moving to monorepo structure with @ackee/antonio-core as 1st package [05b3b3a]

Fixed

  • 🐛 Adjust request result to be similar to the request result of axios in order to decrease breaking changes [8d5a5b7]
  • 🐛 Fix joining baseUrl and pathname in createRequestUrl util [4333d06]
  • 🐛 Fix path aliases in antonio-core package [6efb9c0]
  • 🐛 Add polyfill for fetch headers [165a947]
  • 🐛 Fix babel config to add needed polyfills [a70717e]
  • 🐛 Fix lint script [9ead6b0]

Miscellaneous

  • 💡 Upgrade main README [6656d6e]
  • 🏷️ Fix request types [7cf6eb8]

4.0.0-alpha.5 (2020-05-12)

Changed

  • 🎨 Update HTTPError - include request and data [c05a48d]

4.0.0-alpha.4 (2020-05-11)

Fixed

  • 🐛 Fix error handling [9c8b676]

4.0.0-alpha.3 (2020-05-11)

Fixed

  • 🐛 Fix merging default and custom request config [21318ae]

4.0.0-alpha.2 (2020-05-11)

Changed

  • ♻️ Rewrite codebase to typescript [43d393e]

4.0.0-alpha.1 (2020-05-08)

Removed

  • ➖ Remove @ackee/petrus [4ae214b]

4.0.0-alpha.0 (2020-05-08)

Added

  • ✨ Create core module with http client build on fetch API [7464afd]
  • 🎉 Start from scratch [fc6dbab]

Miscellaneous