Skip to content

Commit 7c2abd0

Browse files
authored
Release 0.9.0 (#421)
* make: version 0.9.0 * fix: linting issue
1 parent 074b612 commit 7c2abd0

File tree

7 files changed

+16
-14
lines changed

7 files changed

+16
-14
lines changed

examples/next/getting-started/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
"wpe-build": "next build"
1313
},
1414
"dependencies": {
15-
"@faustjs/core": "^0.8.0",
16-
"@faustjs/next": "^0.8.0",
15+
"@faustjs/core": "^0.9.0",
16+
"@faustjs/next": "^0.9.0",
1717
"next": "^11.1.0",
1818
"normalize.css": "^8.0.1",
1919
"react": "^17.0.2",

examples/react/getting-started/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
"@types/react": "^17.0.11",
88
"@types/react-dom": "^17.0.8",
99
"@types/react-router-dom": "^5.1.7",
10-
"@faustjs/core": "^0.8.0",
11-
"@faustjs/react": "^0.8.0",
10+
"@faustjs/core": "^0.9.0",
11+
"@faustjs/react": "^0.9.0",
1212
"dotenv": "^10.0.0",
1313
"express": "^4.17.1",
1414
"normalize.css": "^8.0.1",

examples/react/getting-started/src/faust.config.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
1-
require('dotenv').config();
2-
const { headlessConfig } = require('@faustjs/core');
1+
import dotenv from 'dotenv';
2+
import { headlessConfig } from '@faustjs/core';
3+
4+
dotenv.config();
35

46
/**
57
* @type {import("@faustjs/core").HeadlessConfig}
68
*/
7-
module.exports = headlessConfig({
9+
export default headlessConfig({
810
wpUrl: process.env.REACT_APP_WORDPRESS_URL || '',
911
apiUrl: process.env.REACT_APP_API_URL,
1012
apiClientSecret: process.env.WP_HEADLESS_SECRET,

packages/core/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@faustjs/core",
3-
"version": "0.8.0",
3+
"version": "0.9.0",
44
"description": "This module helps you use WordPress as a Headless CMS",
55
"main": "dist/cjs/index.js",
66
"module": "dist/mjs/index.js",

packages/core/src/api/client/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export interface RequestContext {
3232
export function createQueryFetcher(
3333
context?: IncomingMessage,
3434
applyRequestContext?: ClientConfig['applyRequestContext'],
35-
) {
35+
): QueryFetcher {
3636
return async function (query, variables): Promise<any> {
3737
const url = getGqlUrl();
3838
const token = getAccessToken({

packages/next/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@faustjs/next",
3-
"version": "0.8.0",
3+
"version": "0.9.0",
44
"description": "This module helps you use WordPress as a Headless CMS with Next.js",
55
"main": "dist/cjs/index.js",
66
"module": "dist/mjs/index.js",
@@ -81,8 +81,8 @@
8181
"dependencies": {
8282
"@gqty/logger": "^1.0.2",
8383
"@gqty/react": "^1.1.0",
84-
"@faustjs/core": "^0.8.0",
85-
"@faustjs/react": "^0.8.0",
84+
"@faustjs/core": "^0.9.0",
85+
"@faustjs/react": "^0.9.0",
8686
"graphql": ">=15.5",
8787
"lodash": "^4.17.21"
8888
}

packages/react/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@faustjs/react",
3-
"version": "0.8.0",
3+
"version": "0.9.0",
44
"description": "This module helps you use WordPress as a Headless CMS with React",
55
"main": "dist/cjs/index.js",
66
"module": "dist/mjs/index.js",
@@ -76,7 +76,7 @@
7676
},
7777
"dependencies": {
7878
"@gqty/react": "^1.1.0",
79-
"@faustjs/core": "^0.8.0",
79+
"@faustjs/core": "^0.9.0",
8080
"gqty": "^1.0.3",
8181
"graphql": ">=15.5",
8282
"lodash": "^4.17.21"

0 commit comments

Comments
 (0)