diff --git a/config/index.ts b/config/index.ts index 0cf7a0b..ed47e9e 100644 --- a/config/index.ts +++ b/config/index.ts @@ -6,6 +6,6 @@ export const config = { export const deFaultValues = { ENV: 'production', - PORT: 80, + PORT: 3000, PUBLIC_URL: '/', } \ No newline at end of file diff --git a/package-lock.json b/package-lock.json index 1eb5f07..117eac3 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,17 +1,17 @@ { "name": "@aleleba/create-react-ssr", - "version": "3.4.0", + "version": "3.5.0", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@aleleba/create-react-ssr", - "version": "3.4.0", + "version": "3.5.0", "license": "MIT", "dependencies": { "@babel/register": "^7.18.9", "asset-require-hook": "^1.2.0", - "dotenv": "^16.0.1", + "dotenv": "^16.0.2", "express": "^4.18.1", "helmet": "^6.0.0", "ignore-styles": "^5.0.1", @@ -45,6 +45,7 @@ "@babel/preset-react": "^7.18.6", "@babel/preset-typescript": "^7.18.6", "@pmmmwh/react-refresh-webpack-plugin": "^0.5.7", + "@redux-devtools/extension": "^3.2.3", "@testing-library/jest-dom": "^5.16.5", "@testing-library/react": "^13.3.0", "@testing-library/user-event": "^14.4.3", @@ -74,8 +75,7 @@ "jest-fetch-mock": "^3.0.3", "mini-css-extract-plugin": "^2.6.1", "react-refresh": "^0.14.0", - "redux-devtools-extension": "^2.13.9", - "sass": "^1.54.6", + "sass": "^1.54.8", "sass-loader": "^13.0.2", "style-loader": "^3.3.1", "terser-webpack-plugin": "^5.3.6", @@ -1807,9 +1807,9 @@ } }, "node_modules/@babel/runtime": { - "version": "7.18.0", - "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.18.0.tgz", - "integrity": "sha512-YMQvx/6nKEaucl0MY56mwIG483xk8SDNdlUwb2Ts6FUpr7fm85DxEmsY18LXBNhcTz6tO6JwZV8w1W06v8UKeg==", + "version": "7.18.9", + "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.18.9.tgz", + "integrity": "sha512-lkqXDcvlFT5rvEjiu6+QYO+1GXrEHRo2LOtS7E4GtX5ESIZOgepqsZBVIj6Pv+a6zqsya9VCgiK1KAK4BvJDAw==", "dependencies": { "regenerator-runtime": "^0.13.4" }, @@ -2911,6 +2911,19 @@ } } }, + "node_modules/@redux-devtools/extension": { + "version": "3.2.3", + "resolved": "https://registry.npmjs.org/@redux-devtools/extension/-/extension-3.2.3.tgz", + "integrity": "sha512-y90IIqdQF6kIkP4KfBCfiFrnu9KMrEPUmcnb5A3v12tjfwRJUXecX8vCEbFqqJLjOomvVmis0Aal7QdFjk6CRQ==", + "dev": true, + "dependencies": { + "@babel/runtime": "^7.18.3", + "immutable": "^4.0.0" + }, + "peerDependencies": { + "redux": "^3.1.0 || ^4.0.0" + } + }, "node_modules/@rollup/plugin-babel": { "version": "5.3.1", "resolved": "https://registry.npmjs.org/@rollup/plugin-babel/-/plugin-babel-5.3.1.tgz", @@ -6262,9 +6275,9 @@ } }, "node_modules/dotenv": { - "version": "16.0.1", - "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-16.0.1.tgz", - "integrity": "sha512-1K6hR6wtk2FviQ4kEiSjFiH5rpzEVi8WW0x96aztHVMhEspNpc4DVOUTEHtEva5VThQ8IaBX1Pe4gSzpVVUsKQ==", + "version": "16.0.2", + "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-16.0.2.tgz", + "integrity": "sha512-JvpYKUmzQhYoIFgK2MOnF3bciIZoItIIoryihy0rIA+H4Jy0FmgyKYAHCTN98P5ybGSJcIFbh6QKeJdtZd1qhA==", "engines": { "node": ">=12" } @@ -12862,16 +12875,6 @@ "@babel/runtime": "^7.9.2" } }, - "node_modules/redux-devtools-extension": { - "version": "2.13.9", - "resolved": "https://registry.npmjs.org/redux-devtools-extension/-/redux-devtools-extension-2.13.9.tgz", - "integrity": "sha512-cNJ8Q/EtjhQaZ71c8I9+BPySIBVEKssbPpskBfsXqb8HJ002A3KRVHfeRzwRo6mGPqsm7XuHTqNSNeS1Khig0A==", - "deprecated": "Package moved to @redux-devtools/extension.", - "dev": true, - "peerDependencies": { - "redux": "^3.1.0 || ^4.0.0" - } - }, "node_modules/regenerate": { "version": "1.4.2", "resolved": "https://registry.npmjs.org/regenerate/-/regenerate-1.4.2.tgz", @@ -13187,9 +13190,9 @@ "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==" }, "node_modules/sass": { - "version": "1.54.6", - "resolved": "https://registry.npmjs.org/sass/-/sass-1.54.6.tgz", - "integrity": "sha512-DUqJjR2WxXBcZjRSZX5gCVyU+9fuC2qDfFzoKX9rV4rCOcec5mPtEafTcfsyL3YJuLONjWylBne+uXVh5rrmFw==", + "version": "1.54.8", + "resolved": "https://registry.npmjs.org/sass/-/sass-1.54.8.tgz", + "integrity": "sha512-ib4JhLRRgbg6QVy6bsv5uJxnJMTS2soVcCp9Y88Extyy13A8vV0G1fAwujOzmNkFQbR3LvedudAMbtuNRPbQww==", "dev": true, "dependencies": { "chokidar": ">=3.0.0 <4.0.0", @@ -16749,9 +16752,9 @@ } }, "@babel/runtime": { - "version": "7.18.0", - "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.18.0.tgz", - "integrity": "sha512-YMQvx/6nKEaucl0MY56mwIG483xk8SDNdlUwb2Ts6FUpr7fm85DxEmsY18LXBNhcTz6tO6JwZV8w1W06v8UKeg==", + "version": "7.18.9", + "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.18.9.tgz", + "integrity": "sha512-lkqXDcvlFT5rvEjiu6+QYO+1GXrEHRo2LOtS7E4GtX5ESIZOgepqsZBVIj6Pv+a6zqsya9VCgiK1KAK4BvJDAw==", "requires": { "regenerator-runtime": "^0.13.4" } @@ -17567,6 +17570,16 @@ "source-map": "^0.7.3" } }, + "@redux-devtools/extension": { + "version": "3.2.3", + "resolved": "https://registry.npmjs.org/@redux-devtools/extension/-/extension-3.2.3.tgz", + "integrity": "sha512-y90IIqdQF6kIkP4KfBCfiFrnu9KMrEPUmcnb5A3v12tjfwRJUXecX8vCEbFqqJLjOomvVmis0Aal7QdFjk6CRQ==", + "dev": true, + "requires": { + "@babel/runtime": "^7.18.3", + "immutable": "^4.0.0" + } + }, "@rollup/plugin-babel": { "version": "5.3.1", "resolved": "https://registry.npmjs.org/@rollup/plugin-babel/-/plugin-babel-5.3.1.tgz", @@ -20147,9 +20160,9 @@ } }, "dotenv": { - "version": "16.0.1", - "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-16.0.1.tgz", - "integrity": "sha512-1K6hR6wtk2FviQ4kEiSjFiH5rpzEVi8WW0x96aztHVMhEspNpc4DVOUTEHtEva5VThQ8IaBX1Pe4gSzpVVUsKQ==" + "version": "16.0.2", + "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-16.0.2.tgz", + "integrity": "sha512-JvpYKUmzQhYoIFgK2MOnF3bciIZoItIIoryihy0rIA+H4Jy0FmgyKYAHCTN98P5ybGSJcIFbh6QKeJdtZd1qhA==" }, "ee-first": { "version": "1.1.1", @@ -24981,13 +24994,6 @@ "@babel/runtime": "^7.9.2" } }, - "redux-devtools-extension": { - "version": "2.13.9", - "resolved": "https://registry.npmjs.org/redux-devtools-extension/-/redux-devtools-extension-2.13.9.tgz", - "integrity": "sha512-cNJ8Q/EtjhQaZ71c8I9+BPySIBVEKssbPpskBfsXqb8HJ002A3KRVHfeRzwRo6mGPqsm7XuHTqNSNeS1Khig0A==", - "dev": true, - "requires": {} - }, "regenerate": { "version": "1.4.2", "resolved": "https://registry.npmjs.org/regenerate/-/regenerate-1.4.2.tgz", @@ -25220,9 +25226,9 @@ "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==" }, "sass": { - "version": "1.54.6", - "resolved": "https://registry.npmjs.org/sass/-/sass-1.54.6.tgz", - "integrity": "sha512-DUqJjR2WxXBcZjRSZX5gCVyU+9fuC2qDfFzoKX9rV4rCOcec5mPtEafTcfsyL3YJuLONjWylBne+uXVh5rrmFw==", + "version": "1.54.8", + "resolved": "https://registry.npmjs.org/sass/-/sass-1.54.8.tgz", + "integrity": "sha512-ib4JhLRRgbg6QVy6bsv5uJxnJMTS2soVcCp9Y88Extyy13A8vV0G1fAwujOzmNkFQbR3LvedudAMbtuNRPbQww==", "dev": true, "requires": { "chokidar": ">=3.0.0 <4.0.0", diff --git a/package.json b/package.json index 8540a04..6159fc9 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@aleleba/create-react-ssr", - "version": "3.4.0", + "version": "3.5.0", "description": "Starter Kit of server side render of react", "bin": "./bin/cli.js", "main": "src/server/index", @@ -33,7 +33,7 @@ "dependencies": { "@babel/register": "^7.18.9", "asset-require-hook": "^1.2.0", - "dotenv": "^16.0.1", + "dotenv": "^16.0.2", "express": "^4.18.1", "helmet": "^6.0.0", "ignore-styles": "^5.0.1", @@ -64,6 +64,7 @@ "@babel/preset-react": "^7.18.6", "@babel/preset-typescript": "^7.18.6", "@pmmmwh/react-refresh-webpack-plugin": "^0.5.7", + "@redux-devtools/extension": "^3.2.3", "@testing-library/jest-dom": "^5.16.5", "@testing-library/react": "^13.3.0", "@testing-library/user-event": "^14.4.3", @@ -93,8 +94,7 @@ "jest-fetch-mock": "^3.0.3", "mini-css-extract-plugin": "^2.6.1", "react-refresh": "^0.14.0", - "redux-devtools-extension": "^2.13.9", - "sass": "^1.54.6", + "sass": "^1.54.8", "sass-loader": "^13.0.2", "style-loader": "^3.3.1", "terser-webpack-plugin": "^5.3.6", diff --git a/src/frontend/setStore.ts b/src/frontend/setStore.ts index 794d539..ace5fe7 100644 --- a/src/frontend/setStore.ts +++ b/src/frontend/setStore.ts @@ -1,7 +1,7 @@ // Redux import { legacy_createStore as createStore} from 'redux'; //, applyMiddleware // import { Provider } from 'react-redux'; -import { composeWithDevTools as composeWithDevToolsWeb } from 'redux-devtools-extension'; +import { composeWithDevTools as composeWithDevToolsWeb } from '@redux-devtools/extension'; import { config } from '../../config'; import reducer, { IInitialState } from './reducers';