@proteinjs/server 1.0.6 → 1.0.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,25 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [1.0.8](https://github.com/proteinjs/server/compare/@proteinjs/server@1.0.7...@proteinjs/server@1.0.8) (2024-04-19)
7
+
8
+ **Note:** Version bump only for package @proteinjs/server
9
+
10
+
11
+
12
+
13
+
14
+ ## [1.0.7](https://github.com/brentbahry/server/compare/@proteinjs/server@1.0.6...@proteinjs/server@1.0.7) (2024-04-19)
15
+
16
+
17
+ ### Bug Fixes
18
+
19
+ * fixed server version ([dcea65a](https://github.com/brentbahry/server/commit/dcea65a231c894ff7872f48b9b6d36b44d28b72e))
20
+
21
+
22
+
23
+
24
+
6
25
  ## [1.0.6](https://github.com/brentbahry/server/compare/@proteinjs/server@1.0.5...@proteinjs/server@1.0.6) (2024-04-19)
7
26
 
8
27
  **Note:** Version bump only for package @proteinjs/server
@@ -1,9 +1,4 @@
1
1
  /** Load Dependency Source Graphs */
2
- import '@emotion/react';
3
- import '@emotion/styled';
4
- import '@mui/icons-material';
5
- import '@mui/joy';
6
- import '@mui/material';
7
2
  import '@pmmmwh/react-refresh-webpack-plugin';
8
3
  import '@proteinjs/db';
9
4
  import '@proteinjs/reflection';
@@ -33,8 +28,5 @@ import 'util';
33
28
  import 'webpack';
34
29
  import 'webpack-dev-middleware';
35
30
  import 'webpack-hot-middleware';
36
- import '@types/react';
37
- import '@types/react-helmet';
38
- import '@types/webpack-hot-middleware';
39
31
  export * from '../index';
40
32
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../generated/index.ts"],"names":[],"mappings":"AAAA,oCAAoC;AAEpC,OAAO,gBAAgB,CAAC;AACxB,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O,eAAe,CAAC;AACvB,OAAO,mBAAmB,CAAC;AAC3B,OAAO,QAAQ,CAAC;AAChB,OAAO,SAAS,CAAC;AACjB,OAAO,iBAAiB,CAAC;AACzB,OAAO,aAAa,CAAC;AACrB,OAAO,UAAU,CAAC;AAClB,OAAO,gBAAgB,CAAC;AACxB,OAAO,SAAS,CAAC;AACjB,OAAO,OAAO,CAAC;AACf,OAAO,cAAc,CAAC;AACtB,OAAO,eAAe,CAAC;AACvB,OAAO,0BAA0B,CAAC;AAClC,OAAO,mBAAmB,CAAC;AAC3B,OAAO,WAAW,CAAC;AACnB,OAAO,YAAY,CAAC;AACpB,OAAO,KAAK,CAAC;AACb,OAAO,MAAM,CAAC;AACd,OAAO,SAAS,CAAC;AACjB,OAAO,wBAAwB,CAAC;AAChC,OAAO,wBAAwB,CAAC;AAyBhC,cAAc,UAAU,CAAC"}
@@ -15,11 +15,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
16
16
  };
17
17
  Object.defineProperty(exports, "__esModule", { value: true });
18
- require("@emotion/react");
19
- require("@emotion/styled");
20
- require("@mui/icons-material");
21
- require("@mui/joy");
22
- require("@mui/material");
23
18
  require("@pmmmwh/react-refresh-webpack-plugin");
24
19
  require("@proteinjs/db");
25
20
  require("@proteinjs/reflection");
@@ -49,9 +44,6 @@ require("util");
49
44
  require("webpack");
50
45
  require("webpack-dev-middleware");
51
46
  require("webpack-hot-middleware");
52
- require("@types/react");
53
- require("@types/react-helmet");
54
- require("@types/webpack-hot-middleware");
55
47
  /** Generate Source Graph */
56
48
  var sourceGraph = "{\"options\":{\"directed\":true,\"multigraph\":false,\"compound\":false},\"nodes\":[{\"v\":\"@proteinjs/server/NodeSessionDataStorage\",\"value\":{\"packageName\":\"@proteinjs/server\",\"name\":\"NodeSessionDataStorage\",\"filePath\":\"/home/runner/work/server/server/packages/server/src/NodeSessionDataStorage.ts\",\"qualifiedName\":\"@proteinjs/server/NodeSessionDataStorage\",\"isAbstract\":false,\"isStatic\":false,\"visibility\":\"public\",\"properties\":[{\"name\":\"HOOK_INITIALIZED\",\"type\":null,\"isOptional\":false,\"isAbstract\":false,\"isStatic\":true,\"visibility\":\"private\"},{\"name\":\"SESSION_DATA\",\"type\":{\"packageName\":\"@proteinjs/server\",\"name\":\"{[id: string]: SessionData}\",\"filePath\":null,\"qualifiedName\":\"@proteinjs/server/{[id: string]: SessionData}\",\"typeParameters\":null,\"directParents\":null},\"isOptional\":false,\"isAbstract\":false,\"isStatic\":true,\"visibility\":\"private\"},{\"name\":\"environment\",\"type\":null,\"isOptional\":false,\"isAbstract\":false,\"isStatic\":false,\"visibility\":\"public\"}],\"methods\":[{\"name\":\"setData\",\"returnType\":null,\"isAsync\":false,\"isOptional\":false,\"isAbstract\":false,\"isStatic\":false,\"visibility\":\"public\",\"parameters\":[{\"name\":\"data\",\"type\":{\"packageName\":\"@proteinjs/server-api\",\"name\":\"SessionData\",\"filePath\":null,\"qualifiedName\":\"@proteinjs/server-api/SessionData\",\"typeParameters\":null,\"directParents\":null}}]},{\"name\":\"getData\",\"returnType\":{\"packageName\":\"@proteinjs/server-api\",\"name\":\"SessionData\",\"filePath\":null,\"qualifiedName\":\"@proteinjs/server-api/SessionData\",\"typeParameters\":null,\"directParents\":null},\"isAsync\":false,\"isOptional\":false,\"isAbstract\":false,\"isStatic\":false,\"visibility\":\"public\",\"parameters\":[]},{\"name\":\"initHook\",\"returnType\":null,\"isAsync\":false,\"isOptional\":false,\"isAbstract\":false,\"isStatic\":false,\"visibility\":\"private\",\"parameters\":[]}],\"typeParameters\":[],\"directParentInterfaces\":[{\"packageName\":\"@proteinjs/server-api\",\"name\":\"SessionDataStorage\",\"filePath\":null,\"qualifiedName\":\"@proteinjs/server-api/SessionDataStorage\",\"properties\":[],\"methods\":[],\"typeParameters\":[],\"directParents\":[]}],\"directParentClasses\":[],\"sourceType\":2}},{\"v\":\"@proteinjs/server-api/SessionDataStorage\"},{\"v\":\"@proteinjs/server/healthCheck\",\"value\":{\"packageName\":\"@proteinjs/server\",\"name\":\"healthCheck\",\"filePath\":\"/home/runner/work/server/server/packages/server/src/routes/healthCheck.ts\",\"qualifiedName\":\"@proteinjs/server/healthCheck\",\"type\":{\"packageName\":\"@proteinjs/server-api\",\"name\":\"Route\",\"filePath\":null,\"qualifiedName\":\"@proteinjs/server-api/Route\",\"typeParameters\":[],\"directParents\":[{\"packageName\":\"@proteinjs/server-api\",\"name\":\"Route\",\"filePath\":null,\"qualifiedName\":\"@proteinjs/server-api/Route\",\"typeParameters\":[],\"directParents\":null}]},\"isExported\":true,\"isConst\":true,\"sourceType\":0}},{\"v\":\"@proteinjs/server-api/Route\"}],\"edges\":[{\"v\":\"@proteinjs/server/NodeSessionDataStorage\",\"w\":\"@proteinjs/server-api/SessionDataStorage\",\"value\":\"implements interface\"},{\"v\":\"@proteinjs/server/healthCheck\",\"w\":\"@proteinjs/server-api/Route\",\"value\":\"has type\"}]}";
57
49
  /** Generate Source Links */
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../generated/index.ts"],"names":[],"mappings":";AAAA,oCAAoC;;;;;;;;;;;;;;;;AAEpC,0BAAwB;AACxB,2BAAyB;AACzB,+BAA6B;AAC7B,oBAAkB;AAClB,yBAAuB;AACvB,gDAA8C;AAC9C,yBAAuB;AACvB,iCAA+B;AAC/B,iCAA+B;AAC/B,2BAAyB;AACzB,uBAAqB;AACrB,kBAAgB;AAChB,uBAAqB;AACrB,yBAAuB;AACvB,6BAA2B;AAC3B,kBAAgB;AAChB,mBAAiB;AACjB,2BAAyB;AACzB,uBAAqB;AACrB,oBAAkB;AAClB,0BAAwB;AACxB,mBAAiB;AACjB,iBAAe;AACf,wBAAsB;AACtB,yBAAuB;AACvB,oCAAkC;AAClC,6BAA2B;AAC3B,qBAAmB;AACnB,sBAAoB;AACpB,eAAa;AACb,gBAAc;AACd,mBAAiB;AACjB,kCAAgC;AAChC,kCAAgC;AAChC,wBAAsB;AACtB,+BAA6B;AAC7B,yCAAuC;AAGvC,4BAA4B;AAE5B,IAAM,WAAW,GAAG,kwGAAkwG,CAAC;AAGvxG,4BAA4B;AAE5B,wEAAuE;AACvE,yDAAwD;AAExD,IAAM,WAAW,GAAG;IACnB,0CAA0C,EAAE,+CAAsB;IAClE,+BAA+B,EAAE,yBAAW;CAC5C,CAAC;AAGF,kCAAkC;AAElC,oDAAyD;AACzD,6BAAgB,CAAC,KAAK,CAAC,WAAW,EAAE,WAAW,CAAC,CAAC;AAGjD,2CAAyB"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../generated/index.ts"],"names":[],"mappings":";AAAA,oCAAoC;;;;;;;;;;;;;;;;AAEpC,gDAA8C;AAC9C,yBAAuB;AACvB,iCAA+B;AAC/B,iCAA+B;AAC/B,2BAAyB;AACzB,uBAAqB;AACrB,kBAAgB;AAChB,uBAAqB;AACrB,yBAAuB;AACvB,6BAA2B;AAC3B,kBAAgB;AAChB,mBAAiB;AACjB,2BAAyB;AACzB,uBAAqB;AACrB,oBAAkB;AAClB,0BAAwB;AACxB,mBAAiB;AACjB,iBAAe;AACf,wBAAsB;AACtB,yBAAuB;AACvB,oCAAkC;AAClC,6BAA2B;AAC3B,qBAAmB;AACnB,sBAAoB;AACpB,eAAa;AACb,gBAAc;AACd,mBAAiB;AACjB,kCAAgC;AAChC,kCAAgC;AAGhC,4BAA4B;AAE5B,IAAM,WAAW,GAAG,kwGAAkwG,CAAC;AAGvxG,4BAA4B;AAE5B,wEAAuE;AACvE,yDAAwD;AAExD,IAAM,WAAW,GAAG;IACnB,0CAA0C,EAAE,+CAAsB;IAClE,+BAA+B,EAAE,yBAAW;CAC5C,CAAC;AAGF,kCAAkC;AAElC,oDAAyD;AACzD,6BAAgB,CAAC,KAAK,CAAC,WAAW,EAAE,WAAW,CAAC,CAAC;AAGjD,2CAAyB"}
@@ -3,8 +3,9 @@ var path = require('path');
3
3
  var webpack = require('webpack');
