Skip to content

Commit 933f485

Browse files
dayhaysoosNick DeJesus
and
Nick DeJesus
authored
Ssr release (#338)
* support ssr * remove bundle script from husky * update globals on rollup config * attempt to fix timestamp stuff * timestamp stuff * add bundling to testing script * update version for next/alpha release * update all packages to use new alpha * finally fix next js warning * update test to exclude timestamp * update to latest version --------- Co-authored-by: Nick DeJesus <nickdejesus@macbook-pro-5.myfiosgateway.com>
1 parent 758f28c commit 933f485

File tree

15 files changed

+5513
-4841
lines changed

15 files changed

+5513
-4841
lines changed

.husky/pre-commit

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
#!/usr/bin/env sh
22
. "$(dirname -- "$0")/_/husky.sh"
33

4-
pnpm bundle
54
pnpm test
65
./node_modules/.bin/lint-staged

docs/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@
1414
"@docusaurus/core": "2.3.1",
1515
"@docusaurus/preset-classic": "2.3.1",
1616
"@mdx-js/react": "^1.6.22",
17-
"clsx": "^1.1.1",
17+
"clsx": "^1.2.1",
1818
"prism-react-renderer": "^1.3.5",
1919
"react": "^17.0.2",
2020
"react-dom": "^17.0.2",
21-
"use-shopping-cart": "3.1.0"
21+
"use-shopping-cart": "3.2.0"
2222
},
2323
"browserslist": {
2424
"production": [

examples/gatsby/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"react": "^17.0.2",
2020
"react-dom": "^17.0.2",
2121
"react-helmet": "^5.2.1",
22-
"use-shopping-cart": "workspace:^3.1.4"
22+
"use-shopping-cart": "3.2.0-alpha.1"
2323
},
2424
"keywords": [
2525
"gatsby"

examples/nextjs-app-router/package.json

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,17 @@
99
"lint": "next lint"
1010
},
1111
"dependencies": {
12-
"@stripe/stripe-js": "^1.14.0",
12+
"@stripe/stripe-js": "^1.54.2",
1313
"autoprefixer": "10.4.14",
1414
"eslint": "8.40.0",
1515
"eslint-config-next": "13.4.1",
16-
"next": "13.4.1",
16+
"next": "14.0.4",
1717
"postcss": "8.4.23",
1818
"react": "18.2.0",
1919
"react-dom": "18.2.0",
20-
"stripe": "^13.10.0",
20+
"stripe": "^13.11.0",
2121
"tailwindcss": "3.3.2",
22-
"use-shopping-cart": "3.2.0-alpha.0"
22+
"use-shopping-cart": "workspace:3.2.0-alpha.1"
2323
}
2424
}
25+

examples/nextjs/package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@
1313
"next": "13.1.6",
1414
"react": "18.2.0",
1515
"react-dom": "18.2.0",
16-
"use-shopping-cart": "workspace:^3.1.5"
16+
"use-shopping-cart": "workspace:3.2.0-alpha.1"
1717
},
1818
"devDependencies": {
19-
"autoprefixer": "^10.4.13",
20-
"husky": "^8.0.0",
21-
"postcss": "^8.4.21",
22-
"tailwindcss": "^3.2.6"
19+
"autoprefixer": "^10.4.16",
20+
"husky": "^8.0.3",
21+
"postcss": "^8.4.31",
22+
"tailwindcss": "^3.3.5"
2323
}
2424
}

