Skip to content

Commit

Permalink
Ssr release (#338)
Browse files Browse the repository at this point in the history
* 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 <[email protected]>
  • Loading branch information
dayhaysoos and Nick DeJesus authored Jan 1, 2024
1 parent 758f28c commit 933f485
Show file tree
Hide file tree
Showing 15 changed files with 5,513 additions and 4,841 deletions.
1 change: 0 additions & 1 deletion .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

pnpm bundle
pnpm test
./node_modules/.bin/lint-staged
4 changes: 2 additions & 2 deletions docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@
"@docusaurus/core": "2.3.1",
"@docusaurus/preset-classic": "2.3.1",
"@mdx-js/react": "^1.6.22",
"clsx": "^1.1.1",
"clsx": "^1.2.1",
"prism-react-renderer": "^1.3.5",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"use-shopping-cart": "3.1.0"
"use-shopping-cart": "3.2.0"
},
"browserslist": {
"production": [
Expand Down
2 changes: 1 addition & 1 deletion examples/gatsby/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"react": "^17.0.2",
"react-dom": "^17.0.2",
"react-helmet": "^5.2.1",
"use-shopping-cart": "workspace:^3.1.4"
"use-shopping-cart": "3.2.0-alpha.1"
},
"keywords": [
"gatsby"
Expand Down
9 changes: 5 additions & 4 deletions examples/nextjs-app-router/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,17 @@
"lint": "next lint"
},
"dependencies": {
"@stripe/stripe-js": "^1.14.0",
"@stripe/stripe-js": "^1.54.2",
"autoprefixer": "10.4.14",
"eslint": "8.40.0",
"eslint-config-next": "13.4.1",
"next": "13.4.1",
"next": "14.0.4",
"postcss": "8.4.23",
"react": "18.2.0",
"react-dom": "18.2.0",
"stripe": "^13.10.0",
"stripe": "^13.11.0",
"tailwindcss": "3.3.2",
"use-shopping-cart": "3.2.0-alpha.0"
"use-shopping-cart": "workspace:3.2.0-alpha.1"
}
}

10 changes: 5 additions & 5 deletions examples/nextjs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@
"next": "13.1.6",
"react": "18.2.0",
"react-dom": "18.2.0",
"use-shopping-cart": "workspace:^3.1.5"
"use-shopping-cart": "workspace:3.2.0-alpha.1"
},
"devDependencies": {
"autoprefixer": "^10.4.13",
"husky": "^8.0.0",
"postcss": "^8.4.21",
"tailwindcss": "^3.2.6"
"autoprefixer": "^10.4.16",
"husky": "^8.0.3",
"postcss": "^8.4.31",
"tailwindcss": "^3.3.5"
}
}
32 changes: 16 additions & 16 deletions examples/typescript-usage/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,20 @@
"version": "0.1.0",
"private": true,
"dependencies": {
"@netlify/functions": "^1.0.0",
"@testing-library/jest-dom": "^5.11.4",
"@testing-library/react": "^11.1.0",
"@testing-library/user-event": "^12.1.10",
"@types/jest": "^26.0.15",
"@types/node": "^12.0.0",
"@types/react": "^17.0.0",
"@types/react-dom": "^17.0.0",
"@netlify/functions": "^1.6.0",
"@testing-library/jest-dom": "^5.17.0",
"@testing-library/react": "^11.2.7",
"@testing-library/user-event": "^12.8.3",
"@types/jest": "^26.0.24",
"@types/node": "^12.20.55",
"@types/react": "^17.0.71",
"@types/react-dom": "^17.0.25",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"react-scripts": "4.0.3",
"typescript": "^4.1.2",
"use-shopping-cart": "workspace:^3.1.4",
"web-vitals": "^1.0.1"
"typescript": "^4.9.5",
"use-shopping-cart": "workspace:3.2.0-alpha.1",
"web-vitals": "^1.1.2"
},
"scripts": {
"start": "react-scripts start",
Expand All @@ -43,10 +43,10 @@
]
},
"devDependencies": {
"@babel/plugin-syntax-jsx": "^7.14.5",
"@babel/preset-env": "^7.16.11",
"@babel/preset-react": "^7.14.5",
"@babel/preset-typescript": "^7.16.7",
"netlify-lambda": "^2.0.15"
"@babel/plugin-syntax-jsx": "^7.23.3",
"@babel/preset-env": "^7.23.5",
"@babel/preset-react": "^7.23.3",
"@babel/preset-typescript": "^7.23.3",
"netlify-lambda": "^2.0.16"
}
}
6 changes: 3 additions & 3 deletions examples/umd/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "use-shopping-cart-umd",
"version": "1.0.0",
"devDependencies": {
"koa": "^2.13.0",
"koa": "^2.14.2",
"serve": "^11.3.2",
"stream-replace": "^1.0.0"
},
Expand All @@ -12,7 +12,7 @@
},
"dependencies": {
"clipboardy": "^2.3.0",
"dotenv": "^8.2.0",
"use-shopping-cart": "workspace:^3.1.4"
"dotenv": "^8.6.0",
"use-shopping-cart": "workspace:3.2.0-alpha.1"
}
}
10 changes: 5 additions & 5 deletions examples/vite-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@
"dependencies": {
"react": "^18.2.0",
"react-dom": "^18.2.0",
"theme-ui": "^0.15.5",
"use-shopping-cart": "workspace:^3.1.6"
"theme-ui": "^0.15.7",
"use-shopping-cart": "workspace:3.2.0-alpha.1"
},
"devDependencies": {
"@types/react": "^18.0.28",
"@types/react-dom": "^18.0.11",
"@types/react": "^18.2.39",
"@types/react-dom": "^18.2.17",
"@vitejs/plugin-react": "^3.1.0",
"vite": "^4.2.0"
"vite": "^4.5.0"
}
}
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,16 @@
"dev:nextjs-app-router": "pnpm run bundle && pnpm --filter nextjs-app-router run dev",
"dev:typescript-cra": "pnpm run bundle && pnpm --filter typescript-usage run start",
"dev:docs": "pnpm run bundle && pnpm --filter docs run start",
"test": "pnpm --filter use-shopping-cart run test",
"test:watch": "pnpm --filter use-shopping-cart run test:watch",
"test": "pnpm --filter use-shopping-cart build && pnpm --filter use-shopping-cart run test",
"test:watch": "pnpm --filter use-shopping-cart build && pnpm --filter use-shopping-cart run test:watch",
"build": "pnpm --filter docs run build",
"bundle": "pnpm --filter use-shopping-cart run build",
"publish": "pnpm --filter use-shopping-cart publish"
},
"dependencies": {
"cross-env": "^7.0.3",
"open-cli": "^6.0.1",
"prettier": "^2.8.4"
"prettier": "^2.8.8"
},
"husky": {
"hooks": {
Expand All @@ -28,8 +28,8 @@
"*.{js,jsx,.d.ts,ts,tsx,mdx}": "prettier --write"
},
"devDependencies": {
"all-contributors-cli": "^6.24.0",
"eslint": "^8.51.0",
"all-contributors-cli": "^6.26.1",
"eslint": "^8.54.0",
"husky": "^8.0.3",
"lint-staged": "^10.5.4",
"typescript": "^4.9.5",
Expand Down
Loading

0 comments on commit 933f485

Please sign in to comment.