Skip to content

Commit

Permalink
Merge branch 'main' into xru/support-link-text
Browse files Browse the repository at this point in the history
  • Loading branch information
angeloashmore committed Aug 29, 2024
2 parents bdc244e + e97fcca commit 7681993
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 11 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@

All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.

## [1.6.0](https://github.com/prismicio/prismic-next/compare/v1.5.0...v1.6.0) (2024-05-30)


### Features

* Support Next 15 & React 19 ([864bfed](https://github.com/prismicio/prismic-next/commit/864bfedb14a31401ae6ce2e8799767d217e2562d))

## [1.5.0](https://github.com/prismicio/prismic-next/compare/v1.4.0...v1.5.0) (2023-11-16)


Expand Down
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@prismicio/next",
"version": "1.5.0",
"version": "1.6.0",
"description": "Helpers to integrate Prismic into Next.js apps",
"keywords": [
"typescript",
Expand Down Expand Up @@ -91,8 +91,8 @@
},
"peerDependencies": {
"@prismicio/client": "^6 || ^7",
"next": ">=13.4.5",
"react": "^18"
"next": "^13.4.5 || ^14 || ^15.0.0-rc.0",
"react": "^18 || ^19.0.0-rc.0"
},
"engines": {
"node": ">=14.15.0"
Expand Down
6 changes: 2 additions & 4 deletions test/createLocaleRedirect.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ it("allows for custom locale codes", async () => {
acceptLanguage: "fr-fr,fr;q=0.5",
}),
localeOverrides: {
"fr-fr": "custom-locale",
"fr-fr": "jp",
},
};

Expand All @@ -132,9 +132,7 @@ it("allows for custom locale codes", async () => {

const redirect = await createLocaleRedirect(config);

expect(redirect?.headers.get("location")).toBe(
"https://example.com/custom-locale/foo",
);
expect(redirect?.headers.get("location")).toBe("https://example.com/jp/foo");
expect(redirect?.status).toBe(302);
});

Expand Down

0 comments on commit 7681993

Please sign in to comment.