Skip to content

Commit a086850

Browse files
committed
9-end-functional
1 parent 83b0534 commit a086850

File tree

3 files changed

+2305
-2261
lines changed

3 files changed

+2305
-2261
lines changed

book/9-end-functional/next.config.js

Lines changed: 3 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,4 @@
1-
const withTM = require('next-transpile-modules')([ // eslint-disable-line
2-
'@mui/material',
3-
'@mui/icons-material',
4-
]);
5-
6-
module.exports = withTM({
7-
typescript: {
8-
ignoreBuildErrors: true,
9-
},
1+
module.exports = {
102
poweredByHeader: false,
11-
swcMinify: true,
12-
experimental: {
13-
forceSwcTransforms: true,
14-
},
15-
modularizeImports: {
16-
'@mui/material/?(((\\w*)?/?)*)': {
17-
transform: '@mui/material/{{ matches.[1] }}/{{member}}',
18-
},
19-
'@mui/icons-material/?(((\\w*)?/?)*)': {
20-
transform: '@mui/icons-material/{{ matches.[1] }}/{{member}}',
21-
},
22-
},
23-
});
3+
webpack5: true,
4+
};

book/9-end-functional/package.json

Lines changed: 40 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
"version": "0.0.1",
44
"license": "MIT",
55
"engines": {
6-
"node": "18.15.0",
7-
"yarn": "1.22.19"
6+
"node": ">=18.15.0",
7+
"yarn": ">=1.22.19"
88
},
99
"scripts": {
1010
"dev": "nodemon server/server.js --watch server",
@@ -17,57 +17,57 @@
1717
"coverageDirectory": "./.coverage"
1818
},
1919
"dependencies": {
20-
"@emotion/cache": "^11.11.0",
21-
"@emotion/react": "^11.11.1",
20+
"@emotion/cache": "^11.14.0",
21+
"@emotion/react": "^11.14.0",
2222
"@emotion/server": "^11.11.0",
23-
"@emotion/styled": "^11.11.0",
24-
"@mui/icons-material": "^5.14.14",
25-
"@mui/material": "^5.14.14",
26-
"@octokit/oauth-authorization-url": "^6.0.2",
27-
"@octokit/rest": "^20.0.2",
28-
"@stripe/stripe-js": "^2.1.9",
29-
"aws-sdk": "^2.1476.0",
30-
"compression": "^1.7.4",
23+
"@emotion/styled": "^11.14.0",
24+
"@mui/icons-material": "^6.4.8",
25+
"@mui/material": "^6.4.8",
26+
"@octokit/oauth-authorization-url": "^7.1.1",
27+
"@octokit/rest": "^21.1.1",
28+
"@stripe/stripe-js": "^6.1.0",
29+
"aws-sdk": "^2.1692.0",
30+
"compression": "^1.8.0",
3131
"connect-mongo": "^5.1.0",
32-
"dotenv": "^16.3.1",
33-
"express": "^4.18.2",
34-
"express-session": "^1.17.1",
32+
"dotenv": "^16.4.7",
33+
"express": "^4.21.2",
34+
"express-session": "^1.18.1",
3535
"front-matter": "^4.0.2",
3636
"he": "^1.2.0",
37-
"helmet": "^7.0.0",
38-
"highlight.js": "^11.9.0",
37+
"helmet": "^8.1.0",
38+
"highlight.js": "^11.11.1",
3939
"isomorphic-unfetch": "^4.0.2",
4040
"lodash": "^4.17.21",
41-
"marked": "^9.1.2",
42-
"mongodb": "^6.1.0",
43-
"mongoose": "^7.6.3",
44-
"next": "^13.5.6",
41+
"marked": "^15.0.7",
42+
"mongodb": "^6.15.0",
43+
"mongoose": "^8.12.1",
44+
"next": "^15.2.3",
4545
"next-transpile-modules": "^10.0.1",
46-
"node-fetch": "2.6.7",
46+
"node-fetch": "2",
4747
"nprogress": "^0.2.0",
48-
"passport": "^0.6.0",
48+
"passport": "^0.7.0",
4949
"passport-google-oauth": "^2.0.0",
5050
"prop-types": "^15.7.2",
51-
"qs": "^6.11.2",
52-
"react": "^18.2.0",
53-
"react-dom": "^18.2.0",
54-
"sitemap": "^7.1.1",
55-
"stripe": "^14.1.0",
56-
"winston": "^3.11.0"
51+
"qs": "^6.14.0",
52+
"react": "^19.0.0",
53+
"react-dom": "^19.0.0",
54+
"sitemap": "^8.0.0",
55+
"stripe": "^17.7.0",
56+
"winston": "^3.17.0"
5757
},
5858
"devDependencies": {
59-
"@babel/core": "^7.23.2",
60-
"@babel/eslint-parser": "^7.22.15",
61-
"eslint": "^8.51.0",
59+
"@babel/core": "^7.26.10",
60+
"@babel/eslint-parser": "^7.26.10",
61+
"eslint": "^9.22.0",
6262
"eslint-config-airbnb": "^19.0.4",
63-
"eslint-config-prettier": "^9.0.0",
64-
"eslint-plugin-import": "^2.28.1",
65-
"eslint-plugin-jsx-a11y": "^6.7.0",
66-
"eslint-plugin-prettier": "^5.0.1",
67-
"eslint-plugin-react": "^7.33.2",
68-
"eslint-plugin-react-hooks": "^4.6.0",
63+
"eslint-config-prettier": "^10.1.1",
64+
"eslint-plugin-import": "^2.31.0",
65+
"eslint-plugin-jsx-a11y": "^6.10.2",
66+
"eslint-plugin-prettier": "^5.2.3",
67+
"eslint-plugin-react": "^7.37.4",
68+
"eslint-plugin-react-hooks": "^5.2.0",
6969
"jest": "^29.7.0",
70-
"nodemon": "^3.0.1",
71-
"prettier": "^3.0.3"
70+
"nodemon": "^3.1.9",
71+
"prettier": "^3.5.3"
7272
}
7373
}

0 commit comments

Comments
 (0)