Skip to content

Commit

Permalink
chore: update version
Browse files Browse the repository at this point in the history
  • Loading branch information
florian-lefebvre committed Apr 13, 2024
1 parent 8177c85 commit 203401a
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 29 deletions.
28 changes: 0 additions & 28 deletions .changeset/nasty-waves-fetch.md

This file was deleted.

29 changes: 29 additions & 0 deletions package/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,34 @@
# astro-integration-kit

## 0.11.0

### Minor Changes

- 29d6305: Updates `defineIntegration` `setup` returned object shape to allow extra properties

Previously the return of the `setup` function passed to `defineIntegration` was the Astro hooks defined by the integration, and would be set as the `hooks` property in the final integration object.

Now, the expected return of `setup` is the properties of the integration object itself:

```ts title="my-integration.ts" ins={7,11}
import { defineIntegration } from "astro-integration-kit";

export default defineIntegration({
name: "my-integration",
setup({ name }) {
return {
hooks: {
"astro:config:setup": () => {
// ...
},
},
};
},
});
```

If you are using the `withPlugins` utility, you don't need to do anything since that utility now returns the updated shape.

## 0.10.0

### Minor Changes
Expand Down
2 changes: 1 addition & 1 deletion package/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "astro-integration-kit",
"version": "0.10.0",
"version": "0.11.0",
"description": "A package that contains utilities to help you build Astro integrations.",
"author": {
"email": "contact@florian-lefebvre.dev",
Expand Down

0 comments on commit 203401a

Please sign in to comment.