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

Redo "Upgrade to Node.js 18" #409

Merged
merged 1 commit into from
Dec 11, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Dockerfile.ci
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:14.16.1-buster-slim
FROM node:18.17.0-buster-slim

COPY . /workspace
WORKDIR /workspace
Expand Down
1 change: 1 addition & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ module.exports = {
".+\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$": `<rootDir>/__mocks__/file-mock.js`,
"@spectrum-css/*": "identity-obj-proxy",
"@adobe/prism-adobe": "identity-obj-proxy",
"^gatsby-page-utils/(.*)$": `gatsby-page-utils/dist/$1`
},
testPathIgnorePatterns: [`node_modules`, `.cache`, `examples`],
transformIgnorePatterns: [`node_modules/(?!(gatsby)/)`],
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"version": "0.1.0",
"author": "Adobe",
"engines": {
"node": ">=14.15.0"
"node": ">=18.17.0"
},
"dependencies": {
"@adobe/gatsby-add-launch-script": "^0.0.5",
Expand Down Expand Up @@ -47,7 +47,7 @@
"gatsby-plugin-svgr-loader": "^0.1.0",
"gatsby-remark-autolink-headers": "^5.1.0",
"gatsby-remark-copy-linked-files": "^5.1.0",
"gatsby-remark-embedder": "^5.0.0",
"gatsby-remark-embedder": "^6.0.0",
"gatsby-remark-external-links": "0.0.4",
"gatsby-remark-images": "^6.1.0",
"gatsby-remark-plantuml-lite": "^0.1.2",
Expand Down
4 changes: 3 additions & 1 deletion src/templates/author.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
import React from "react"
import { graphql, Link } from "gatsby"

export default ({
const Author = ({
data: {
allMarkdownRemark: { edges: postNodes },
},
Expand All @@ -33,6 +33,8 @@ export default ({
</div>
)

export default Author;

export const pageQuery = graphql`
query PostsByAuthorId($authorId: String!) {
allMarkdownRemark(filter: { fields: { authorId: { eq: $authorId } } }) {
Expand Down
5 changes: 4 additions & 1 deletion src/templates/tag.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import React from "react"
import { graphql } from "gatsby"
import Link from "../components/Link"

export default (props) => {
const Tag = (props) => {
const postNodes = props.data.allMarkdownRemark.edges
const tagName = props.pageContext.tagName.slice(1, -1)
return (
Expand All @@ -32,6 +32,9 @@ export default (props) => {
</div>
)
}

export default Tag;

export const pageQuery = graphql`
query PostsByTag($tagName: String!) {
allMarkdownRemark(filter: { frontmatter: { tags: { regex: $tagName } } }) {
Expand Down
Loading
Loading