Skip to content

Announcing Backpack 0.5

For full details, please refer to our changelog.

Adopted utilities from @ns/common-serverless-library

We adopted most of the utilities from @ns/common-serverless-library. They can be found in the following packages:

If you plan to migrate, make sure to consult the migration guide.

New: Backpack REST client

We explored common practices for REST clients and have introduced a pre-configured REST client in Backpack. It uses Wretch under the hood and allows seamless integration with any REST API in a straightforward manner while keeping dependencies minimal:

ts
import { createRestClient } from "@backpack/rest-client";

const bookStoreClient = createRestClient({
  baseUrl: "https://my-book-store.com",
  apiManagementApiKey: '...',
  timeout: 5_000,
  // ...
});

const books = await bookStoreClient
  .get("/api/v1/books")
  .json();

Explore the new @backpack/rest-client package to learn more!

Added @backpack/testing

We also extracted a popular testing utility function into @backpack/testing.

Improved the entire documentation

We have completely restructured the documentation and added many new pages. For example, check out the new how-to guides, which focus on common tasks, or visit the updated CDK snippets page.

We also now have a dedicated migration guide on how to migrate your existing project to Backpack!