4
4
  var ReactRefreshWebpackPlugin = require('@pmmmwh/react-refresh-webpack-plugin');
5
5
  var ReactRefreshTypeScript = require('react-refresh-typescript');
6
+ var nodeModulesPath = path.join(__dirname, '../../../');
6
7
  // if there are module resolution issues, verify assumptions about pathing
7
- // console.log(`__dirname in webpack.config: ${__dirname}`);
8
+ // console.log(`nodeModulesPath: ${nodeModulesPath}`);
8
9
  // see https://github.com/webpack/webpack/issues/11467#issuecomment-808618999/
9
10
  // for details
10
11
  var webpack5esmInteropRule = {
@@ -29,12 +30,12 @@ module.exports = {
29
30
  resolve: {
30
31
  extensions: ['.tsx', '.ts', '.js', '.json'],
31
32
  alias: {
32
- 'react': path.join(__dirname, '../node_modules/react'),
33
+ 'react': path.join(nodeModulesPath, 'react'),
33
34
  'process': 'process/browser',
34
- '@mui/joy': path.join(__dirname, '../node_modules/@mui/joy'),
35
- '@mui/material': path.join(__dirname, '../node_modules/@mui/material'),
36
- '@mui/icons-material': path.join(__dirname, '../node_modules/@mui/icons-material'),
37
- 'webpack-hot-middleware': path.join(__dirname, '../node_modules/webpack-hot-middleware'),
35
+ '@mui/joy': path.join(nodeModulesPath, '@mui/joy'),
36
+ '@mui/material': path.join(nodeModulesPath, '@mui/material'),
37
+ '@mui/icons-material': path.join(nodeModulesPath, '@mui/icons-material'),
38
+ 'webpack-hot-middleware': path.join(nodeModulesPath, 'webpack-hot-middleware'),
38
39
  },
39
40
  // provide shims for node libraries for webpack >= 5
40
41
  fallback: {
@@ -51,7 +52,7 @@ module.exports = {
51
52
  // we need to let webpack know where to look for loaders like: file-loader and ts-loader
52
53
  // it's ideal to keep those dependencies within this package instead of requiring them installed by the consumer
53
54
  resolveLoader: {
54
- modules: [path.resolve(__dirname, '../node_modules'), 'node_modules'],
55
+ modules: [nodeModulesPath, 'node_modules'],
55
56
  },
56
57
  module: {
57
58
  rules: [
@@ -1 +1 @@
1
- {"version":3,"file":"webpack.config.js","sourceRoot":"","sources":["../webpack.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BACF;iBACF;aACF;YACD,cAAc;YACd;gBACE,IAAI,EAAE,yBAAyB;gBAC/B,GAAG,EAAE;oBACH;wBACE,MAAM,EAAE,aAAa;wBACrB,OAAO,EAAE;4BACP,IAAI,EAAE,oBAAoB,EAAE,qDAAqD;yBAClF;qBACF;iBACF;aACF;SACF;KACF;IACD,YAAY,EAAE;QACZ,WAAW,EAAE;YACX,WAAW,EAAE;gBACX,MAAM,EAAE;oBACN,IAAI,EAAE,wBAAwB;oBAC9B,IAAI,EAAE,QAAQ;oBACd,MAAM,EAAE,KAAK;oBACb,QAAQ,EAAE,CAAC,EAAE;iBACd;aACF;SACF;KACF;IACD,OAAO,EAAE;QACP,IAAI,OAAO,CAAC,aAAa,CAAC;YACtB,OAAO,EAAE,iBAAiB;YAC1B,MAAM,EAAE,CAAC,QAAQ,EAAE,QAAQ,CAAC;SAC/B,CAAC;QACF,IAAI,OAAO,CAAC,0BAA0B,EAAE;QACxC,IAAI,yBAAyB,EAAE;KAChC;CACF,CAAC"}
@@ -1,10 +1,5 @@
1
1
  /** Load Dependency Source Graphs */
2
2
 
3
- import '@emotion/react';
4
- import '@emotion/styled';
5
- import '@mui/icons-material';
6
- import '@mui/joy';
7
- import '@mui/material';
8
3
  import '@pmmmwh/react-refresh-webpack-plugin';
9
4
  import '@proteinjs/db';
10
5
  import '@proteinjs/reflection';
@@ -34,9 +29,6 @@ import 'util';
34
29
  import 'webpack';
35
30
  import 'webpack-dev-middleware';
36
31
  import 'webpack-hot-middleware';
37
- import '@types/react';
38
- import '@types/react-helmet';
39
- import '@types/webpack-hot-middleware';
40
32
 
41
33
 
42
34
  /** Generate Source Graph */
package/package.json CHANGED
@@ -1,40 +1,31 @@
1
1
  {
2
2
  "name": "@proteinjs/server",
3
- "version": "1.0.6",
3
+ "version": "1.0.8",
4
4
  "description": "A server impl",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
8
8
  "repository": {
9
9
  "type": "git",
10
- "url": "git+https://github.com/brentbahry/server.git"
10
+ "url": "git+https://github.com/proteinjs/server.git"
11
11
  },
12
12
  "bugs": {
13
- "url": "https://github.com/brentbahry/server/issues"
13
+ "url": "https://github.com/proteinjs/server/issues"
14
14
  },
15
- "homepage": "https://github.com/brentbahry/server#readme",
15
+ "homepage": "https://github.com/proteinjs/server#readme",
16
16
  "author": "Brent Bahry",
17
- "license": "ISC",
17
+ "license": "MIT",
18
18
  "scripts": {
19
19
  "clean": "rm -rf dist/ generated/ node_modules/ package-lock.json",
20
20
  "build": "reflection-build && tsc",
21
- "watch": "reflection-watch",
22
- "dev": "DEVELOPMENT=true node dist/generated/index.js"
21
+ "watch": "reflection-watch"
23
22
  },
24
23
  "dependencies": {
25
- "@emotion/react": "11.11.1",
26
- "@emotion/styled": "11.11.0",
27
- "@mui/icons-material": "5.14.11",
28
- "@mui/joy": "5.0.0-beta.8",
29
- "@mui/material": "5.14.11",
30
24
  "@pmmmwh/react-refresh-webpack-plugin": "0.5.11",
31
25
  "@proteinjs/db": "1.0.3",
32
26
  "@proteinjs/reflection": "1.0.2",
33
27
  "@proteinjs/server-api": "1.0.2",
34
28
  "@proteinjs/util": "1.0.18",
35
- "@types/react": "18.2.23",
36
- "@types/react-helmet": "6.1.0",
37
- "@types/webpack-hot-middleware": "2.25.9",
38
29
  "body-parser": "1.19.0",
39
30
  "buffer": "6.0.3",
40
31
  "compression": "1.7.4",
@@ -69,9 +60,12 @@
69
60
  "@types/express-session": "1.17.0",
70
61
  "@types/node": "14.0.13",
71
62
  "@types/passport": "1.0.4",
72
- "@types/passport-local": "1.0.33"
63
+ "@types/passport-local": "1.0.33",
64
+ "@types/react": "18.2.23",
65
+ "@types/react-helmet": "6.1.0",
66
+ "@types/webpack-hot-middleware": "2.25.9"
73
67
  },
74
68
  "main": "./dist/generated/index.js",
75
69
  "types": "./dist/generated/index.d.ts",
76
- "gitHead": "4c388b41c007baf3e7ff1494c29bc678bf38deb4"
70
+ "gitHead": "6f849ba249acde7c101e26b3627201e9e128f242"
77
71
  }
package/webpack.config.js CHANGED
@@ -3,8 +3,9 @@ var webpack = require('webpack');
3
3
  const ReactRefreshWebpackPlugin = require('@pmmmwh/react-refresh-webpack-plugin');
4
4
  const ReactRefreshTypeScript = require('react-refresh-typescript');
5
5
 
6
+ const nodeModulesPath = path.join(__dirname, '../../../');
6
7
  // if there are module resolution issues, verify assumptions about pathing
7
- // console.log(`__dirname in webpack.config: ${__dirname}`);
8
+ // console.log(`nodeModulesPath: ${nodeModulesPath}`);
8
9
 
9
10
  // see https://github.com/webpack/webpack/issues/11467#issuecomment-808618999/
10
11
  // for details
@@ -31,12 +32,12 @@ module.exports = {
31
32
  resolve: {
32
33
  extensions: ['.tsx', '.ts', '.js', '.json'],
33
34
  alias: {
34
- 'react': path.join(__dirname, '../node_modules/react'),
35
+ 'react': path.join(nodeModulesPath, 'react'),
35
36
  'process': 'process/browser',
36
- '@mui/joy': path.join(__dirname, '../node_modules/@mui/joy'),
37
- '@mui/material': path.join(__dirname, '../node_modules/@mui/material'),
38
- '@mui/icons-material': path.join(__dirname, '../node_modules/@mui/icons-material'),
39
- 'webpack-hot-middleware': path.join(__dirname, '../node_modules/webpack-hot-middleware'),
37
+ '@mui/joy': path.join(nodeModulesPath, '@mui/joy'),
38
+ '@mui/material': path.join(nodeModulesPath, '@mui/material'),
39
+ '@mui/icons-material': path.join(nodeModulesPath, '@mui/icons-material'),
40
+ 'webpack-hot-middleware': path.join(nodeModulesPath, 'webpack-hot-middleware'),
40
41
  },
41
42
  // provide shims for node libraries for webpack >= 5
42
43
  fallback: {
@@ -53,7 +54,7 @@ module.exports = {
53
54
  // we need to let webpack know where to look for loaders like: file-loader and ts-loader
54
55
  // it's ideal to keep those dependencies within this package instead of requiring them installed by the consumer
55
56
  resolveLoader: {
56
- modules: [path.resolve(__dirname, '../node_modules'), 'node_modules'],
57
+ modules: [nodeModulesPath, 'node_modules'],
57
58
  },
58
59
  module: {
59
60
  rules: [