Skip to content
This repository has been archived by the owner on Sep 1, 2024. It is now read-only.

Commit

Permalink
Added new version blog post
Browse files Browse the repository at this point in the history
  • Loading branch information
ozziest committed Apr 8, 2024
1 parent ac6b45d commit ee15e3d
Show file tree
Hide file tree
Showing 4 changed files with 493 additions and 664 deletions.
54 changes: 54 additions & 0 deletions docs/blog/2024-04-08-axe-api-v1-3-is-out.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
# Axe API v1.3 is out!

`v1.3` comes with one feature and a security upgrades.

Let's discover it more!

## `index.ts` file for hook functions

Hooks and events are a crucial part of Axe API. It allows you to add your application logic to your API in a very efficient and testable way. In this section, we will cover the logic of it.

A simple hook or event function look like the following example;

::: code-group

```ts [app/v1/Hooks/User/onBeforeInsert.ts]
import { IContext } from "axe-api";

export default async (context: IContext) => {
// add your custom logic in here
};
```

:::

Developers had to put hook functions to separate files. It was useful if your logic is too complicated.

Now developers can put hook functions to `index.ts` file directly. Also, they can use the separated file method at the same time.

::: code-group

```ts [app/v1/Hooks/User/index.ts]
import { IContext } from "axe-api";

export const onBeforeInsert = async (context: IContext) => {
// add your custom logic in here
};

export const onAfterInsert = async (context: IContext) => {
// add your custom logic in here
};
```

:::

## `v0.30` is in the maintenance

The maintenance period has begun for the `v0.30` version of Axe API. It will reach EOL at the end of Q3 2024.

![v0.30](./v030.png)

You can find the details in the [Versioning Policy
](/upgrading/versioning-policy.html).

You can use the [Upgrading to v1](/upgrading/v1.html) tutorial to upgrade your APIs.
5 changes: 5 additions & 0 deletions docs/blog/BlogIndex.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
<script setup lang="ts">
const posts = [
{
time: "08 April, 2024",
title: "Axe API v1.3 is out!",
url: "/blog/2024-04-08-axe-api-v1-3-is-out",
},
{
time: "16 March, 2024",
title: "Axe API v1.2 is out!",
Expand Down
Binary file added docs/blog/v030.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit ee15e3d

Please sign in to comment.