Skip to content

Commit

Permalink
Release 0.9.0 (#421)
Browse files Browse the repository at this point in the history
* make: version 0.9.0

* fix: linting issue
  • Loading branch information
blakewilson authored Aug 27, 2021
1 parent 074b612 commit 7c2abd0
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 14 deletions.
4 changes: 2 additions & 2 deletions examples/next/getting-started/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
"wpe-build": "next build"
},
"dependencies": {
"@faustjs/core": "^0.8.0",
"@faustjs/next": "^0.8.0",
"@faustjs/core": "^0.9.0",
"@faustjs/next": "^0.9.0",
"next": "^11.1.0",
"normalize.css": "^8.0.1",
"react": "^17.0.2",
Expand Down
4 changes: 2 additions & 2 deletions examples/react/getting-started/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
"@types/react": "^17.0.11",
"@types/react-dom": "^17.0.8",
"@types/react-router-dom": "^5.1.7",
"@faustjs/core": "^0.8.0",
"@faustjs/react": "^0.8.0",
"@faustjs/core": "^0.9.0",
"@faustjs/react": "^0.9.0",
"dotenv": "^10.0.0",
"express": "^4.17.1",
"normalize.css": "^8.0.1",
Expand Down
8 changes: 5 additions & 3 deletions examples/react/getting-started/src/faust.config.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
require('dotenv').config();
const { headlessConfig } = require('@faustjs/core');
import dotenv from 'dotenv';
import { headlessConfig } from '@faustjs/core';

dotenv.config();

/**
* @type {import("@faustjs/core").HeadlessConfig}
*/
module.exports = headlessConfig({
export default headlessConfig({
wpUrl: process.env.REACT_APP_WORDPRESS_URL || '',
apiUrl: process.env.REACT_APP_API_URL,
apiClientSecret: process.env.WP_HEADLESS_SECRET,
Expand Down
2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@faustjs/core",
"version": "0.8.0",
"version": "0.9.0",
"description": "This module helps you use WordPress as a Headless CMS",
"main": "dist/cjs/index.js",
"module": "dist/mjs/index.js",
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/api/client/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export interface RequestContext {
export function createQueryFetcher(
context?: IncomingMessage,
applyRequestContext?: ClientConfig['applyRequestContext'],
) {
): QueryFetcher {
return async function (query, variables): Promise<any> {
const url = getGqlUrl();
const token = getAccessToken({
Expand Down
6 changes: 3 additions & 3 deletions packages/next/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@faustjs/next",
"version": "0.8.0",
"version": "0.9.0",
"description": "This module helps you use WordPress as a Headless CMS with Next.js",
"main": "dist/cjs/index.js",
"module": "dist/mjs/index.js",
Expand Down Expand Up @@ -81,8 +81,8 @@
"dependencies": {
"@gqty/logger": "^1.0.2",
"@gqty/react": "^1.1.0",
"@faustjs/core": "^0.8.0",
"@faustjs/react": "^0.8.0",
"@faustjs/core": "^0.9.0",
"@faustjs/react": "^0.9.0",
"graphql": ">=15.5",
"lodash": "^4.17.21"
}
Expand Down
4 changes: 2 additions & 2 deletions packages/react/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@faustjs/react",
"version": "0.8.0",
"version": "0.9.0",
"description": "This module helps you use WordPress as a Headless CMS with React",
"main": "dist/cjs/index.js",
"module": "dist/mjs/index.js",
Expand Down Expand Up @@ -76,7 +76,7 @@
},
"dependencies": {
"@gqty/react": "^1.1.0",
"@faustjs/core": "^0.8.0",
"@faustjs/core": "^0.9.0",
"gqty": "^1.0.3",
"graphql": ">=15.5",
"lodash": "^4.17.21"
Expand Down

0 comments on commit 7c2abd0

Please sign in to comment.