@loopback/cli 2.21.1 → 3.0.0

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/README.md CHANGED
@@ -53,8 +53,8 @@ for a detailed documentation.
53
53
 
54
54
  ## Contributions
55
55
 
56
- - [Guidelines](https://github.com/strongloop/loopback-next/blob/master/docs/CONTRIBUTING.md)
57
- - [Join the team](https://github.com/strongloop/loopback-next/issues/110)
56
+ - [Guidelines](https://github.com/loopbackio/loopback-next/blob/master/docs/CONTRIBUTING.md)
57
+ - [Join the team](https://github.com/loopbackio/loopback-next/issues/110)
58
58
 
59
59
  ## Tests
60
60
 
@@ -63,7 +63,7 @@ run `npm test` from the root folder.
63
63
  ## Contributors
64
64
 
65
65
  See
66
- [all contributors](https://github.com/strongloop/loopback-next/graphs/contributors).
66
+ [all contributors](https://github.com/loopbackio/loopback-next/graphs/contributors).
67
67
 
68
68
  ## License
69
69
 
@@ -1,5 +1,5 @@
1
1
  # Check out https://hub.docker.com/_/node to select a new base image
2
- FROM node:10-slim
2
+ FROM node:16-slim
3
3
 
4
4
  # Set to a non-root built-in user `node`
5
5
  USER node
@@ -127,4 +127,4 @@ npm test
127
127
  Please check out [LoopBack 4 documentation](https://loopback.io/doc/en/lb4/) to
128
128
  understand how you can continue to add features to this application.
129
129
 
130
- [![LoopBack](https://github.com/strongloop/loopback-next/raw/master/docs/site/imgs/branding/Powered-by-LoopBack-Badge-(blue)-@2x.png)](http://loopback.io/)
130
+ [![LoopBack](https://github.com/loopbackio/loopback-next/raw/master/docs/site/imgs/branding/Powered-by-LoopBack-Badge-(blue)-@2x.png)](http://loopback.io/)
@@ -74,8 +74,8 @@
74
74
  <h1><%= project.name %></h1>
75
75
  <p>Version <%= project.version || '1.0.0' %></p>
76
76
 
77
- <h3>OpenAPI spec: <a href="/openapi.json">/openapi.json</a></h3>
78
- <h3>API Explorer: <a href="/explorer">/explorer</a></h3>
77
+ <h3>OpenAPI spec: <a href="./openapi.json">/openapi.json</a></h3>
78
+ <h3>API Explorer: <a href="./explorer">/explorer</a></h3>
79
79
  </div>
80
80
 
81
81
  <footer class="power">
@@ -59,6 +59,7 @@ const EXAMPLES = {
59
59
  'todo-jwt': g.f('A modified Todo application with JWT authentication.'),
60
60
  webpack: g.f('An example to bundle @loopback/core using webpack.'),
61
61
  graphql: g.f('An example to demonstrate GraphQL integration.'),
62
+ socketio: g.f('A basic implementation of Socket.IO'),
62
63
  };
63
64
  Object.freeze(EXAMPLES);
64
65
 
@@ -147,7 +148,7 @@ module.exports = class extends BaseGenerator {
147
148
  }
148
149
 
149
150
  // Recent versions of examples are using project references inside monorepo,
150
- // see https://github.com/strongloop/loopback-next/pull/5155
151
+ // see https://github.com/loopbackio/loopback-next/pull/5155
151
152
  // We must switch to standalone mode (no project references) when the code
152
153
  // was checked out outside of our monorepo.
153
154
  const tsconfigContent = await fs.readJson(tsconfig);
@@ -1,6 +1,6 @@
1
1
  # <%= project.name %>
2
2
 
3
- [![LoopBack](https://github.com/strongloop/loopback-next/raw/master/docs/site/imgs/branding/Powered-by-LoopBack-Badge-(blue)-@2x.png)](http://loopback.io/)
3
+ [![LoopBack](https://github.com/loopbackio/loopback-next/raw/master/docs/site/imgs/branding/Powered-by-LoopBack-Badge-(blue)-@2x.png)](http://loopback.io/)
4
4
 
5
5
  ## Installation
6
6
 
@@ -187,7 +187,7 @@ function migrateModelSettings(settings = {}, inherited = {}, log) {
187
187
  // The value 'auto' is used when a parent model wants to let the child
188
188
  // model make the decision automatically, depending on whether the child
189
189
  // model has a database-generated PK.
190
- // See https://github.com/strongloop/loopback-datasource-juggler/blob/15251880a1d07ccc2ca6d2dccdd065d00a7375eb/lib/model-builder.js#L347-L355
190
+ // See https://github.com/loopbackio/loopback-datasource-juggler/blob/15251880a1d07ccc2ca6d2dccdd065d00a7375eb/lib/model-builder.js#L347-L355
191
191
  //
192
192
  // Let's delete the flag from the generated model settings and
193
193
  // leave it up to the runtime to decide.
@@ -12,7 +12,7 @@
12
12
  "main": "dist/index.js",
13
13
  "types": "dist/index.d.ts",
14
14
  "engines": {
15
- "node": ">=10.16"
15
+ "node": "12 || 14 || 16 || 17"
16
16
  },
17
17
  "scripts": {
18
18
  "build": "lb-tsc",
@@ -12,7 +12,7 @@
12
12
  "main": "dist/index.js",
13
13
  "types": "dist/index.d.ts",
14
14
  "engines": {
15
- "node": ">=10.16"
15
+ "node": "12 || 14 || 16 || 17"
16
16
  },
17
17
  "scripts": {
18
18
  "build": "tsc",
@@ -371,12 +371,18 @@
371
371
  },
372
372
  "package": {
373
373
  "name": "loopback-connector-grpc",
374
- "version": "^1.3.0"
374
+ "version": "^2.0.0"
375
375
  },
376
376
  "settings": {
377
+ "host": {
378
+ "type": "string"
379
+ },
380
+ "port": {
381
+ "type": "number"
382
+ },
377
383
  "spec": {
378
384
  "type": "string",
379
- "message": "HTTP URL/path to gRPC spec file (file name extension .yaml/.yml or .json)"
385
+ "message": "HTTP URL/path to gRPC spec file (file name extension .yaml/.yml or .json or .proto)"
380
386
  },
381
387
  "validate": {
382
388
  "type": "boolean",
@@ -102,7 +102,7 @@ async function checkDependencies(generator) {
102
102
  const versionRange = pkgDeps[s][d];
103
103
  if (!versionRange) continue;
104
104
  const templateDep = templateDeps[d];
105
- // https://github.com/strongloop/loopback-next/issues/2028
105
+ // https://github.com/loopbackio/loopback-next/issues/2028
106
106
  // https://github.com/npm/node-semver/pull/238
107
107
  // semver.intersects does not like `*`, `x`, or `X`
108
108
  if (versionRange.match(/^\*|x|X/)) continue;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@loopback/cli",
3
3
  "description": "Yeoman generator for LoopBack 4",
4
- "version": "2.21.1",
4
+ "version": "3.0.0",
5
5
  "keywords": [
6
6
  "LoopBack",
7
7
  "CLI",
@@ -14,14 +14,14 @@
14
14
  "main": "generators/app/index.js",
15
15
  "author": "IBM Corp.",
16
16
  "copyright.owner": "IBM Corp.",
17
- "homepage": "https://github.com/strongloop/loopback-next/tree/master/packages/cli",
17
+ "homepage": "https://github.com/loopbackio/loopback-next/tree/master/packages/cli",
18
18
  "repository": {
19
19
  "type": "git",
20
- "url": "https://github.com/strongloop/loopback-next.git",
20
+ "url": "https://github.com/loopbackio/loopback-next.git",
21
21
  "directory": "packages/cli"
22
22
  },
23
23
  "engines": {
24
- "node": "^10.16 || 12 || 14 || 16"
24
+ "node": "12 || 14 || 16 || 17"
25
25
  },
26
26
  "scripts": {
27
27
  "test": "lb-mocha --lang en_US.UTF-8 \"test/**/*.js\"",
@@ -40,15 +40,15 @@
40
40
  ],
41
41
  "dependencies": {
42
42
  "@lerna/project": "^4.0.0",
43
- "@openapi-contrib/openapi-schema-to-json-schema": "^3.1.0",
43
+ "@openapi-contrib/openapi-schema-to-json-schema": "^3.1.1",
44
44
  "@phenomnomnominal/tsquery": "^4.1.1",
45
- "camelcase-keys": "^6.2.2",
46
- "chalk": "^4.1.1",
45
+ "camelcase-keys": "^7.0.1",
46
+ "chalk": "^4.1.2",
47
47
  "change-case": "^4.1.2",
48
- "debug": "^4.3.1",
48
+ "debug": "^4.3.2",
49
49
  "fs-extra": "^10.0.0",
50
- "glob": "^7.1.7",
51
- "inquirer-autocomplete-prompt": "^1.3.0",
50
+ "glob": "^7.2.0",
51
+ "inquirer-autocomplete-prompt": "^1.4.0",
52
52
  "json5": "^2.2.0",
53
53
  "latest-version": "^5.1.0",
54
54
  "lodash": "^4.17.21",
@@ -56,7 +56,7 @@
56
56
  "minimist": "^1.2.5",
57
57
  "mkdirp": "^1.0.4",
58
58
  "natural-compare": "^1.4.0",
59
- "pacote": "^11.3.4",
59
+ "pacote": "^12.0.2",
60
60
  "pluralize": "^8.0.0",
61
61
  "regenerate": "^1.4.2",
62
62
  "semver": "^7.3.5",
@@ -64,13 +64,13 @@
64
64
  "spdx-license-list": "^6.4.0",
65
65
  "stringify-object": "^3.3.0",
66
66
  "strong-globalize": "^6.0.5",
67
- "swagger-parser": "^10.0.2",
68
- "swagger2openapi": "^7.0.6",
67
+ "swagger-parser": "^10.0.3",
68
+ "swagger2openapi": "^7.0.8",
69
69
  "tabtab": "^3.0.2",
70
70
  "terminal-link": "^2.1.1",
71
71
  "tildify": "^2.0.0",
72
- "ts-morph": "^11.0.0",
73
- "typescript": "~4.3.2",
72
+ "ts-morph": "^12.0.0",
73
+ "typescript": "~4.5.2",
74
74
  "unicode-10.0.0": "^0.7.5",
75
75
  "untildify": "^4.0.0",
76
76
  "update-notifier": "^5.1.0",
@@ -81,20 +81,20 @@
81
81
  "yeoman-generator": "^4.13.0"
82
82
  },
83
83
  "devDependencies": {
84
- "@loopback/build": "^6.4.1",
85
- "@loopback/eslint-config": "^10.2.1",
86
- "@loopback/testlab": "^3.4.1",
87
- "@types/ejs": "^3.0.6",
88
- "@types/fs-extra": "^9.0.11",
89
- "@types/minimatch": "^3.0.4",
84
+ "@loopback/build": "^8.0.0",
85
+ "@loopback/eslint-config": "^12.0.0",
86
+ "@loopback/testlab": "^4.0.0",
87
+ "@types/ejs": "^3.1.0",
88
+ "@types/fs-extra": "^9.0.13",
89
+ "@types/minimatch": "^3.0.5",
90
90
  "@types/node": "^10.17.60",
91
91
  "loopback": "^3.28.0",
92
92
  "loopback-datasource-juggler": "^4.26.0",
93
93
  "mem-fs": "^2.2.1",
94
- "mem-fs-editor": "^9.0.1",
94
+ "mem-fs-editor": "^9.3.0",
95
95
  "mock-stdin": "^1.0.0",
96
96
  "rimraf": "^3.0.2",
97
- "sinon": "^11.1.1",
97
+ "sinon": "^11.1.2",
98
98
  "strong-globalize-cli": "7.1.0",
99
99
  "yeoman-assert": "^3.1.1",
100
100
  "yeoman-test": "~2.7.0"
@@ -102,96 +102,96 @@
102
102
  "config": {
103
103
  "templateDependencies": {
104
104
  "tslib": "^2.0.0",
105
- "@types/mocha": "^8.2.2",
105
+ "@types/mocha": "^9.0.0",
106
106
  "@types/node": "^10.17.60",
107
107
  "cross-spawn": "^7.0.3",
108
- "debug": "^4.3.1",
108
+ "debug": "^4.3.2",
109
109
  "fs-extra": "^10.0.0",
110
- "mocha": "^9.0.0",
110
+ "mocha": "^9.1.3",
111
111
  "nyc": "^15.1.0",
112
- "prettier": "^2.3.1",
112
+ "prettier": "^2.4.1",
113
113
  "rimraf": "^3.0.2",
114
- "source-map-support": "^0.5.19",
115
- "typescript": "~4.3.2",
116
- "@loopback/authentication": "^7.3.1",
117
- "@loopback/boot": "^3.4.1",
118
- "@loopback/build": "^6.4.1",
119
- "@loopback/cli": "^2.21.1",
120
- "@loopback/context": "^3.17.0",
121
- "@loopback/core": "^2.16.1",
122
- "@loopback/metadata": "^3.3.1",
123
- "@loopback/openapi-spec-builder": "^3.2.1",
124
- "@loopback/openapi-v3": "^5.3.1",
125
- "@loopback/repository-json-schema": "^3.4.1",
126
- "@loopback/repository": "^3.7.0",
127
- "@loopback/rest": "^9.3.1",
128
- "@loopback/testlab": "^3.4.1",
129
- "@loopback/docs": "^3.26.0",
130
- "glob": "^7.1.7",
131
- "@loopback/example-hello-world": "^2.3.1",
132
- "@loopback/example-log-extension": "^2.3.1",
133
- "@loopback/example-rpc-server": "^2.3.1",
134
- "@loopback/example-todo": "^3.11.1",
135
- "@loopback/example-soap-calculator": "^2.6.1",
136
- "@loopback/service-proxy": "^3.2.1",
137
- "@loopback/http-caching-proxy": "^2.3.1",
138
- "@loopback/http-server": "^2.5.1",
139
- "@loopback/example-todo-list": "^3.9.1",
114
+ "source-map-support": "^0.5.20",
115
+ "typescript": "~4.5.2",
116
+ "@loopback/authentication": "^8.0.0",
117
+ "@loopback/boot": "^4.0.0",
118
+ "@loopback/build": "^8.0.0",
119
+ "@loopback/cli": "^3.0.0",
120
+ "@loopback/context": "^4.0.0",
121
+ "@loopback/core": "^3.0.0",
122
+ "@loopback/metadata": "^4.0.0",
123
+ "@loopback/openapi-spec-builder": "^4.0.0",
124
+ "@loopback/openapi-v3": "^7.0.0",
125
+ "@loopback/repository-json-schema": "^5.0.0",
126
+ "@loopback/repository": "^4.0.0",
127
+ "@loopback/rest": "^11.0.0",
128
+ "@loopback/testlab": "^4.0.0",
129
+ "@loopback/docs": "^4.0.0",
130
+ "glob": "^7.2.0",
131
+ "@loopback/example-hello-world": "^4.0.0",
132
+ "@loopback/example-log-extension": "^4.0.0",
133
+ "@loopback/example-rpc-server": "^4.0.0",
134
+ "@loopback/example-todo": "^5.0.0",
135
+ "@loopback/example-soap-calculator": "^4.0.0",
136
+ "@loopback/service-proxy": "^4.0.0",
137
+ "@loopback/http-caching-proxy": "^3.0.0",
138
+ "@loopback/http-server": "^3.0.0",
139
+ "@loopback/example-todo-list": "^5.0.0",
140
140
  "@loopback/dist-util": "^0.4.0",
141
- "@loopback/rest-explorer": "^3.3.1",
142
- "@loopback/eslint-config": "^10.2.1",
141
+ "@loopback/rest-explorer": "^4.0.0",
142
+ "@loopback/eslint-config": "^12.0.0",
143
143
  "express-composition": "^1.1.0",
144
- "@loopback/example-express-composition": "^2.7.1",
145
- "@loopback/example-greeter-extension": "^2.3.1",
146
- "@loopback/booter-lb3app": "^2.4.1",
147
- "@loopback/example-lb3-application": "^2.7.1",
148
- "eslint": "^7.28.0",
144
+ "@loopback/example-express-composition": "^4.0.0",
145
+ "@loopback/example-greeter-extension": "^4.0.0",
146
+ "@loopback/booter-lb3app": "^3.0.0",
147
+ "@loopback/example-lb3-application": "^4.0.0",
148
+ "eslint": "^7.32.0",
149
149
  "eslint-plugin-mocha": "^9.0.0",
150
- "@loopback/example-greeting-app": "^2.4.1",
151
- "@loopback/example-context": "^2.3.1",
152
- "@typescript-eslint/eslint-plugin": "^4.26.1",
153
- "@typescript-eslint/parser": "^4.26.1",
154
- "eslint-plugin-eslint-plugin": "^3.0.3",
150
+ "@loopback/example-greeting-app": "^4.0.0",
151
+ "@loopback/example-context": "^4.0.0",
152
+ "@typescript-eslint/eslint-plugin": "^4.33.0",
153
+ "@typescript-eslint/parser": "^4.33.0",
154
+ "eslint-plugin-eslint-plugin": "^4.0.2",
155
155
  "eslint-config-prettier": "^8.3.0",
156
- "@loopback/repository-tests": "^0.18.1",
157
- "@loopback/health": "^0.8.1",
158
- "@loopback/authorization": "^0.9.1",
159
- "@loopback/rest-crud": "^0.10.1",
160
- "@loopback/security": "^0.5.1",
161
- "@loopback/authentication-passport": "^3.2.1",
162
- "@loopback/example-metrics-prometheus": "^0.6.1",
163
- "@loopback/metrics": "^0.8.1",
164
- "@loopback/model-api-builder": "^2.3.1",
165
- "@loopback/logging": "^0.6.1",
166
- "@loopback/example-access-control-migration": "^2.5.1",
167
- "@loopback/example-file-transfer": "^1.7.1",
168
- "@loopback/example-rest-crud": "^1.9.1",
169
- "@loopback/apiconnect": "^0.7.1",
170
- "@loopback/example-validation-app": "^1.10.1",
171
- "@loopback/cron": "^0.5.1",
172
- "@loopback/example-multi-tenancy": "^0.9.1",
173
- "@loopback/example-passport-login": "^1.11.1",
174
- "@loopback/authentication-jwt": "^0.9.1",
175
- "@loopback/context-explorer": "^0.5.1",
176
- "@loopback/express": "^3.3.1",
156
+ "@loopback/repository-tests": "^0.19.0",
157
+ "@loopback/health": "^0.9.0",
158
+ "@loopback/authorization": "^0.10.0",
159
+ "@loopback/rest-crud": "^0.12.0",
160
+ "@loopback/security": "^0.6.0",
161
+ "@loopback/authentication-passport": "^4.0.0",
162
+ "@loopback/example-metrics-prometheus": "^0.8.0",
163
+ "@loopback/metrics": "^0.9.0",
164
+ "@loopback/model-api-builder": "^3.0.0",
165
+ "@loopback/logging": "^0.7.0",
166
+ "@loopback/example-access-control-migration": "^4.0.0",
167
+ "@loopback/example-file-transfer": "^3.0.0",
168
+ "@loopback/example-rest-crud": "^3.0.0",
169
+ "@loopback/apiconnect": "^0.8.0",
170
+ "@loopback/example-validation-app": "^3.0.0",
171
+ "@loopback/cron": "^0.7.0",
172
+ "@loopback/example-multi-tenancy": "^0.11.0",
173
+ "@loopback/example-passport-login": "^3.0.0",
174
+ "@loopback/authentication-jwt": "^0.10.0",
175
+ "@loopback/context-explorer": "^0.6.0",
176
+ "@loopback/express": "^4.0.0",
177
177
  "@types/js-yaml": "^3.12.4",
178
178
  "js-yaml": "^3.13.1",
179
- "@loopback/example-todo-jwt": "^1.6.1",
180
- "@loopback/mock-oauth2-provider": "^0.3.1",
179
+ "@loopback/example-todo-jwt": "^3.0.0",
180
+ "@loopback/mock-oauth2-provider": "^0.4.0",
181
181
  "lodash": "^4.17.21",
182
- "@loopback/pooling": "^0.5.1",
183
- "@loopback/typeorm": "^0.4.1",
184
- "@loopback/example-graphql": "^0.3.1",
185
- "@loopback/graphql": "^0.4.1",
186
- "@loopback/filter": "^1.5.1",
187
- "@loopback/rest-msgpack": "^0.5.1",
188
- "@loopback/example-binding-resolution": "^0.3.1",
189
- "@loopback/example-webpack": "^0.4.1",
190
- "@loopback/example-socketio": "^0.3.1",
191
- "@loopback/socketio": "^0.3.1",
192
- "@loopback/monorepo": "^0.3.1",
193
- "@loopback/tsdocs": "^2.6.1"
182
+ "@loopback/pooling": "^0.6.0",
183
+ "@loopback/typeorm": "^0.5.0",
184
+ "@loopback/example-graphql": "^0.5.0",
185
+ "@loopback/graphql": "^0.6.0",
186
+ "@loopback/filter": "^2.0.0",
187
+ "@loopback/rest-msgpack": "^0.6.0",
188
+ "@loopback/example-binding-resolution": "^0.5.0",
189
+ "@loopback/example-webpack": "^0.6.0",
190
+ "@loopback/example-socketio": "^0.4.0",
191
+ "@loopback/socketio": "^0.4.0",
192
+ "@loopback/monorepo": "^0.4.0",
193
+ "@loopback/tsdocs": "^3.0.0"
194
194
  }
195
195
  },
196
- "gitHead": "2a3b684ec76fa299d80b099abbf101358538cb75"
196
+ "gitHead": "00a62f630c19341ce399cec3a45563b1ead6e3b8"
197
197
  }