Skip to content

Commit

Permalink
Update changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
tatethurston committed Oct 6, 2022
1 parent b655d27 commit 2df8474
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

## 0.1.3

- Fix: [pageExtensions](https://nextjs.org/docs/api-reference/next.config.js/custom-page-extensions) didn't support extensions containing one or more dots
- `nextjs-routes` [pageExtensions](https://nextjs.org/docs/api-reference/next.config.js/custom-page-extensions) has been updated to respect multiple extensions such as `.page.tsx`. In `0.1.2`, only single extensions `.tsx` were respected. This is now identical behavior to Next.js.

## 0.1.2

Expand Down
2 changes: 1 addition & 1 deletion e2e/package-lock.json

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

7 changes: 6 additions & 1 deletion src/core.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,12 @@ describe("route generation", () => {
});

it("configured", () => {
findFilesMock.mockReturnValueOnce(["pages/404.ts", "pages/index.md", "pages/foo/index.page.tsx", "pages/foo/index.test.tsx"]);
findFilesMock.mockReturnValueOnce([
"pages/404.ts",
"pages/index.md",
"pages/foo/index.page.tsx",
"pages/foo/index.test.tsx",
]);
writeNextjsRoutes({
pagesDirectory: "pages",
pageExtensions: ["ts", "md", "page.tsx"],
Expand Down

0 comments on commit 2df8474

Please sign in to comment.