Skip to content

Commit

Permalink
Version Packages (#1550)
Browse files Browse the repository at this point in the history
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
github-actions[bot] and github-actions[bot] committed Sep 6, 2023
1 parent 795d956 commit 4a20f9b
Show file tree
Hide file tree
Showing 11 changed files with 85 additions and 89 deletions.
5 changes: 0 additions & 5 deletions .changeset/calm-buckets-perform.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/funny-starfishes-melt.md

This file was deleted.

13 changes: 0 additions & 13 deletions .changeset/poor-dragons-help.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
62 changes: 62 additions & 0 deletions packages/experimental-app-router/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,67 @@
# @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]
- Updated dependencies [cf887d3]
- Updated dependencies [795d956]
- @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
16 changes: 16 additions & 0 deletions packages/faustwp-core/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,21 @@
# @faustwp/core

## 1.1.2

### Patch Changes

- a419252: Fixed an issue where persisted queries were not being enabled properly when setting the `usePersistedQueries` flag.
- cf887d3: Fixed bug where the "Edit Post" link was missing in the Faust Toolbar
- 795d956: Improved keyboard navigation within Toolbar menus, allowing for dropdowns to be toggled open with "enter"

Note that the `ToolbarItem` component no longer uses the prop `handleClick`, instead relying on pass-through props in order to separate the click event from the the key event.

```jsx
<ToolbarItem onKeyDown={handleKeyDown} onClick={handleClick}>
Log Out
</ToolbarItem>
```

## 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

1 comment on commit 4a20f9b

@atlas-by-wp-engine
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Check out the recent updates to your Atlas environment:

App Environment URL Build
faustjs canary https://hg…wered.com ✅ (logs)

Learn more about building on Atlas in our documentation.

Please sign in to comment.