@lando/wordpress 1.3.0 → 1.4.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/0e18f58f-cfbf-4b4c-be35-e69b76cbb5b2.json +1 -0
- package/.nyc_output/processinfo/65d20d75-7644-4e68-906d-6357eab3b219.json +1 -0
- package/.nyc_output/processinfo/index.json +1 -1
- package/CHANGELOG.md +22 -2
- package/README.md +6 -0
- package/builders/wordpress.js +43 -11
- 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/d1a99336-ffa8-468c-9f51-a97cbf5fcb97.json +0 -1
- package/.nyc_output/processinfo/e4d96d13-bd8f-4d2e-828d-f8afd21e4fbb.json +0 -1
- /package/.nyc_output/{d1a99336-ffa8-468c-9f51-a97cbf5fcb97.json → 0e18f58f-cfbf-4b4c-be35-e69b76cbb5b2.json} +0 -0
- /package/.nyc_output/{e4d96d13-bd8f-4d2e-828d-f8afd21e4fbb.json → 65d20d75-7644-4e68-906d-6357eab3b219.json} +0 -0
package/.lando.yml
CHANGED
|
@@ -1,14 +1,24 @@
|
|
|
1
|
-
name:
|
|
1
|
+
name: docs.wordpress
|
|
2
|
+
proxy:
|
|
3
|
+
cli:
|
|
4
|
+
- docs.wordpress.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":2120,"argv":["/opt/hostedtoolcache/node/18.20.4/x64/bin/node","/home/runner/work/wordpress/wordpress/node_modules/.bin/mocha","--timeout","5000","test/**/*.spec.js"],"execArgv":[],"cwd":"/home/runner/work/wordpress/wordpress","time":1725636560209,"ppid":2109,"coverageFilename":"/home/runner/work/wordpress/wordpress/.nyc_output/0e18f58f-cfbf-4b4c-be35-e69b76cbb5b2.json","externalId":"","uuid":"0e18f58f-cfbf-4b4c-be35-e69b76cbb5b2","files":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"parent":null,"pid":2109,"argv":["/opt/hostedtoolcache/node/18.20.4/x64/bin/node","/home/runner/work/wordpress/wordpress/node_modules/.bin/nyc","--reporter=html","--reporter=text","mocha","--timeout","5000","test/**/*.spec.js"],"execArgv":[],"cwd":"/home/runner/work/wordpress/wordpress","time":1725636560048,"ppid":2108,"coverageFilename":"/home/runner/work/wordpress/wordpress/.nyc_output/65d20d75-7644-4e68-906d-6357eab3b219.json","externalId":"","uuid":"65d20d75-7644-4e68-906d-6357eab3b219","files":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"processes":{"
|
|
1
|
+
{"processes":{"0e18f58f-cfbf-4b4c-be35-e69b76cbb5b2":{"parent":null,"children":[]},"65d20d75-7644-4e68-906d-6357eab3b219":{"parent":null,"children":[]}},"files":{},"externalIds":{}}
|
package/CHANGELOG.md
CHANGED
|
@@ -1,11 +1,31 @@
|
|
|
1
|
+
## {{ UNRELEASED_VERSION }} - [{{ UNRELEASED_DATE }}]({{ UNRELEASED_LINK }})
|
|
2
|
+
|
|
3
|
+
## v1.4.1 - [September 6, 2024](https://github.com/lando/wordpress/releases/tag/v1.4.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.4.0 - [May 27, 2024](https://github.com/lando/wordpress/releases/tag/v1.4.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.3.0 - [March 8, 2024](https://github.com/lando/wordpress/releases/tag/v1.3.0)
|
|
2
|
-
|
|
21
|
+
|
|
22
|
+
* Updated to latest database services.
|
|
3
23
|
|
|
4
24
|
## v1.2.1 - [March 4, 2024](https://github.com/lando/wordpress/releases/tag/v1.2.1)
|
|
5
25
|
|
|
6
26
|
### Fixes
|
|
7
27
|
|
|
8
|
-
* 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
|
|
9
29
|
|
|
10
30
|
## v1.2.0 - [February 22, 2024](https://github.com/lando/wordpress/releases/tag/v1.2.0)
|
|
11
31
|
|
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/wordpress/blob/main/CHANGELOG.md) and the [release notes](https://github.com/lando/wordpress/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/wordpress/graphs/contributors">
|
package/builders/wordpress.js
CHANGED
|
@@ -48,6 +48,18 @@ const getServices = options => ({
|
|
|
48
48
|
},
|
|
49
49
|
});
|
|
50
50
|
|
|
51
|
+
/*
|
|
52
|
+
* Helper to get proxy config
|
|
53
|
+
*/
|
|
54
|
+
const getProxy = (options, proxyService = 'appserver') => {
|
|
55
|
+
// get any intial proxy stuff for proxyService
|
|
56
|
+
const urls = _.get(options, `_app.config.proxy.${proxyService}`, []);
|
|
57
|
+
// add
|
|
58
|
+
urls.push(`${options.app}.${options._app._config.domain}`);
|
|
59
|
+
// return
|
|
60
|
+
return {[proxyService]: _.uniq(_.compact(urls))};
|
|
61
|
+
};
|
|
62
|
+
|
|
51
63
|
/*
|
|
52
64
|
* Helper to get service config
|
|
53
65
|
*/
|
|
@@ -117,7 +129,20 @@ const toolingDefaults = {
|
|
|
117
129
|
},
|
|
118
130
|
};
|
|
119
131
|
|
|
120
|
-
//
|
|
132
|
+
// MariaDB cli commands
|
|
133
|
+
const mariadbCli = {
|
|
134
|
+
service: ':host',
|
|
135
|
+
description: 'Drops into a MariaDB shell on a database service',
|
|
136
|
+
cmd: 'mariadb -uroot',
|
|
137
|
+
options: {
|
|
138
|
+
host: {
|
|
139
|
+
description: 'The database service to use',
|
|
140
|
+
default: 'database',
|
|
141
|
+
alias: ['h'],
|
|
142
|
+
},
|
|
143
|
+
},
|
|
144
|
+
};
|
|
145
|
+
// MySQL DB cli commands
|
|
121
146
|
const mysqlCli = {
|
|
122
147
|
service: ':host',
|
|
123
148
|
description: 'Drops into a MySQL shell on a database service',
|
|
@@ -130,6 +155,7 @@ const mysqlCli = {
|
|
|
130
155
|
},
|
|
131
156
|
},
|
|
132
157
|
};
|
|
158
|
+
// Postgres DB cli commands
|
|
133
159
|
const postgresCli = {
|
|
134
160
|
service: ':host',
|
|
135
161
|
description: 'Drops into a psql shell on a database service',
|
|
@@ -149,13 +175,19 @@ const postgresCli = {
|
|
|
149
175
|
*/
|
|
150
176
|
const getDbTooling = database => {
|
|
151
177
|
// Make sure we strip out any version number
|
|
152
|
-
|
|
178
|
+
const db = database.split(':')[0];
|
|
179
|
+
const ver = database.split(':')[1];
|
|
153
180
|
// Choose wisely
|
|
154
|
-
if (
|
|
181
|
+
if (db === 'mysql') {
|
|
182
|
+
return {mysql: mysqlCli};
|
|
183
|
+
} else if (db === 'mariadb' && ver < 10.4) {
|
|
184
|
+
// Use mysql command for MariaDB 10.3.x and below
|
|
155
185
|
return {mysql: mysqlCli};
|
|
156
|
-
} else if (
|
|
186
|
+
} else if (db === 'mariadb') {
|
|
187
|
+
return {mariadb: mariadbCli};
|
|
188
|
+
} else if (db === 'postgres') {
|
|
157
189
|
return {psql: postgresCli};
|
|
158
|
-
} else if (
|
|
190
|
+
} else if (db === 'mongo') {
|
|
159
191
|
return {mongo: {
|
|
160
192
|
service: 'database',
|
|
161
193
|
description: 'Drop into the mongo shell',
|
|
@@ -229,19 +261,19 @@ module.exports = {
|
|
|
229
261
|
'/usr/local/bin/wp',
|
|
230
262
|
getWpStatusCheck(options.version),
|
|
231
263
|
));
|
|
232
|
-
// Rebase on top of any default config we might already have
|
|
233
|
-
options.defaultFiles = _.merge({}, getConfigDefaults(_.cloneDeep(options)), options.defaultFiles);
|
|
234
264
|
|
|
235
|
-
options.services = _.merge({}, getServices(options), options.services);
|
|
236
|
-
options.tooling = _.merge({}, getTooling(options), options.tooling);
|
|
237
265
|
// Switch the proxy if needed
|
|
238
266
|
if (!_.has(options, 'proxyService')) {
|
|
239
267
|
if (_.startsWith(options.via, 'nginx')) options.proxyService = 'appserver_nginx';
|
|
240
268
|
else if (_.startsWith(options.via, 'apache')) options.proxyService = 'appserver';
|
|
241
269
|
}
|
|
242
|
-
options.proxy = _.set(options.proxy, options.proxyService, [`${options.app}.${options._app._config.domain}`]);
|
|
243
270
|
|
|
244
|
-
//
|
|
271
|
+
// Rebase on top of any default config we might already have
|
|
272
|
+
options.defaultFiles = _.merge({}, getConfigDefaults(_.cloneDeep(options)), options.defaultFiles);
|
|
273
|
+
options.proxy = _.merge({}, getProxy(options, options.proxyService), options.proxy);
|
|
274
|
+
options.services = _.merge({}, getServices(options), options.services);
|
|
275
|
+
options.tooling = _.merge({}, getTooling(options), options.tooling);
|
|
276
|
+
|
|
245
277
|
// Send downstream
|
|
246
278
|
super(id, options);
|
|
247
279
|
};
|
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-06T15:29:20.422Z
|
|
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/wordpress",
|
|
3
3
|
"description": "A Lando plugin that provides a tight integration with WordPress.",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.4.1",
|
|
5
5
|
"author": "Mike Pirog @pirog",
|
|
6
6
|
"license": "GPL-3.0",
|
|
7
7
|
"repository": "lando/wordpress",
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
45
|
"@lando/apache": "^1.0.0",
|
|
46
|
-
"@lando/mariadb": "^1.
|
|
46
|
+
"@lando/mariadb": "^1.3.0",
|
|
47
47
|
"@lando/mssql": "^1.0.0",
|
|
48
48
|
"@lando/mysql": "^1.1.0",
|
|
49
49
|
"@lando/nginx": "^0.11.0",
|
|
@@ -53,8 +53,8 @@
|
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
|
55
55
|
"@babel/eslint-parser": "^7.16.0",
|
|
56
|
-
"@lando/leia": "^0.
|
|
57
|
-
"@lando/vitepress-theme-default-plus": "^1.0.
|
|
56
|
+
"@lando/leia": "^1.0.0-beta.3",
|
|
57
|
+
"@lando/vitepress-theme-default-plus": "^1.0.2",
|
|
58
58
|
"chai": "^4.3.4",
|
|
59
59
|
"command-line-test": "^1.0.10",
|
|
60
60
|
"eslint": "^7.32.0",
|
|
@@ -75,9 +75,9 @@
|
|
|
75
75
|
"lodash"
|
|
76
76
|
],
|
|
77
77
|
"dist": {
|
|
78
|
-
"integrity": "sha512-
|
|
79
|
-
"shasum": "
|
|
80
|
-
"filename": "lando-wordpress-1.
|
|
81
|
-
"unpackedSize":
|
|
78
|
+
"integrity": "sha512-gV4jlvh8EQb9vk5R34Mgw2025PeYFTby1eg3D8UvcrE1rozFftYhdnuy0NszYYAHL68vUurHErnA831dNIXZ2g==",
|
|
79
|
+
"shasum": "c8d8afe9ce1a6e60ba373c7df622ba7b903d6e6d",
|
|
80
|
+
"filename": "lando-wordpress-1.4.1.tgz",
|
|
81
|
+
"unpackedSize": 13718334
|
|
82
82
|
}
|
|
83
83
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"parent":null,"pid":1872,"argv":["/opt/hostedtoolcache/node/18.19.1/x64/bin/node","/home/runner/work/wordpress/wordpress/node_modules/.bin/mocha","--timeout","5000","test/**/*.spec.js"],"execArgv":[],"cwd":"/home/runner/work/wordpress/wordpress","time":1710179882228,"ppid":1861,"coverageFilename":"/home/runner/work/wordpress/wordpress/.nyc_output/d1a99336-ffa8-468c-9f51-a97cbf5fcb97.json","externalId":"","uuid":"d1a99336-ffa8-468c-9f51-a97cbf5fcb97","files":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"parent":null,"pid":1861,"argv":["/opt/hostedtoolcache/node/18.19.1/x64/bin/node","/home/runner/work/wordpress/wordpress/node_modules/.bin/nyc","--reporter=html","--reporter=text","mocha","--timeout","5000","test/**/*.spec.js"],"execArgv":[],"cwd":"/home/runner/work/wordpress/wordpress","time":1710179882077,"ppid":1860,"coverageFilename":"/home/runner/work/wordpress/wordpress/.nyc_output/e4d96d13-bd8f-4d2e-828d-f8afd21e4fbb.json","externalId":"","uuid":"e4d96d13-bd8f-4d2e-828d-f8afd21e4fbb","files":[]}
|
|
File without changes
|
|
File without changes
|