Skip to content

Commit

Permalink
Merge pull request #408 from adobe/revert-406-node_18
Browse files Browse the repository at this point in the history
Revert "Upgrade to Node.js 18"
  • Loading branch information
solimant authored Dec 11, 2023
2 parents 5a17685 + 152a298 commit ae15ffe
Show file tree
Hide file tree
Showing 6 changed files with 1,622 additions and 3,382 deletions.
2 changes: 1 addition & 1 deletion Dockerfile.ci
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:18.17.0-buster-slim
FROM node:14.16.1-buster-slim

COPY . /workspace
WORKDIR /workspace
Expand Down
1 change: 0 additions & 1 deletion jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ 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": ">=18.17.0"
"node": ">=14.15.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": "^6.0.0",
"gatsby-remark-embedder": "^5.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: 1 addition & 3 deletions 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"

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

export default Author;

export const pageQuery = graphql`
query PostsByAuthorId($authorId: String!) {
allMarkdownRemark(filter: { fields: { authorId: { eq: $authorId } } }) {
Expand Down
5 changes: 1 addition & 4 deletions 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"

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

export default Tag;

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

0 comments on commit ae15ffe

Please sign in to comment.