Skip to content

Releases: zimicjs/zimic

@zimic/interceptor: 0.15.0-canary.2

09 Mar 12:33
Compare
Choose a tag to compare
Pre-release

What's Changed

Full Changelog: https://github.com/zimicjs/zimic/compare/@zimic/interceptor@0.15.0-canary.1...@zimic/interceptor@0.15.0-canary.2

@zimic/http: 0.1.2-canary.0

09 Mar 12:33
Compare
Choose a tag to compare
Pre-release

What's Changed

Full Changelog: https://github.com/zimicjs/zimic/compare/@zimic/http@0.1.1...@zimic/http@0.1.2-canary.0

@zimic/fetch: 0.1.2-canary.0

09 Mar 12:33
Compare
Choose a tag to compare
Pre-release

What's Changed

Full Changelog: https://github.com/zimicjs/zimic/compare/@zimic/fetch@0.1.1...@zimic/fetch@0.1.2-canary.0

@zimic/interceptor: 0.15.0-canary.1

08 Mar 15:32
Compare
Choose a tag to compare
Pre-release

What's Changed

Full Changelog: https://github.com/zimicjs/zimic/compare/@zimic/interceptor@0.15.0-canary.0...@zimic/interceptor@0.15.0-canary.1

@zimic/interceptor: 0.15.0-canary.0

08 Mar 15:27
Compare
Choose a tag to compare
Pre-release

What's Changed

Full Changelog: https://github.com/zimicjs/zimic/compare/@zimic/interceptor@0.14.0...@zimic/interceptor@0.15.0-canary.0

v0.14.0

03 Mar 18:06
Compare
Choose a tag to compare

zimic@0.14.0 is here! πŸŽ‰

Important

Starting at 0.14.0, the package zimic was renamed to @zimic/interceptor. The resources previously exported by the zimic and zimic/http entry points are now in a dedicated package, @zimic/http, which is a peer dependency of @zimic/interceptor. Check out the migration guide about how to update your imports to use @zimic/http and @zimic/interceptor.

Refer to the @zimic/interceptor@0.14.0 release for the full changelog of version.

Full Changelog: v0.13.2...v0.14.0

@zimic/interceptor: 0.14.0

03 Mar 18:03
Compare
Choose a tag to compare

@zimic/interceptor@0.14.0 is here! πŸŽ‰

Features

  • πŸ”§ zimic is now @zimic/interceptor (#565 in 9ba56a3)

    Starting at 0.14.0, the package zimic was renamed to @zimic/interceptor. The resources previously exported by the zimic and zimic/http entry points are now in a dedicated package, @zimic/http, which is a peer dependency of @zimic/interceptor.Check out the migration guide about how to update your imports to use @zimic/http and @zimic/interceptor.

  • πŸ’‘ Explicit content-type header in OpenAPI typegen results (0e83d4f):

    Previously, zimic typegen (now zimic-http typegen) included a content-type header only for requests and responses with more than one content type. To increase the completeness of the generated types and pave the road to @zimic/fetch, all generated request and response types now have an explicit content-type header, inferred from the source OpenAPI specification.

    ...
    response: {
      200: {
    +    headers: HttpHeadersSerialized<{
    +      'content-type': 'application/json';
    +    }>;
        body: MyServiceComponents['schemas']['UserOrFriend'];
      };
    };
    ...
  • ✨ Optional content-type header inference (1ac81ba):

    When content-type is the only declared header in a response schema, Zimic interceptors now treat it as optional. This is possible because the interceptors automatically populate the content type based on the response body.

    The following code is now valid:

    const interceptor = httpInterceptor.create<{
      '/users': {
        GET: {
          response: {
            200: {
              headers: { 'content-type': 'application/json' };
              body: User;
            };
          };
        };
    }>({ ... })
    
    interceptor.get('/users').respond({
      status: 200,
      body: users[0], // no 'content-type' header necessary!
    });

Dependencies

Credits

Huge thanks to @diego-aquino for helping!

Full Changelog: v0.13.2...@zimic/interceptor@0.14.0

@zimic/http: 0.1.1

03 Mar 19:46
Compare
Choose a tag to compare

@zimic/http@0.1.1 is here! πŸŽ‰

Documentation

Credits

Huge thanks to @diego-aquino for helping!

Full Changelog: @zimic/http@0.1.0...@zimic/http@0.1.1

@zimic/http: 0.1.0

03 Mar 17:52
Compare
Choose a tag to compare

@zimic/http@0.1.0 is here! πŸŽ‰

Features

  • πŸ”§ HTTP schemas, typegen, type-safe native APIs (#565 in 14fc235)

    Following #565, the resources previously exported by the zimic and zimic/http entry points are now in a dedicated package, @zimic/http. If you are using @zimic/fetch or @zimic/interceptor, @zimic/http should be installed alongside them.

Learn more:

Credits

Huge thanks to @diego-aquino for helping!

Full Changelog: @zimic/http@0.1.0

@zimic/fetch: 0.1.1

03 Mar 19:46
Compare
Choose a tag to compare

@zimic/fetch@0.1.1 is here! πŸŽ‰

Documentation

Credits

Huge thanks to @diego-aquino for helping!

Full Changelog: @zimic/fetch@0.1.0...@zimic/fetch@0.1.1