examples/typescript-usage/package.json

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,20 @@
33
"version": "0.1.0",
44
"private": true,
55
"dependencies": {
6-
"@netlify/functions": "^1.0.0",
7-
"@testing-library/jest-dom": "^5.11.4",
8-
"@testing-library/react": "^11.1.0",
9-
"@testing-library/user-event": "^12.1.10",
10-
"@types/jest": "^26.0.15",
11-
"@types/node": "^12.0.0",
12-
"@types/react": "^17.0.0",
13-
"@types/react-dom": "^17.0.0",
6+
"@netlify/functions": "^1.6.0",
7+
"@testing-library/jest-dom": "^5.17.0",
8+
"@testing-library/react": "^11.2.7",
9+
"@testing-library/user-event": "^12.8.3",
10+
"@types/jest": "^26.0.24",
11+
"@types/node": "^12.20.55",
12+
"@types/react": "^17.0.71",
13+
"@types/react-dom": "^17.0.25",
1414
"react": "^17.0.2",
1515
"react-dom": "^17.0.2",
1616
"react-scripts": "4.0.3",
17-
"typescript": "^4.1.2",
18-
"use-shopping-cart": "workspace:^3.1.4",
19-
"web-vitals": "^1.0.1"
17+
"typescript": "^4.9.5",
18+
"use-shopping-cart": "workspace:3.2.0-alpha.1",
19+
"web-vitals": "^1.1.2"
2020
},
2121
"scripts": {
2222
"start": "react-scripts start",
@@ -43,10 +43,10 @@
4343
]
4444
},
4545
"devDependencies": {
46-
"@babel/plugin-syntax-jsx": "^7.14.5",
47-
"@babel/preset-env": "^7.16.11",
48-
"@babel/preset-react": "^7.14.5",
49-
"@babel/preset-typescript": "^7.16.7",
50-
"netlify-lambda": "^2.0.15"
46+
"@babel/plugin-syntax-jsx": "^7.23.3",
47+
"@babel/preset-env": "^7.23.5",
48+
"@babel/preset-react": "^7.23.3",
49+
"@babel/preset-typescript": "^7.23.3",
50+
"netlify-lambda": "^2.0.16"
5151
}
5252
}

examples/umd/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "use-shopping-cart-umd",
33
"version": "1.0.0",
44
"devDependencies": {
5-
"koa": "^2.13.0",
5+
"koa": "^2.14.2",
66
"serve": "^11.3.2",
77
"stream-replace": "^1.0.0"
88
},
@@ -12,7 +12,7 @@
1212
},
1313
"dependencies": {
1414
"clipboardy": "^2.3.0",
15-
"dotenv": "^8.2.0",
16-
"use-shopping-cart": "workspace:^3.1.4"
15+
"dotenv": "^8.6.0",
16+
"use-shopping-cart": "workspace:3.2.0-alpha.1"
1717
}
1818
}

examples/vite-react/package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@
1111
"dependencies": {
1212
"react": "^18.2.0",
1313
"react-dom": "^18.2.0",
14-
"theme-ui": "^0.15.5",
15-
"use-shopping-cart": "workspace:^3.1.6"
14+
"theme-ui": "^0.15.7",
15+
"use-shopping-cart": "workspace:3.2.0-alpha.1"
1616
},
1717
"devDependencies": {
18-
"@types/react": "^18.0.28",
19-
"@types/react-dom": "^18.0.11",
18+
"@types/react": "^18.2.39",
19+
"@types/react-dom": "^18.2.17",
2020
"@vitejs/plugin-react": "^3.1.0",
21-
"vite": "^4.2.0"
21+
"vite": "^4.5.0"
2222
}
2323
}

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,16 @@
88
"dev:nextjs-app-router": "pnpm run bundle && pnpm --filter nextjs-app-router run dev",
99
"dev:typescript-cra": "pnpm run bundle && pnpm --filter typescript-usage run start",
1010
"dev:docs": "pnpm run bundle && pnpm --filter docs run start",
11-
"test": "pnpm --filter use-shopping-cart run test",
12-
"test:watch": "pnpm --filter use-shopping-cart run test:watch",
11+
"test": "pnpm --filter use-shopping-cart build && pnpm --filter use-shopping-cart run test",
12+
"test:watch": "pnpm --filter use-shopping-cart build && pnpm --filter use-shopping-cart run test:watch",
1313
"build": "pnpm --filter docs run build",
1414
"bundle": "pnpm --filter use-shopping-cart run build",
1515
"publish": "pnpm --filter use-shopping-cart publish"
1616
},
1717
"dependencies": {
1818
"cross-env": "^7.0.3",
1919
"open-cli": "^6.0.1",
20-
"prettier": "^2.8.4"
20+
"prettier": "^2.8.8"
2121
},
2222
"husky": {
2323
"hooks": {
@@ -28,8 +28,8 @@
2828
"*.{js,jsx,.d.ts,ts,tsx,mdx}": "prettier --write"
2929
},
3030
"devDependencies": {
31-
"all-contributors-cli": "^6.24.0",
32-
"eslint": "^8.51.0",
31+
"all-contributors-cli": "^6.26.1",
32+
"eslint": "^8.54.0",
3333
"husky": "^8.0.3",
3434
"lint-staged": "^10.5.4",
3535
"typescript": "^4.9.5",

0 commit comments

Comments
 (0)