Skip to content

Commit

Permalink
Version Packages
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Sep 1, 2023
1 parent 031eee6 commit ad103d5
Show file tree
Hide file tree
Showing 9 changed files with 73 additions and 71 deletions.
5 changes: 0 additions & 5 deletions .changeset/calm-buckets-perform.md

This file was deleted.

14 changes: 0 additions & 14 deletions .changeset/quiet-llamas-play.md

This file was deleted.

45 changes: 0 additions & 45 deletions .changeset/two-onions-live.md

This file was deleted.

4 changes: 2 additions & 2 deletions examples/next/app-router/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
"dependencies": {
"@apollo/client": "^3.8.0",
"@faustwp/cli": "1.1.1",
"@faustwp/core": "1.1.1",
"@faustwp/experimental-app-router": "^0.0.2",
"@faustwp/core": "1.1.2",
"@faustwp/experimental-app-router": "^0.0.3",
"@apollo/experimental-nextjs-app-support": "^0.4.1",
"graphql": "^16.7.1",
"next": "^13.4.13",
Expand Down
2 changes: 1 addition & 1 deletion examples/next/faustwp-getting-started/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"dependencies": {
"@apollo/client": "^3.6.6",
"@faustwp/cli": "1.1.1",
"@faustwp/core": "1.1.1",
"@faustwp/core": "1.1.2",
"@wordpress/base-styles": "^4.26.0",
"@wordpress/block-library": "^7.19.0",
"classnames": "^2.3.1",
Expand Down
60 changes: 60 additions & 0 deletions packages/experimental-app-router/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,65 @@
# @faustwp/experimental-app-router

## 0.0.3

### Patch Changes

- a1b6fc0: Introduced a new API handler for App router projects called `faustRouteHandler`. It can be used by creating a file `/app/api/faust/[route]/route.js` with the following contents:

```js
// /app/api/faust/[route]/route.js
import { faustRouteHandler } from '@faustwp/experimental-app-router';

const { GET, POST } = faustRouteHandler;

export { GET, POST };
```

- a1b6fc0: Created `getAuthClient` for making authenticated server side requests in the Next.js App Router. It can be used like:

```js
import { getAuthClient } from '@faustwp/experimental-app-router';

// app/my-account/posts/page.js
export default async function Page() {
const client = await getAuthClient();

if (!client) {
return <>You must be authenticated to view this page!</>;
}

const { data } = await client.query({
query: gql`
query GetMyPosts {
viewer {
posts {
nodes {
id
title
}
}
}
}
`,
});

return(
<>
<h2>My posts</h2>
<ul>
{data.viewer.posts.nodes.map((post) => (
<li key={post.id}>{post.title}</li>
))}
</ul>
</>
)
```
**Note:** Our login/logout utils are still in the works.
- Updated dependencies [a419252]
- @faustwp/core@1.1.2
## 0.0.2
### Patch Changes
Expand Down
6 changes: 3 additions & 3 deletions packages/experimental-app-router/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@faustwp/experimental-app-router",
"version": "0.0.2",
"version": "0.0.3",
"description": "Experimental: A Faust package to support Next.js' App Router",
"main": "dist/cjs/index.js",
"module": "dist/mjs/index.js",
Expand Down Expand Up @@ -40,7 +40,7 @@
"@apollo/client": ">=3.8.0",
"@apollo/experimental-nextjs-app-support": ">=0.3.2",
"@faustwp/cli": ">=1.1.1",
"@faustwp/core": ">=1.1.1",
"@faustwp/core": ">=1.1.2",
"next": ">=12.1.6",
"react": ">=17.0.2",
"react-dom": ">=17.0.2"
Expand All @@ -49,7 +49,7 @@
"@apollo/client": "^3.8.0",
"@apollo/experimental-nextjs-app-support": "^0.4.1",
"@faustwp/cli": "^1.1.1",
"@faustwp/core": "^1.1.1",
"@faustwp/core": "^1.1.2",
"@testing-library/jest-dom": "^5.17.0",
"@types/node": "^20.4.6",
"concurrently": "^8.2.0",
Expand Down
6 changes: 6 additions & 0 deletions packages/faustwp-core/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @faustwp/core

## 1.1.2

### Patch Changes

- a419252: Fixed an issue where persisted queries were not being enabled properly when setting the `usePersistedQueries` flag.

## 1.1.1

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/faustwp-core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@faustwp/core",
"version": "1.1.1",
"version": "1.1.2",
"description": "Faust is a framework that aims to make headless WordPress as streamlined as classic WordPress for both developers and publishers",
"main": "dist/cjs/index.js",
"module": "dist/mjs/index.js",
Expand Down

0 comments on commit ad103d5

Please sign in to comment.