@lando/laravel 1.4.0 → 1.5.1
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/.lando.yml +19 -9
- package/.nyc_output/processinfo/22d05f1e-97ef-418d-8dfd-0ac40989dbdb.json +1 -0
- package/.nyc_output/processinfo/3bb7b6b1-725d-46ef-a48e-6941aeebf180.json +1 -0
- package/.nyc_output/processinfo/index.json +1 -1
- package/CHANGELOG.md +24 -4
- package/README.md +6 -0
- package/builders/laravel.js +44 -12
- package/coverage/index.html +1 -1
- package/node_modules/@lando/mariadb/CHANGELOG.md +8 -0
- package/node_modules/@lando/mariadb/README.md +6 -0
- package/node_modules/@lando/mariadb/builders/mariadb.js +12 -2
- package/node_modules/@lando/mariadb/package.json +7 -7
- package/package.json +8 -8
- package/.nyc_output/processinfo/23845f2a-0eaf-4d6a-8885-30cd0027c66d.json +0 -1
- package/.nyc_output/processinfo/982ccd0d-9f58-48c0-9727-8cdb91b6f87c.json +0 -1
- /package/.nyc_output/{23845f2a-0eaf-4d6a-8885-30cd0027c66d.json → 22d05f1e-97ef-418d-8dfd-0ac40989dbdb.json} +0 -0
- /package/.nyc_output/{982ccd0d-9f58-48c0-9727-8cdb91b6f87c.json → 3bb7b6b1-725d-46ef-a48e-6941aeebf180.json} +0 -0
package/.lando.yml
CHANGED
|
@@ -1,14 +1,24 @@
|
|
|
1
|
-
name:
|
|
1
|
+
name: docs.laravel
|
|
2
|
+
proxy:
|
|
3
|
+
cli:
|
|
4
|
+
- docs.laravel.lndo.site:5173
|
|
2
5
|
services:
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
6
|
+
cli:
|
|
7
|
+
api: 4
|
|
8
|
+
image: node:18
|
|
9
|
+
command: sleep infinity
|
|
10
|
+
ports:
|
|
11
|
+
- 5173:5173/http
|
|
7
12
|
scanner: false
|
|
8
|
-
|
|
9
|
-
|
|
13
|
+
user: node
|
|
14
|
+
build:
|
|
15
|
+
app: |
|
|
16
|
+
npm install
|
|
10
17
|
tooling:
|
|
11
18
|
node:
|
|
12
|
-
service:
|
|
19
|
+
service: cli
|
|
13
20
|
npm:
|
|
14
|
-
service:
|
|
21
|
+
service: cli
|
|
22
|
+
vitepress:
|
|
23
|
+
service: cli
|
|
24
|
+
cmd: npx vitepress
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"parent":null,"pid":2136,"argv":["/opt/hostedtoolcache/node/18.20.4/x64/bin/node","/home/runner/work/laravel/laravel/node_modules/.bin/nyc","--reporter=html","--reporter=text","mocha","--timeout","5000","test/**/*.spec.js"],"execArgv":[],"cwd":"/home/runner/work/laravel/laravel","time":1725639514768,"ppid":2135,"coverageFilename":"/home/runner/work/laravel/laravel/.nyc_output/22d05f1e-97ef-418d-8dfd-0ac40989dbdb.json","externalId":"","uuid":"22d05f1e-97ef-418d-8dfd-0ac40989dbdb","files":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"parent":null,"pid":2147,"argv":["/opt/hostedtoolcache/node/18.20.4/x64/bin/node","/home/runner/work/laravel/laravel/node_modules/.bin/mocha","--timeout","5000","test/**/*.spec.js"],"execArgv":[],"cwd":"/home/runner/work/laravel/laravel","time":1725639514925,"ppid":2136,"coverageFilename":"/home/runner/work/laravel/laravel/.nyc_output/3bb7b6b1-725d-46ef-a48e-6941aeebf180.json","externalId":"","uuid":"3bb7b6b1-725d-46ef-a48e-6941aeebf180","files":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"processes":{"
|
|
1
|
+
{"processes":{"22d05f1e-97ef-418d-8dfd-0ac40989dbdb":{"parent":null,"children":[]},"3bb7b6b1-725d-46ef-a48e-6941aeebf180":{"parent":null,"children":[]}},"files":{},"externalIds":{}}
|
package/CHANGELOG.md
CHANGED
|
@@ -1,12 +1,31 @@
|
|
|
1
|
+
## {{ UNRELEASED_VERSION }} - [{{ UNRELEASED_DATE }}]({{ UNRELEASED_LINK }})
|
|
2
|
+
|
|
3
|
+
## v1.5.1 - [September 6, 2024](https://github.com/lando/laravel/releases/tag/v1.5.1)
|
|
4
|
+
|
|
5
|
+
## Bug Fixes
|
|
6
|
+
|
|
7
|
+
* Fixed bug causing default `proxy` settings to be clobbered by user specified ones
|
|
8
|
+
|
|
9
|
+
## Internal
|
|
10
|
+
|
|
11
|
+
* Updated DevOps to use new `lando exec`
|
|
12
|
+
* Updated `ubuntu` test runners to `24.04`
|
|
13
|
+
|
|
14
|
+
## v1.5.0 - [May 27, 2024](https://github.com/lando/laravel/releases/tag/v1.5.0)
|
|
15
|
+
|
|
16
|
+
* Updated mariadb plugin [#51](https://github.com/lando/mariadb/issues/51)
|
|
17
|
+
* Use mysql command for MariaDB 10.3.x and below
|
|
18
|
+
* Cleaned up test comments
|
|
19
|
+
|
|
1
20
|
## v1.4.0 - [March 8, 2024](https://github.com/lando/laravel/releases/tag/v1.4.0)
|
|
2
|
-
* Updated to latest database services.
|
|
3
21
|
|
|
22
|
+
* Updated to latest database services.
|
|
4
23
|
|
|
5
24
|
## v1.3.1 - [February 29, 2024](https://github.com/lando/laravel/releases/tag/v1.3.1)
|
|
6
25
|
|
|
7
26
|
### Fixes
|
|
8
27
|
|
|
9
|
-
* Improved `database` selection for purposes of `config` loading, fixes some `database` bootup issues when the `database` type is
|
|
28
|
+
* Improved `database` selection for purposes of `config` loading, fixes some `database` bootup issues when the `database` type is overridden downstream
|
|
10
29
|
|
|
11
30
|
## v1.3.0 - [February 27, 2024](https://github.com/lando/laravel/releases/tag/v1.3.0)
|
|
12
31
|
|
|
@@ -49,8 +68,9 @@
|
|
|
49
68
|
* Add compatibility for MySQL 8.x [lando/lando#1426](https://github.com/lando/lando/issues/1462)
|
|
50
69
|
|
|
51
70
|
## v0.7.0 - [December 12, 2022](https://github.com/lando/laravel/releases/tag/v0.7.0)
|
|
52
|
-
|
|
53
|
-
|
|
71
|
+
|
|
72
|
+
* Added bundle-dependencies to release process.
|
|
73
|
+
* Fixed bug in plugin dogfooding test.
|
|
54
74
|
|
|
55
75
|
## v0.6.0 - [September 8, 2022](https://github.com/lando/laravel/releases/tag/v0.6.0)
|
|
56
76
|
|
package/README.md
CHANGED
|
@@ -40,6 +40,12 @@ If you'd like to report a bug or submit a feature request then please [use the i
|
|
|
40
40
|
|
|
41
41
|
We try to log all changes big and small in both [THE CHANGELOG](https://github.com/lando/laravel/blob/main/CHANGELOG.md) and the [release notes](https://github.com/lando/laravel/releases).
|
|
42
42
|
|
|
43
|
+
|
|
44
|
+
## Maintainers
|
|
45
|
+
|
|
46
|
+
* [@pirog](https://github.com/pirog)
|
|
47
|
+
* [@reynoldsalec](https://github.com/reynoldsalec)
|
|
48
|
+
|
|
43
49
|
## Contributors
|
|
44
50
|
|
|
45
51
|
<a href="https://github.com/lando/laravel/graphs/contributors">
|
package/builders/laravel.js
CHANGED
|
@@ -78,7 +78,20 @@ const toolingDefaults = {
|
|
|
78
78
|
},
|
|
79
79
|
};
|
|
80
80
|
|
|
81
|
-
//
|
|
81
|
+
// MariaDB cli commands
|
|
82
|
+
const mariadbCli = {
|
|
83
|
+
service: ':host',
|
|
84
|
+
description: 'Drops into a MariaDB shell on a database service',
|
|
85
|
+
cmd: 'mariadb -uroot',
|
|
86
|
+
options: {
|
|
87
|
+
host: {
|
|
88
|
+
description: 'The database service to use',
|
|
89
|
+
default: 'database',
|
|
90
|
+
alias: ['h'],
|
|
91
|
+
},
|
|
92
|
+
},
|
|
93
|
+
};
|
|
94
|
+
// MySQL cli commands
|
|
82
95
|
const mysqlCli = {
|
|
83
96
|
service: ':host',
|
|
84
97
|
description: 'Drops into a MySQL shell on a database service',
|
|
@@ -91,6 +104,7 @@ const mysqlCli = {
|
|
|
91
104
|
},
|
|
92
105
|
},
|
|
93
106
|
};
|
|
107
|
+
// Postgres cli commands
|
|
94
108
|
const postgresCli = {
|
|
95
109
|
service: ':host',
|
|
96
110
|
description: 'Drops into a psql shell on a database service',
|
|
@@ -171,13 +185,19 @@ const getServices = options => ({
|
|
|
171
185
|
*/
|
|
172
186
|
const getDbTooling = database => {
|
|
173
187
|
// Make sure we strip out any version number
|
|
174
|
-
|
|
188
|
+
const db = database.split(':')[0];
|
|
189
|
+
const ver = database.split(':')[1];
|
|
175
190
|
// Choose wisely
|
|
176
|
-
if (
|
|
191
|
+
if (db === 'mysql') {
|
|
192
|
+
return {mysql: mysqlCli};
|
|
193
|
+
} else if (db === 'mariadb' && ver < 10.4) {
|
|
194
|
+
// Use mysql command for MariaDB 10.3.x and below
|
|
177
195
|
return {mysql: mysqlCli};
|
|
178
|
-
} else if (
|
|
196
|
+
} else if (db === 'mariadb') {
|
|
197
|
+
return {mariadb: mariadbCli};
|
|
198
|
+
} else if (db === 'postgres') {
|
|
179
199
|
return {psql: postgresCli};
|
|
180
|
-
} else if (
|
|
200
|
+
} else if (db === 'mongo') {
|
|
181
201
|
return {mongo: {
|
|
182
202
|
service: 'database',
|
|
183
203
|
description: 'Drop into the mongo shell',
|
|
@@ -185,6 +205,18 @@ const getDbTooling = database => {
|
|
|
185
205
|
}
|
|
186
206
|
};
|
|
187
207
|
|
|
208
|
+
/*
|
|
209
|
+
* Helper to get proxy config
|
|
210
|
+
*/
|
|
211
|
+
const getProxy = (options, proxyService = 'appserver') => {
|
|
212
|
+
// get any intial proxy stuff for proxyService
|
|
213
|
+
const urls = _.get(options, `_app.config.proxy.${proxyService}`, []);
|
|
214
|
+
// add
|
|
215
|
+
urls.push(`${options.app}.${options._app._config.domain}`);
|
|
216
|
+
// return
|
|
217
|
+
return {[proxyService]: _.uniq(_.compact(urls))};
|
|
218
|
+
};
|
|
219
|
+
|
|
188
220
|
/*
|
|
189
221
|
* Helper to get service config
|
|
190
222
|
*/
|
|
@@ -247,8 +279,15 @@ module.exports = {
|
|
|
247
279
|
options.services.cache = getCache(options.cache);
|
|
248
280
|
}
|
|
249
281
|
|
|
282
|
+
// Switch the proxy if needed
|
|
283
|
+
if (!_.has(options, 'proxyService')) {
|
|
284
|
+
if (_.startsWith(options.via, 'nginx')) options.proxyService = 'appserver_nginx';
|
|
285
|
+
else if (_.startsWith(options.via, 'apache')) options.proxyService = 'appserver';
|
|
286
|
+
}
|
|
287
|
+
|
|
250
288
|
// Rebase on top of any default config we might already have
|
|
251
289
|
options.defaultFiles = _.merge({}, getConfigDefaults(_.cloneDeep(options)), options.defaultFiles);
|
|
290
|
+
options.proxy = _.merge({}, getProxy(options, options.proxyService), options.proxy);
|
|
252
291
|
options.services = _.merge({}, getServices(options), options.services);
|
|
253
292
|
options.tooling = _.merge({}, getTooling(options), options.tooling);
|
|
254
293
|
|
|
@@ -259,13 +298,6 @@ module.exports = {
|
|
|
259
298
|
cmd: `php /app/${options.webroot}/../artisan`,
|
|
260
299
|
};
|
|
261
300
|
|
|
262
|
-
// Switch the proxy if needed
|
|
263
|
-
if (!_.has(options, 'proxyService')) {
|
|
264
|
-
if (_.startsWith(options.via, 'nginx')) options.proxyService = 'appserver_nginx';
|
|
265
|
-
else if (_.startsWith(options.via, 'apache')) options.proxyService = 'appserver';
|
|
266
|
-
}
|
|
267
|
-
options.proxy = _.set(options.proxy, options.proxyService, [`${options.app}.${options._app._config.domain}`]);
|
|
268
|
-
|
|
269
301
|
// Send downstream
|
|
270
302
|
super(id, _.merge({}, config, options));
|
|
271
303
|
};
|
package/coverage/index.html
CHANGED
|
@@ -86,7 +86,7 @@
|
|
|
86
86
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
87
87
|
Code coverage generated by
|
|
88
88
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
89
|
-
at 2024-
|
|
89
|
+
at 2024-09-06T16:18:35.127Z
|
|
90
90
|
</div>
|
|
91
91
|
<script src="prettify.js"></script>
|
|
92
92
|
<script>
|
|
@@ -1,3 +1,11 @@
|
|
|
1
|
+
## v1.3.0 - [April 11, 2024](https://github.com/lando/mariadb/releases/tag/v1.3.0)
|
|
2
|
+
|
|
3
|
+
* Updated available version of Mariadb to 11.3. [#53](https://github.com/lando/mariadb/pull/53)
|
|
4
|
+
|
|
5
|
+
## v1.2.0 - [March 19, 2024](https://github.com/lando/mariadb/releases/tag/v1.2.0)
|
|
6
|
+
|
|
7
|
+
* Updated available version of Mariadb. [#45](https://github.com/lando/mariadb/pull/45)
|
|
8
|
+
|
|
1
9
|
## v1.1.0 - [March 8, 2024](https://github.com/lando/mariadb/releases/tag/v1.1.0)
|
|
2
10
|
|
|
3
11
|
### Fixes
|
|
@@ -33,6 +33,12 @@ If you'd like to report a bug or submit a feature request then please [use the i
|
|
|
33
33
|
|
|
34
34
|
We try to log all changes big and small in both [THE CHANGELOG](https://github.com/lando/mariadb/blob/main/CHANGELOG.md) and the [release notes](https://github.com/lando/mariadb/releases).
|
|
35
35
|
|
|
36
|
+
|
|
37
|
+
## Maintainers
|
|
38
|
+
|
|
39
|
+
* [@pirog](https://github.com/pirog)
|
|
40
|
+
* [@reynoldsalec](https://github.com/reynoldsalec)
|
|
41
|
+
|
|
36
42
|
## Contributors
|
|
37
43
|
|
|
38
44
|
<a href="https://github.com/lando/mariadb/graphs/contributors">
|
|
@@ -9,9 +9,19 @@ module.exports = {
|
|
|
9
9
|
name: 'mariadb',
|
|
10
10
|
config: {
|
|
11
11
|
version: '10.3',
|
|
12
|
-
supported: ['
|
|
13
|
-
|
|
12
|
+
supported: ['11.3', '11.2', '11.1', '11.0', '10.11', '10.10', '10.9',
|
|
13
|
+
'10.8', '10.7', '10.6', '10.5', '10.4', '10.3', '10.2', '10.1'],
|
|
14
|
+
legacy: ['10.10', '10.9', '10.8', '10.7', '10.3', '10.2', '10.1'],
|
|
14
15
|
pinPairs: {
|
|
16
|
+
'11.3': 'bitnami/mariadb:11.3.2-debian-12-r1',
|
|
17
|
+
'11.2': 'bitnami/mariadb:11.2.3-debian-12-r4',
|
|
18
|
+
'11.1': 'bitnami/mariadb:11.1.4-debian-12-r4',
|
|
19
|
+
'11.0': 'bitnami/mariadb:11.0.5-debian-12-r5',
|
|
20
|
+
'10.11': 'bitnami/mariadb:10.11.7-debian-12-r6',
|
|
21
|
+
'10.10': 'bitnami/mariadb:10.10.7-debian-11-r6',
|
|
22
|
+
'10.9': 'bitnami/mariadb:10.9.8-debian-11-r22',
|
|
23
|
+
'10.8': 'bitnami/mariadb:10.8.8-debian-11-r5',
|
|
24
|
+
'10.7': 'bitnami/mariadb:10.7.8-debian-11-r6',
|
|
15
25
|
'10.6': 'bitnami/mariadb:10.6.5-debian-10-r30',
|
|
16
26
|
'10.5': 'bitnami/mariadb:10.5.8-debian-10-r74',
|
|
17
27
|
'10.4': 'bitnami/mariadb:10.4.17-debian-10-r84',
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lando/mariadb",
|
|
3
3
|
"description": "A Lando plugin that provides a tight integration with mariadb.",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.3.0",
|
|
5
5
|
"author": "Mike Pirog @pirog",
|
|
6
6
|
"license": "GPL-3.0",
|
|
7
7
|
"repository": "lando/mariadb",
|
|
@@ -46,8 +46,8 @@
|
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
48
|
"@babel/eslint-parser": "^7.16.0",
|
|
49
|
-
"@lando/leia": "^0.
|
|
50
|
-
"@lando/vitepress-theme-default-plus": "^1.0.
|
|
49
|
+
"@lando/leia": "^1.0.0-beta.3",
|
|
50
|
+
"@lando/vitepress-theme-default-plus": "^1.0.1",
|
|
51
51
|
"chai": "^4.3.4",
|
|
52
52
|
"command-line-test": "^1.0.10",
|
|
53
53
|
"eslint": "^7.32.0",
|
|
@@ -61,9 +61,9 @@
|
|
|
61
61
|
"lodash"
|
|
62
62
|
],
|
|
63
63
|
"dist": {
|
|
64
|
-
"integrity": "sha512-
|
|
65
|
-
"shasum": "
|
|
66
|
-
"filename": "lando-mariadb-1.
|
|
67
|
-
"unpackedSize":
|
|
64
|
+
"integrity": "sha512-KS+XSsRaPbNKzzIqFgWeqzrZdW1u9687rDNby+ubOXHiIswReyil+lXOkQ6qYIl13kF3zINihEKzlMpWU/e+YQ==",
|
|
65
|
+
"shasum": "ddda15f427edcd3c39c6c0de143c04eda6eb48d9",
|
|
66
|
+
"filename": "lando-mariadb-1.3.0.tgz",
|
|
67
|
+
"unpackedSize": 1470246
|
|
68
68
|
}
|
|
69
69
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lando/laravel",
|
|
3
3
|
"description": "A Lando plugin that provides a tight integration with Laravel.",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.5.1",
|
|
5
5
|
"author": "Mike Pirog @pirog",
|
|
6
6
|
"license": "GPL-3.0",
|
|
7
7
|
"repository": "lando/laravel",
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"test": "npm run lint && npm run test:unit"
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@lando/mariadb": "^1.
|
|
45
|
+
"@lando/mariadb": "^1.3.0",
|
|
46
46
|
"@lando/memcached": "^1.1.0",
|
|
47
47
|
"@lando/mssql": "^1.0.0",
|
|
48
48
|
"@lando/mysql": "^1.1.0",
|
|
@@ -54,8 +54,8 @@
|
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
56
|
"@babel/eslint-parser": "^7.23.10",
|
|
57
|
-
"@lando/leia": "^0.
|
|
58
|
-
"@lando/vitepress-theme-default-plus": "^1.0.
|
|
57
|
+
"@lando/leia": "^1.0.0-beta.3",
|
|
58
|
+
"@lando/vitepress-theme-default-plus": "^1.0.2",
|
|
59
59
|
"chai": "~4.3.4",
|
|
60
60
|
"command-line-test": "^1.0.10",
|
|
61
61
|
"eslint": "^8.56.0",
|
|
@@ -77,9 +77,9 @@
|
|
|
77
77
|
"lodash"
|
|
78
78
|
],
|
|
79
79
|
"dist": {
|
|
80
|
-
"integrity": "sha512-
|
|
81
|
-
"shasum": "
|
|
82
|
-
"filename": "lando-laravel-1.
|
|
83
|
-
"unpackedSize":
|
|
80
|
+
"integrity": "sha512-MTTjspW4jmM2dGEIKLkkZX/3oPOWXV34saOOrGHN6aagIm5VJ7/1n1P3IfjfplLFvqjCbjIyk497gZqyAja7MQ==",
|
|
81
|
+
"shasum": "03ae45dec8f8d971d8cb8591b27f81c02368bfdf",
|
|
82
|
+
"filename": "lando-laravel-1.5.1.tgz",
|
|
83
|
+
"unpackedSize": 15130603
|
|
84
84
|
}
|
|
85
85
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"parent":null,"pid":2022,"argv":["/opt/hostedtoolcache/node/18.19.1/x64/bin/node","/home/runner/work/laravel/laravel/node_modules/.bin/nyc","--reporter=html","--reporter=text","mocha","--timeout","5000","test/**/*.spec.js"],"execArgv":[],"cwd":"/home/runner/work/laravel/laravel","time":1710179763961,"ppid":2021,"coverageFilename":"/home/runner/work/laravel/laravel/.nyc_output/23845f2a-0eaf-4d6a-8885-30cd0027c66d.json","externalId":"","uuid":"23845f2a-0eaf-4d6a-8885-30cd0027c66d","files":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"parent":null,"pid":2033,"argv":["/opt/hostedtoolcache/node/18.19.1/x64/bin/node","/home/runner/work/laravel/laravel/node_modules/.bin/mocha","--timeout","5000","test/**/*.spec.js"],"execArgv":[],"cwd":"/home/runner/work/laravel/laravel","time":1710179764113,"ppid":2022,"coverageFilename":"/home/runner/work/laravel/laravel/.nyc_output/982ccd0d-9f58-48c0-9727-8cdb91b6f87c.json","externalId":"","uuid":"982ccd0d-9f58-48c0-9727-8cdb91b6f87c","files":[]}
|
|
File without changes
|
|
File without changes
|