Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[chore]: merge canary to main #1995

Draft
wants to merge 100 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
100 commits
Select commit Hold shift + click to select a range
6fad7d0
Add `continue-on-error` for next bundle workflow for outside contribu…
blakewilson Jan 30, 2024
c6dedc0
Chore: Update Block Support (#1759)
theodesp Jan 31, 2024
f6c6b0c
fix: (#1729) Make attributes field optional (#1730)
traed Feb 7, 2024
f4ae2eb
Update @apollo/experimental-nextjs-app-support to v0.8.0-NEW (#1796)
theodesp Feb 9, 2024
d533780
Version Packages (#1790)
github-actions[bot] Feb 12, 2024
ce3d559
Update our issue templates (#1800)
blakewilson Feb 12, 2024
b8e044b
Update GitHub Actions (#1798)
mindctrl Feb 12, 2024
4cba024
1761: Fix preview issue due to samesite status (#1799)
matthewguywright Feb 14, 2024
572b253
Detect NEXT_PUBLIC_WORDPRESS_URL using wpengine.com TLD and recommend…
blakewilson Feb 14, 2024
47f6bd0
Merl 1749 faust should warn if the secret key is invalid (#1777)
TeresaGobble Feb 15, 2024
b09ac63
chore(deps-dev): Bump undici from 5.26.3 to 5.28.3 (#1805)
dependabot[bot] Feb 19, 2024
f528ccd
chore(deps-dev): Bump ip from 1.1.8 to 1.1.9 (#1808)
dependabot[bot] Feb 21, 2024
aad3bbc
16: update lowest version of node to 18 since 16 is deprecating (#1806)
matthewguywright Feb 21, 2024
0b0a88e
1793: plugin system - take out of experimental (#1807)
matthewguywright Feb 21, 2024
feed823
chore: Update .nvmrc to allow v18 upgrades (#1821)
mindctrl Feb 28, 2024
33561b6
chore: fix syntax error in GitHub workflows (#1822)
mindctrl Feb 28, 2024
ad2fe8f
Fix `experimentalPlugins` -> `plugins` tests (#1823)
blakewilson Feb 28, 2024
2b3da86
Version Packages (#1802)
github-actions[bot] Feb 28, 2024
0759959
Only request token endpoint initially, then use a cookie to determine…
blakewilson Feb 28, 2024
259d926
Add next-secure-headers in example projects (#1803)
theodesp Mar 1, 2024
4724719
Feature: Error when NEXT_PUBLIC_WORDPRESS_URL same as headless site U…
theodesp Mar 7, 2024
9a43d50
Feat: Added Error Logging Apollo Link (#1832)
theodesp Mar 11, 2024
aee31a5
update @experimental-app-router for handle trailing slash config (#1815)
fx69005 Mar 11, 2024
42ded80
Bug Fix: Pass Next server to tokenHandler to fix build issues with ex…
theodesp Mar 12, 2024
50c30cb
TOOLBAR LOGOUT LOOP: init commit and test (#1828)
matthewguywright Mar 12, 2024
8e1b5db
Toolbar should respect show avatars setting in wp (#1845)
TeresaGobble Mar 14, 2024
a54ce69
Do not require `plugins`, `experimentalPlugins` in the FaustConfig ty…
blakewilson Mar 14, 2024
16b2384
Added multiple queries to interface for FaustTemplate (#1847)
TeresaGobble Mar 15, 2024
dcf5395
chore(deps-dev): Bump follow-redirects from 1.15.4 to 1.15.6 (#1852)
dependabot[bot] Mar 18, 2024
b4c9556
chore(deps): Bump follow-redirects in /internal/legacy.faustjs.org (#…
dependabot[bot] Mar 18, 2024
8dc9640
Docs: Update Development Guide 2024 (#1848)
theodesp Mar 20, 2024
daae7cd
Changed 'tested up to' in readme.txt to 6.5 (#1857)
TeresaGobble Mar 22, 2024
ba1c7eb
chore(deps): Bump webpack-dev-middleware in /internal/legacy.faustjs.…
dependabot[bot] Mar 25, 2024
cbcf1f8
chore(deps-dev): Bump webpack-dev-middleware from 5.3.3 to 5.3.4 (#1860)
dependabot[bot] Mar 25, 2024
1ec28ea
chore(deps-dev): Bump express from 4.18.2 to 4.19.2 (#1866)
dependabot[bot] Mar 29, 2024
71ca18f
chore(deps): Bump express in /internal/legacy.faustjs.org (#1867)
dependabot[bot] Mar 29, 2024
352c00e
Fix: Fix issue with errorLoggingLink (#1869)
theodesp Apr 2, 2024
f4b415f
Revert "Only request token endpoint initially, then use a cookie to d…
theodesp Apr 2, 2024
002687f
Version Packages (#1824)
github-actions[bot] Apr 2, 2024
f946d7a
Feat: Output faust version in dev|build|start commands. (#1874)
theodesp Apr 12, 2024
bced682
Load plugin textdomain (#1877)
ChrisWiegman Apr 15, 2024
a478997
feat: Set `enable_image_source` to on by default (#1879)
ChrisWiegman Apr 17, 2024
4954452
chore(deps-dev): Bump undici from 5.28.3 to 5.28.4 (#1871)
dependabot[bot] Apr 18, 2024
3c78b75
Update Next.js in Legacy Faust (#1886)
ChrisWiegman May 14, 2024
ec6f4e9
Version Packages (#1876)
github-actions[bot] May 14, 2024
6e5ef28
Update plugin unit testing with more WordPress versions and Nightly W…
ChrisWiegman May 16, 2024
c28624c
Improve domain_match Function and add test cases (#1889)
theodesp May 17, 2024
2ff9be6
Version Packages (#1890)
github-actions[bot] May 29, 2024
2c581ad
Update PHPCS and coding standards to the current version. (#1894)
ChrisWiegman May 30, 2024
18f2df7
Update default packages in example project (#1896)
ChrisWiegman Jun 4, 2024
456c401
Adds the `react-refresh` package to avoid having to manually do so. (…
ChrisWiegman Jun 5, 2024
f0543e0
[Bug] Add missing textarea control handler. (#1898)
theodesp Jun 5, 2024
84076cd
Bug: Fixes issue with blocks not showing in the block editor when run…
theodesp Jun 7, 2024
105afd4
chore(deps): Bump braces from 3.0.2 to 3.0.3 (#1910)
dependabot[bot] Jun 17, 2024
989cccd
chore(deps): Bump braces in /internal/legacy.faustjs.org (#1912)
dependabot[bot] Jun 17, 2024
e2af46c
chore(deps-dev): Bump ws from 7.5.9 to 7.5.10 (#1913)
dependabot[bot] Jun 18, 2024
beb546a
Fix: Ensure Accurate Detection of WordPress Previews via URL Query Pa…
theodesp Jun 20, 2024
1f089c9
Create CODE_OF_CONDUCT.md (#1908)
colorful-tones Jun 20, 2024
2f8dc9d
test(gha): include node 22 in github actions pipeline (#1915)
theodesp Jun 24, 2024
166b6be
Version Packages (#1902)
github-actions[bot] Jun 25, 2024
55c4e9f
security(ws): update ws vulnerable version (#1917)
theodesp Jul 17, 2024
9b4ed77
fix: update ws (#1921)
theodesp Jul 29, 2024
631b81d
chore(deps): Bump fast-xml-parser from 4.3.2 to 4.4.1 (#1922)
dependabot[bot] Jul 30, 2024
9ff1df8
fix: only remove non-faust Nav Menu locations if the user opts-in to …
jasonbahl Aug 8, 2024
514481c
chore(deps): Bump axios to 1.7.4 (#1930)
theodesp Aug 14, 2024
53bb9a6
chore: update dependencies to better support local development (#1929)
jasonbahl Aug 14, 2024
2b7949b
Introduce configurable "sitemap index path" for enhanced plugin compa…
josephfusco Aug 21, 2024
56dd90b
chore: add "Local Development" guide for `@faustwp/core` (#1934)
jasonbahl Aug 21, 2024
031c239
fix: ssr not always working (#1939)
jasonbahl Aug 22, 2024
8a42375
Version Packages (#1928)
github-actions[bot] Aug 26, 2024
5ecc68b
Update CODEOWNERS (#1944)
josephfusco Aug 26, 2024
51dbd01
chore(deps): Bump micromatch in /internal/legacy.faustjs.org (#1945)
dependabot[bot] Aug 28, 2024
51a013c
chore(deps): Bump micromatch from 4.0.5 to 4.0.8 (#1948)
dependabot[bot] Aug 28, 2024
e80d80a
Update "tested up to" version for faustwp WordPress plugin. (#1949)
josephfusco Sep 4, 2024
90547e1
Version Packages (#1950)
github-actions[bot] Sep 4, 2024
908749a
security: fix path-to-regexp=8.1.0 (#1951)
theodesp Sep 19, 2024
c5b41d3
chore(deps): Bump body-parser and express (#1960)
dependabot[bot] Sep 20, 2024
95a7322
chore(deps): Bump serve-static and express (#1959)
dependabot[bot] Sep 20, 2024
381c9ba
chore(deps): Bump send and express in /internal/legacy.faustjs.org (#…
dependabot[bot] Sep 20, 2024
c98996a
chore(deps): Bump webpack in /internal/legacy.faustjs.org (#1947)
dependabot[bot] Sep 20, 2024
011cd93
feat: Add PluginUpdater to Support Plugin Updates from Custom API (#1…
josephfusco Oct 3, 2024
7e71f15
chore(deps): Bump cookie from 0.4.2 to 0.7.0 (#1969)
dependabot[bot] Oct 14, 2024
aeb6916
chore(deps): Bump cookie and express in /internal/legacy.faustjs.org …
dependabot[bot] Oct 14, 2024
942b7c1
Version Packages (#1965)
github-actions[bot] Oct 15, 2024
745c89c
deps: update path-to-regexp=6.3.0 (#1971)
theodesp Oct 16, 2024
9011492
fix: cannot query field "align" on type "CoreQuoteAttributes"' (#1946)
jasonbahl Oct 18, 2024
6dc0b21
bump: http-proxy-middleware to 2.0.7 (#1979)
theodesp Oct 30, 2024
de32574
ci: upload plugin zip to releases workflow step (#1974)
theodesp Oct 30, 2024
e22b87d
feat: separate legacy example projects (#1977)
theodesp Nov 4, 2024
e17d318
Version Packages (#1975)
github-actions[bot] Nov 7, 2024
139a1ce
chore: update deps (#1982)
theodesp Nov 15, 2024
8570324
Create SECURITY.md (#1909)
colorful-tones Nov 15, 2024
8d9eaa4
chore(deps): Bump cross-spawn in /internal/legacy.faustjs.org (#1990)
dependabot[bot] Nov 23, 2024
9eb8068
chore(deps): Bump dawidd6/action-download-artifact in /.github/workfl…
dependabot[bot] Nov 25, 2024
25cf3a0
security: Fix vulnerability in cross-spawn <7.0.5 (#1987)
theodesp Nov 25, 2024
b098fcb
chore: update links legacy documentation and packages (#1992)
josephfusco Nov 26, 2024
dc2b753
chore: remove legacy code (#1993)
josephfusco Nov 27, 2024
5457479
[BUG-1919] experimental app router updates to next 15 and react 19 (#…
CesarBenavides777 Dec 3, 2024
28f1f83
Adding a filter for optional change of public redirect status codes (…
infn8 Dec 4, 2024
bdd3a16
Updated symfony/process to ^6.4.14 to resolve security vulnerability …
josephfusco Dec 10, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
6 changes: 1 addition & 5 deletions .changeset/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
"changelog": "@changesets/cli/changelog",
"commit": false,
"linked": [
["@faustjs/core", "@faustjs/next", "@faustjs/react"],
["@faustwp/core", "@faustwp/cli"]
],
"privatePackages": {
Expand All @@ -14,10 +13,7 @@
"baseBranch": "canary",
"updateInternalDependencies": "patch",
"ignore": [
"@faustjs/next-headless-getting-started",
"@faustwp/getting-started-example",
"@faustwp/app-router-example",
"@faustwp/block-support-example"
"@faustwp/getting-started-example"
],
"___experimentalUnsafeOptions_WILL_CHANGE_IN_PATCH": {
"onlyUpdatePeerDependentsWhenOutOfRange": true
Expand Down
5 changes: 5 additions & 0 deletions .changeset/tasty-walls-thank.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@faustwp/wordpress-plugin': minor
---

Added new filter `faustwp_public_redirect_status_code`, allowing WordPress plugins and themes to choose the [HTTP status code](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status) to use when generating redirects when the [enable public route redirects](https://faustjs.org/docs/faustwp/settings#enabling-public-route-redirects) setting is active.
39 changes: 39 additions & 0 deletions .changeset/three-singers-roll.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
---
'@faustwp/experimental-app-router': minor
---

---

## '@faustwp/experimental-app-router': minor

Update @faustwp/experimental-app-router to account for next 15 changes to cookies and update NextResponse import

Notable changes:

- Adding await to all cookies requests as per Next documentation: https://nextjs.org/docs/app/api-reference/functions/cookies

```
import { cookies } from 'next/headers'

export default async function Page() {
const cookieStore = await cookies()
const theme = cookieStore.get('theme')
return '...'
}
```

- Files changed:

- packages/experimental-app-router/src/server-actions/logoutAction.ts
- packages/experimental-app-router/src/server-actions/utils/setRefreshToken.ts
- packages/experimental-app-router/src/server/auth/fetchTokens.ts
- packages/experimental-app-router/src/server/routeHandler/tokenHandler.ts

- Updated Next App Router example to use latest next version and React 19 RC.
- Updated Example Login form using React 19s useActionState
- Updated Awaiting of params for Next 15
- Files Changed:
- examples/next/app-router/app/login/page.tsx
- examples/next/app-router/package.json
- examples/next/app-router/[slug]hasPreviewProps.ts (made async)
- examples/next/app-router/[slug]page.tsx
4 changes: 4 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@ module.exports = {
// e.g. "@typescript-eslint/explicit-function-return-type": "off",
'@typescript-eslint/unbound-method': 0,
'@typescript-eslint/no-explicit-any': 0,
'@typescript-eslint/no-unsafe-call': 0,
'@typescript-eslint/no-unsafe-return': 0,
'@typescript-eslint/no-unsafe-argument': 0,
'@typescript-eslint/restrict-template-expressions': 0,
'no-void': 0,
'import/named': 0,
'import/no-extraneous-dependencies': [
Expand Down
4 changes: 2 additions & 2 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Code Owners
* @wpengine/merlin
* @wpengine/headless-open-source

# jira:[18721] is where issues related to this repository should be ticketed
# jira:[18721] is where issues related to this repository should be ticketed
48 changes: 0 additions & 48 deletions .github/ISSUE_TEMPLATE/bug_report.md

This file was deleted.

66 changes: 66 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
name: Bug report
description: Report a bug in Faust
body:
- type: markdown
attributes:
value: >-
Thank you for taking the time to report a possible bug!

Please remember, a bug report is _not the place to ask questions_. You can
use [Discord](https://discord.gg/J2khkF9XYK) for that, or start a topic in [GitHub
Discussions](https://github.com/wpengine/faustjs/discussions).
- type: textarea
attributes:
label: Description
description: >-
Please write a brief description of the bug, including what you expected and what actually happened.
validations:
required: true
- type: textarea
attributes:
label: Steps to reproduce
description: >-
Please list all the steps needed to reproduce the bug in an *isolated* way (e.g. a clonable GitHub repository, or a Faust.js snippet that works on a clean environment ).
placeholder: >-
1. Clone the `faustwp-getting-started` example project
2. Navigate to the `wp-templates/single.js` Faust template
3. Result show X but should be Y
validations:
required: true
- type: textarea
attributes:
label: Additional context
description: >-
Add any other context about the problem here, such as screenshots, error logs, etc.
- type: input
attributes:
label: "@faustwp/core Version"
validations:
required: true
- type: input
attributes:
label: "@faustwp/cli Version"
validations:
required: true
- type: input
attributes:
label: FaustWP Plugin Version
validations:
required: true
- type: input
attributes:
label: WordPress Version
validations:
required: true
- type: textarea
attributes:
label: Additional environment details
description: Additional Faust.js packages and their versions (@faustwp/blocks, @faustwp/experimental-app-router, etc), PHP version, Hosting Platform, etc.
- type: checkboxes
attributes:
label: Please confirm that you have searched existing issues in the repo.
description: >-
You can do this by searching https://github.com/wpengine/faustjs/issues.
options:
- label: 'Yes'
required: true
8 changes: 8 additions & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
blank_issues_enabled: false
contact_links:
- name: General Help Request
url: https://github.com/wpengine/faustjs/discussions
about: For general questions and help requests, create a new topic in GitHub Discussions
- name: Headless WordPress Discord Community
url: https://discord.gg/J2khkF9XYK
about: Ask questions, discuss features, and meet new people in the Headless WordPress Discord community
43 changes: 31 additions & 12 deletions .github/actions/release-plugin/action.yml
Original file line number Diff line number Diff line change
@@ -1,22 +1,41 @@
name: 'WordPress Plugin Deploy'
description: 'Deploy to the WordPress Plugin Repository'
author: '10up'
name: 'Plugin Deploy'
description: 'Upload zip file to releases tab'
branding:
icon: 'upload-cloud'
color: 'blue'
inputs:
generate-zip:
description: 'Generate package zip file?'
default: false

outputs:
zip-path:
description: 'Path to zip file'
value: ${{ steps.deploy.outputs.zip-path }}
value: ${{ steps.zip.outputs.zip-path }}

runs:
using: 'composite'
steps:
- id: deploy
env:
INPUT_GENERATE_ZIP: ${{ inputs.generate-zip }}
run: ${{ github.action_path }}/deploy.sh
- id: prepare
name: Prepare Environment
run: |
sudo apt-get update && sudo apt-get install zip rsync -y
- id: zip
name: Zip Plugin (optional)
run: |
# Create dist folder and copy files while excluding .distignore items
mkdir -p dist
rsync -av --exclude-from="${{ env.PLUGIN_DIR }}/.distignore" ${{ env.PLUGIN_DIR }}/ dist/${{ env.SLUG }}

# Zip the plugin directory
zip_file="faustwp-${{ env.VERSION }}.zip"
zip -r $zip_file dist/${{ env.SLUG }}

# Save zip path to output
echo "::set-output name=zip-path::$PWD/$zip_file"
shell: bash

- id: upload
name: Upload Zip File to Release
uses: softprops/action-gh-release@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
files: ${{ steps.zip.outputs.zip-path }} # Updated to use zip-path output
asset_name: faustwp-${{ env.VERSION }}.zip # Set asset name to the correct versioned name
overwrite: true
108 changes: 0 additions & 108 deletions .github/actions/release-plugin/deploy.sh

This file was deleted.

12 changes: 0 additions & 12 deletions .github/workflows/audit-dependencies.yml

This file was deleted.

Loading
Loading