@lando/wordpress 1.2.0 → 1.3.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.
Files changed (56) hide show
  1. package/.nyc_output/processinfo/d1a99336-ffa8-468c-9f51-a97cbf5fcb97.json +1 -0
  2. package/.nyc_output/processinfo/e4d96d13-bd8f-4d2e-828d-f8afd21e4fbb.json +1 -0
  3. package/.nyc_output/processinfo/index.json +1 -1
  4. package/CHANGELOG.md +9 -0
  5. package/builders/wordpress.js +11 -3
  6. package/coverage/index.html +1 -1
  7. package/node_modules/@lando/mariadb/.eslintignore +3 -2
  8. package/node_modules/@lando/mariadb/CHANGELOG.md +5 -0
  9. package/node_modules/@lando/mariadb/netlify.toml +19 -4
  10. package/node_modules/@lando/mariadb/package.json +11 -11
  11. package/node_modules/@lando/mariadb/tmpfile +0 -0
  12. package/node_modules/@lando/mariadb/utils/get-default-healthcheck.js +12 -5
  13. package/node_modules/@lando/mysql/.eslintignore +3 -2
  14. package/node_modules/@lando/mysql/.lando.yml +3 -3
  15. package/node_modules/@lando/mysql/.node-version +1 -1
  16. package/node_modules/@lando/mysql/.tool-versions +1 -1
  17. package/node_modules/@lando/mysql/CHANGELOG.md +16 -7
  18. package/node_modules/@lando/mysql/builders/mysql.js +2 -3
  19. package/node_modules/@lando/mysql/netlify.toml +20 -5
  20. package/node_modules/@lando/mysql/package.json +19 -13
  21. package/node_modules/@lando/mysql/tmpfile +0 -0
  22. package/node_modules/@lando/mysql/utils/get-default-healthcheck.js +12 -5
  23. package/node_modules/@lando/postgres/.eslintignore +3 -2
  24. package/node_modules/@lando/postgres/.lando.yml +2 -2
  25. package/node_modules/@lando/postgres/.node-version +1 -1
  26. package/node_modules/@lando/postgres/.nyc_output/processinfo/3380cdae-4eeb-4e34-9b80-ce510e7ff922.json +1 -0
  27. package/node_modules/@lando/postgres/.nyc_output/processinfo/4a260cab-351e-4105-aba4-06e6f872bf12.json +1 -0
  28. package/node_modules/@lando/postgres/.nyc_output/processinfo/index.json +1 -1
  29. package/node_modules/@lando/postgres/CHANGELOG.md +21 -9
  30. package/node_modules/@lando/postgres/coverage/index.html +1 -1
  31. package/node_modules/@lando/postgres/netlify.toml +20 -5
  32. package/node_modules/@lando/postgres/package.json +14 -14
  33. package/node_modules/@lando/postgres/tmpfile +0 -0
  34. package/node_modules/@lando/postgres/utils/get-default-healthcheck.js +9 -4
  35. package/package.json +9 -9
  36. package/.nyc_output/processinfo/60bcd701-7f12-46d8-9181-6dc35120f897.json +0 -1
  37. package/.nyc_output/processinfo/c429492a-cdef-42c0-a2d6-3a207362156d.json +0 -1
  38. package/node_modules/@lando/mysql/.nyc_output/processinfo/1a23c70c-a7a3-49fb-85dd-aea2d52097d6.json +0 -1
  39. package/node_modules/@lando/mysql/.nyc_output/processinfo/b5d95131-b114-4d1d-afe8-aba81699694b.json +0 -1
  40. package/node_modules/@lando/mysql/.nyc_output/processinfo/index.json +0 -1
  41. package/node_modules/@lando/mysql/coverage/base.css +0 -224
  42. package/node_modules/@lando/mysql/coverage/block-navigation.js +0 -87
  43. package/node_modules/@lando/mysql/coverage/favicon.png +0 -0
  44. package/node_modules/@lando/mysql/coverage/index.html +0 -101
  45. package/node_modules/@lando/mysql/coverage/prettify.css +0 -1
  46. package/node_modules/@lando/mysql/coverage/prettify.js +0 -2
  47. package/node_modules/@lando/mysql/coverage/sort-arrow-sprite.png +0 -0
  48. package/node_modules/@lando/mysql/coverage/sorter.js +0 -196
  49. package/node_modules/@lando/postgres/.nyc_output/0a5ce68d-8d86-48df-9fbb-0ee252638471.json +0 -1
  50. package/node_modules/@lando/postgres/.nyc_output/df4f4d19-75ab-4aa5-b8da-514bd17c5bec.json +0 -1
  51. package/node_modules/@lando/postgres/.nyc_output/processinfo/0a5ce68d-8d86-48df-9fbb-0ee252638471.json +0 -1
  52. package/node_modules/@lando/postgres/.nyc_output/processinfo/df4f4d19-75ab-4aa5-b8da-514bd17c5bec.json +0 -1
  53. /package/.nyc_output/{60bcd701-7f12-46d8-9181-6dc35120f897.json → d1a99336-ffa8-468c-9f51-a97cbf5fcb97.json} +0 -0
  54. /package/.nyc_output/{c429492a-cdef-42c0-a2d6-3a207362156d.json → e4d96d13-bd8f-4d2e-828d-f8afd21e4fbb.json} +0 -0
  55. /package/node_modules/@lando/{mysql/.nyc_output/1a23c70c-a7a3-49fb-85dd-aea2d52097d6.json → postgres/.nyc_output/3380cdae-4eeb-4e34-9b80-ce510e7ff922.json} +0 -0
  56. /package/node_modules/@lando/{mysql/.nyc_output/b5d95131-b114-4d1d-afe8-aba81699694b.json → postgres/.nyc_output/4a260cab-351e-4105-aba4-06e6f872bf12.json} +0 -0
@@ -0,0 +1 @@
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":[]}
@@ -0,0 +1 @@
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":[]}
@@ -1 +1 @@
1
- {"processes":{"60bcd701-7f12-46d8-9181-6dc35120f897":{"parent":null,"children":[]},"c429492a-cdef-42c0-a2d6-3a207362156d":{"parent":null,"children":[]}},"files":{},"externalIds":{}}
1
+ {"processes":{"d1a99336-ffa8-468c-9f51-a97cbf5fcb97":{"parent":null,"children":[]},"e4d96d13-bd8f-4d2e-828d-f8afd21e4fbb":{"parent":null,"children":[]}},"files":{},"externalIds":{}}
package/CHANGELOG.md CHANGED
@@ -1,3 +1,12 @@
1
+ ## v1.3.0 - [March 8, 2024](https://github.com/lando/wordpress/releases/tag/v1.3.0)
2
+ * Updated to latest database services.
3
+
4
+ ## v1.2.1 - [March 4, 2024](https://github.com/lando/wordpress/releases/tag/v1.2.1)
5
+
6
+ ### Fixes
7
+
8
+ * Improved `database` selection for purposes of `config` loading, fixes some `database` bootup issues when the `database` type is overriden downstream
9
+
1
10
  ## v1.2.0 - [February 22, 2024](https://github.com/lando/wordpress/releases/tag/v1.2.0)
2
11
 
3
12
  ### New Features
@@ -65,6 +65,13 @@ const getServiceConfig = (options, types = ['php', 'server', 'vhosts']) => {
65
65
  return config;
66
66
  };
67
67
 
68
+ /*
69
+ * Helper to get database type
70
+ */
71
+ const getDatabaseType = options => {
72
+ return _.get(options, '_app.config.services.database.type', options.database) ?? 'mysql';
73
+ };
74
+
68
75
  // Tooling defaults
69
76
  const toolingDefaults = {
70
77
  'composer': {
@@ -163,11 +170,12 @@ const getConfigDefaults = options => {
163
170
  // Get the viaconf
164
171
  if (_.startsWith(options.via, 'nginx')) options.defaultFiles.vhosts = 'default.conf.tpl';
165
172
 
166
- // Get the default db conf
167
- const dbConfig = _.get(options, 'database', 'mysql');
173
+ // attempt to discover the database that is actually being used
174
+ // @NOTE: this will look to see if database is overridden
175
+ const dbConfig = getDatabaseType(options);
168
176
  const database = _.first(dbConfig.split(':'));
169
177
  const version = _.last(dbConfig.split(':')).substring(0, 2);
170
- if (database === 'mysql' || database === 'mariadb') {
178
+ if (database === 'wordpress-mysql' || database === 'mysql' || database === 'mariadb') {
171
179
  if (version === '8.') {
172
180
  options.defaultFiles.database = 'mysql8.cnf';
173
181
  } else {
@@ -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-02-22T15:48:01.020Z
89
+ at 2024-03-11T17:58:02.429Z
90
90
  </div>
91
91
  <script src="prettify.js"></script>
92
92
  <script>
@@ -1,4 +1,5 @@
1
- .temp
2
- .cache
1
+ temp
2
+ cache
3
3
  dist
4
4
  _site
5
+ !.vitepress
@@ -1,3 +1,8 @@
1
+ ## v1.1.0 - [March 8, 2024](https://github.com/lando/mariadb/releases/tag/v1.1.0)
2
+
3
+ ### Fixes
4
+ * Allow empty password and other creds fields to pass healthcheck [lando/lamp#51](https://github.com/lando/lamp/issues/51)
5
+
1
6
  ## v1.0.0 - [December 7, 2023](https://github.com/lando/mariadb/releases/tag/v1.0.0)
2
7
 
3
8
  * Dialed fully for `lando update`
@@ -1,6 +1,6 @@
1
1
  [build]
2
2
  base = "./"
3
- publish = "docs/.vuepress/dist"
3
+ publish = "docs/.vitepress/dist"
4
4
  command = "npm run docs:build"
5
5
 
6
6
  # Sets our asset optimization
@@ -20,13 +20,28 @@
20
20
  for = "/images/*"
21
21
  [headers.values]
22
22
  Cache-Control = "public, max-age=31536000"
23
-
23
+
24
+ # pluginz
25
+ # https://github.com/netlify/netlify-plugin-lighthouse#readme
26
+ [[plugins]]
27
+ package = "@netlify/plugin-lighthouse"
28
+ [plugins.inputs.audits]
29
+ output_path = "reports/lighthouse.html"
30
+
31
+ # https://github.com/munter/netlify-plugin-checklinks#readme
32
+ [[plugins]]
33
+ package = "netlify-plugin-checklinks"
34
+ [plugins.inputs]
35
+ todoPatterns = [ "load", "CHANGELOG.html", "x.com", "twitter.com" ]
36
+ skipPatterns = [ ".rss", ".gif", ".jpg" ]
37
+ checkExternal = true
38
+
24
39
  # We need this so preview environments and the base site look ok on their own
25
40
  [[redirects]]
26
41
  from = "/"
27
- to = "/mariadb"
42
+ to = "/plugins/mariadb"
28
43
  status = 200
29
44
  [[redirects]]
30
- from = "/mariadb/*"
45
+ from = "/plugins/mariadb/*"
31
46
  to = "/:splat"
32
47
  status = 200
@@ -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.0.0",
4
+ "version": "1.1.0",
5
5
  "author": "Mike Pirog @pirog",
6
6
  "license": "GPL-3.0",
7
7
  "repository": "lando/mariadb",
@@ -33,10 +33,10 @@
33
33
  },
34
34
  "scripts": {
35
35
  "coverage": "nyc report --reporter=text-lcov | coveralls",
36
- "docs:dev": "vuepress dev docs --clean-cache --clean-temp",
37
- "docs:build": "vuepress build docs",
38
- "docs:lint": "eslint -c docs/.eslintrc.json --quiet docs/.vuepress",
39
- "lint": "eslint --quiet . && npm run docs:lint",
36
+ "docs:dev": "vitepress dev docs",
37
+ "docs:build": "vitepress build docs",
38
+ "docs:preview": "vitepress preview docs",
39
+ "lint": "eslint . --ext .js --ext .mjs ",
40
40
  "test:unit": "nyc --reporter=html --reporter=text mocha --timeout 5000 test/**/*.spec.js",
41
41
  "test:leia": "leia \"examples/**/README.md\" -c 'Destroy tests' --stdin",
42
42
  "test": "npm run lint && npm run test:unit"
@@ -47,7 +47,7 @@
47
47
  "devDependencies": {
48
48
  "@babel/eslint-parser": "^7.16.0",
49
49
  "@lando/leia": "^0.6.5",
50
- "@lando/vuepress-theme-default-plus": "1.0.0-beta.49",
50
+ "@lando/vitepress-theme-default-plus": "^1.0.0-beta.40",
51
51
  "chai": "^4.3.4",
52
52
  "command-line-test": "^1.0.10",
53
53
  "eslint": "^7.32.0",
@@ -55,15 +55,15 @@
55
55
  "eslint-plugin-vue": "^8.0.3",
56
56
  "mocha": "^9.1.2",
57
57
  "nyc": "^15.1.0",
58
- "vuepress": "2.0.0-beta.53"
58
+ "vitepress": "^1.0.0-rc.42"
59
59
  },
60
60
  "bundledDependencies": [
61
61
  "lodash"
62
62
  ],
63
63
  "dist": {
64
- "integrity": "sha512-L/t4cAbFdIMtOr3rvPQmjzai2B/70sThlJGYOTaGlkoAeBE5I6R+nDDufW1LMZntjR8UnQH8m/c8twuIIbDffA==",
65
- "shasum": "8521dc25224f586da7c49234ebafb7a8539b779e",
66
- "filename": "lando-mariadb-1.0.0.tgz",
67
- "unpackedSize": 1468250
64
+ "integrity": "sha512-WfVKHB9WNfAnYmcUtvHD1mnEtzTrJPnC8IxxXD7bXlGHzCg0fTDMCDq/E4KULzPv3gzSv/Y/qVckwk6PBHrTPQ==",
65
+ "shasum": "3e46a4aa9c131181ed9fbe403e060c90ef9dff67",
66
+ "filename": "lando-mariadb-1.1.0.tgz",
67
+ "unpackedSize": 1469176
68
68
  }
69
69
  }
File without changes
@@ -2,14 +2,21 @@
2
2
 
3
3
  // checks to see if a setting is disabled
4
4
  module.exports = options => {
5
- return [
5
+ let healthcheck = [
6
6
  'mysql',
7
7
  `--host=${options.name}`,
8
- `--user=${options.creds.user}`,
9
- `--database=${options.creds.database}`,
10
- `--password=${options.creds.password}`,
8
+ ];
9
+
10
+ // Only include whatever creds are available.
11
+ options.creds.user ? healthcheck.push(`--user=${options.creds.user}`) : false;
12
+ options.creds.database ? healthcheck.push(`--database=${options.creds.database}`) : false;
13
+ options.creds.password ? healthcheck.push(`--password=${options.creds.password}`) : false;
14
+
15
+ healthcheck = healthcheck.concat([
11
16
  '--silent',
12
17
  '--execute',
13
18
  '"SHOW TABLES;"',
14
- ].join(' ');
19
+ ]);
20
+
21
+ return healthcheck.join(' ');
15
22
  };
@@ -1,4 +1,5 @@
1
- .temp
2
- .cache
1
+ temp
2
+ cache
3
3
  dist
4
4
  _site
5
+ !.vitepress
@@ -1,14 +1,14 @@
1
1
  name: lando-mysql-plugin
2
2
  services:
3
3
  node:
4
- type: node:14
4
+ type: node:18
5
5
  build:
6
- - yarn install
6
+ - npm install
7
7
  scanner: false
8
8
  ssl: false
9
9
  sslExpose: false
10
10
  tooling:
11
11
  node:
12
12
  service: node
13
- yarn:
13
+ npm:
14
14
  service: node
@@ -1 +1 @@
1
- 16
1
+ 18
@@ -1 +1 @@
1
- nodejs 16
1
+ nodejs 18
@@ -1,18 +1,27 @@
1
+ ## v1.1.0 - [March 8, 2024](https://github.com/lando/mysql/releases/tag/v1.1.0)
2
+
3
+ ### Fixes
4
+ * Allow empty password and other creds fields to pass healthcheck [lando/lamp#51](https://github.com/lando/lamp/issues/51)
5
+
6
+ ## v1.0.0 - [December 7, 2023](https://github.com/lando/mysql/releases/tag/v1.0.0)
7
+
8
+ * Dialed fully for `lando update`
9
+
1
10
  ## v0.9.0 - [Oct 20, 2023](https://github.com/lando/mysql/releases/tag/v0.9.0)
11
+
2
12
  * Added a new healthcheck that better assesses service readiness. [#33](https://github.com/lando/mysql/pull/33)
3
13
  * Restructured to use builders/mysql.js.
4
14
 
5
-
6
15
  ## v0.8.0 - [July 3, 2023](https://github.com/lando/mysql/releases/tag/v0.8.0)
7
- * Removed bundle-dependencies and version-bump-prompt from plugin.
8
- * Updated package to use prepare-release-action.
9
- * Updated documentation to reflect new release process.
16
+
17
+ * Removed bundle-dependencies and version-bump-prompt from plugin.
18
+ * Updated package to use prepare-release-action.
19
+ * Updated documentation to reflect new release process.
10
20
 
11
21
  ## v0.7.0 - [December 12, 2022](https://github.com/lando/mysql/releases/tag/v0.7.0)
12
- * Added bundle-dependencies to release process.
13
- * Fixed bug in plugin dogfooding test.
14
22
 
15
- ## v0.6.0 - [September 7, 2022](https://github.com/lando/mysql/releases/tag/v0.6.0)
23
+ * Added bundle-dependencies to release process.
24
+ * Fixed bug in plugin dogfooding test.
16
25
 
17
26
  ## v0.5.1 - [April 21, 2022](https://github.com/lando/mysql/releases/tag/v0.5.1)
18
27
 
@@ -35,10 +35,9 @@ module.exports = {
35
35
  constructor(id, options = {}) {
36
36
  options = _.merge({}, config, options);
37
37
  // Force the auth plugin to be mysql_native_password on 5.7
38
- if (_.startsWith(options.version, '5.7')) {
39
- options.authentication = 'mysql_native_password';
40
- }
38
+ if (_.startsWith(options.version, '5.7')) options.authentication = 'mysql_native_password';
41
39
 
40
+ // set a default health check if we dont already have one
42
41
  if (!options.healthcheck) options.healthcheck = require('../utils/get-default-healthcheck')(options);
43
42
 
44
43
  // Ensure the non-root backup perm sweep runs
@@ -1,7 +1,7 @@
1
1
  [build]
2
2
  base = "./"
3
- publish = "docs/.vuepress/dist"
4
- command = "yarn docs:build"
3
+ publish = "docs/.vitepress/dist"
4
+ command = "npm run docs:build"
5
5
 
6
6
  # Sets our asset optimization
7
7
  [build.processing.css]
@@ -20,13 +20,28 @@
20
20
  for = "/images/*"
21
21
  [headers.values]
22
22
  Cache-Control = "public, max-age=31536000"
23
-
23
+
24
+ # pluginz
25
+ # https://github.com/netlify/netlify-plugin-lighthouse#readme
26
+ [[plugins]]
27
+ package = "@netlify/plugin-lighthouse"
28
+ [plugins.inputs.audits]
29
+ output_path = "reports/lighthouse.html"
30
+
31
+ # https://github.com/munter/netlify-plugin-checklinks#readme
32
+ [[plugins]]
33
+ package = "netlify-plugin-checklinks"
34
+ [plugins.inputs]
35
+ todoPatterns = [ "load", "CHANGELOG.html", "x.com", "twitter.com" ]
36
+ skipPatterns = [ ".rss", ".gif", ".jpg" ]
37
+ checkExternal = true
38
+
24
39
  # We need this so preview environments and the base site look ok on their own
25
40
  [[redirects]]
26
41
  from = "/"
27
- to = "/mysql"
42
+ to = "/plugins/mysql"
28
43
  status = 200
29
44
  [[redirects]]
30
- from = "/mysql/*"
45
+ from = "/plugins/mysql/*"
31
46
  to = "/:splat"
32
47
  status = 200
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@lando/mysql",
3
3
  "description": "A Lando plugin that provides a tight integration with MySQL.",
4
- "version": "0.9.0",
4
+ "version": "1.1.0",
5
5
  "author": "Mike Pirog @pirog",
6
6
  "license": "GPL-3.0",
7
7
  "repository": "lando/mysql",
@@ -14,11 +14,8 @@
14
14
  "mysql"
15
15
  ],
16
16
  "engines": {
17
- "node": ">=16.0.0"
17
+ "node": ">=18.0.0"
18
18
  },
19
- "bundledDependencies": [
20
- "lodash"
21
- ],
22
19
  "lando": {},
23
20
  "main": "index.js",
24
21
  "nyc": {
@@ -36,13 +33,13 @@
36
33
  },
37
34
  "scripts": {
38
35
  "coverage": "nyc report --reporter=text-lcov | coveralls",
39
- "docs:dev": "vuepress dev docs --clean-cache --clean-temp",
40
- "docs:build": "vuepress build docs",
41
- "docs:lint": "eslint -c docs/.eslintrc.json --quiet docs/.vuepress",
42
- "lint": "eslint --quiet . && yarn docs:lint",
36
+ "docs:dev": "vitepress dev docs",
37
+ "docs:build": "vitepress build docs",
38
+ "docs:preview": "vitepress preview docs",
39
+ "lint": "eslint . --ext .js --ext .mjs ",
43
40
  "test:unit": "nyc --reporter=html --reporter=text mocha --timeout 5000 test/**/*.spec.js",
44
- "test:leia": "yarn leia \"examples/**/README.md\" -c 'Destroy tests' --stdin",
45
- "test": "yarn lint && yarn test:unit"
41
+ "test:leia": "leia \"examples/**/README.md\" -c 'Destroy tests' --stdin",
42
+ "test": "npm run lint && npm run test:unit"
46
43
  },
47
44
  "dependencies": {
48
45
  "lodash": "^4.17.21"
@@ -50,7 +47,7 @@
50
47
  "devDependencies": {
51
48
  "@babel/eslint-parser": "^7.16.0",
52
49
  "@lando/leia": "^0.6.5",
53
- "@lando/vuepress-theme-default-plus": "1.0.0-beta.49",
50
+ "@lando/vitepress-theme-default-plus": "^1.0.0-beta.40",
54
51
  "chai": "^4.3.4",
55
52
  "command-line-test": "^1.0.10",
56
53
  "eslint": "^7.32.0",
@@ -58,6 +55,15 @@
58
55
  "eslint-plugin-vue": "^8.0.3",
59
56
  "mocha": "^9.1.2",
60
57
  "nyc": "^15.1.0",
61
- "vuepress": "2.0.0-beta.53"
58
+ "vitepress": "^1.0.0-rc.42"
59
+ },
60
+ "bundledDependencies": [
61
+ "lodash"
62
+ ],
63
+ "dist": {
64
+ "integrity": "sha512-lprclsoY/I5gMA6Qtq/n91EaWVdlrxbr5BG9CvyrZjl1xSUeoqGTB0NVDHUn33X+ozoCTO88i64iw3lFHFKMdQ==",
65
+ "shasum": "ce6a886ec27a86770b7981cf505849b053acf2e0",
66
+ "filename": "lando-mysql-1.1.0.tgz",
67
+ "unpackedSize": 1469005
62
68
  }
63
69
  }
File without changes
@@ -2,14 +2,21 @@
2
2
 
3
3
  // checks to see if a setting is disabled
4
4
  module.exports = options => {
5
- return [
5
+ let healthcheck = [
6
6
  'mysql',
7
7
  `--host=${options.name}`,
8
- `--user=${options.creds.user}`,
9
- `--database=${options.creds.database}`,
10
- `--password=${options.creds.password}`,
8
+ ];
9
+
10
+ // Only include whatever creds are available.
11
+ options.creds.user ? healthcheck.push(`--user=${options.creds.user}`) : false;
12
+ options.creds.database ? healthcheck.push(`--database=${options.creds.database}`) : false;
13
+ options.creds.password ? healthcheck.push(`--password=${options.creds.password}`) : false;
14
+
15
+ healthcheck = healthcheck.concat([
11
16
  '--silent',
12
17
  '--execute',
13
18
  '"SHOW TABLES;"',
14
- ].join(' ');
19
+ ]);
20
+
21
+ return healthcheck.join(' ');
15
22
  };
@@ -1,4 +1,5 @@
1
- .temp
2
- .cache
1
+ temp
2
+ cache
3
3
  dist
4
4
  _site
5
+ !.vitepress
@@ -3,12 +3,12 @@ services:
3
3
  node:
4
4
  type: node:14
5
5
  build:
6
- - yarn install
6
+ - npm install
7
7
  scanner: false
8
8
  ssl: false
9
9
  sslExpose: false
10
10
  tooling:
11
11
  node:
12
12
  service: node
13
- yarn:
13
+ npm:
14
14
  service: node
@@ -1 +1 @@
1
- 16
1
+ 18
@@ -0,0 +1 @@
1
+ {"parent":null,"pid":1879,"argv":["/opt/hostedtoolcache/node/18.19.1/x64/bin/node","/home/runner/work/postgres/postgres/node_modules/.bin/mocha","--timeout","5000","test/**/*.spec.js"],"execArgv":[],"cwd":"/home/runner/work/postgres/postgres","time":1709931699943,"ppid":1868,"coverageFilename":"/home/runner/work/postgres/postgres/.nyc_output/3380cdae-4eeb-4e34-9b80-ce510e7ff922.json","externalId":"","uuid":"3380cdae-4eeb-4e34-9b80-ce510e7ff922","files":[]}
@@ -0,0 +1 @@
1
+ {"parent":null,"pid":1868,"argv":["/opt/hostedtoolcache/node/18.19.1/x64/bin/node","/home/runner/work/postgres/postgres/node_modules/.bin/nyc","--reporter=html","--reporter=text","mocha","--timeout","5000","test/**/*.spec.js"],"execArgv":[],"cwd":"/home/runner/work/postgres/postgres","time":1709931699762,"ppid":1867,"coverageFilename":"/home/runner/work/postgres/postgres/.nyc_output/4a260cab-351e-4105-aba4-06e6f872bf12.json","externalId":"","uuid":"4a260cab-351e-4105-aba4-06e6f872bf12","files":[]}
@@ -1 +1 @@
1
- {"processes":{"0a5ce68d-8d86-48df-9fbb-0ee252638471":{"parent":null,"children":[]},"df4f4d19-75ab-4aa5-b8da-514bd17c5bec":{"parent":null,"children":[]}},"files":{},"externalIds":{}}
1
+ {"processes":{"3380cdae-4eeb-4e34-9b80-ce510e7ff922":{"parent":null,"children":[]},"4a260cab-351e-4105-aba4-06e6f872bf12":{"parent":null,"children":[]}},"files":{},"externalIds":{}}
@@ -1,24 +1,36 @@
1
+ ## v1.1.0 - [March 8, 2024](https://github.com/lando/postgres/releases/tag/v1.1.0)
2
+
3
+ ### Fixes
4
+ * Allow empty user/dbname fields to pass healthcheck [lando/lamp#51](https://github.com/lando/lamp/issues/51)
5
+
6
+ ## v1.0.0 - [December 7, 2023](https://github.com/lando/postgres/releases/tag/v1.0.0)
7
+
8
+ * Dialed fully for `lando update`.
9
+ * Isolated plugin.
10
+
1
11
  ## v0.10.0 - [Oct 20, 2023](https://github.com/lando/postgres/releases/tag/v0.10.0)
2
- * Added a new healthcheck that better assesses service readiness. [#28](https://github.com/lando/postgres/pull/28)
3
- * Restructured to use builders/postgres.js.
12
+
13
+ * Added a new healthcheck that better assesses service readiness. [#28](https://github.com/lando/postgres/pull/28)
14
+ * Restructured to use builders/postgres.js.
4
15
 
5
16
  ## v0.9.0 - [July 3, 2023](https://github.com/lando/postgres/releases/tag/v0.9.0)
6
- * Removed bundle-dependencies and version-bump-prompt from plugin.
7
- * Updated package to use prepare-release-action.
8
- * Updated documentation to reflect new release process.
17
+
18
+ * Removed bundle-dependencies and version-bump-prompt from plugin.
19
+ * Updated package to use prepare-release-action.
20
+ * Updated documentation to reflect new release process.
9
21
 
10
22
  ## v0.8.0 - [April 26, 2023](https://github.com/lando/postgres/releases/tag/v0.8.0)
11
23
 
12
- * Added support for Postgres 15.
24
+ * Added support for Postgres 15.
13
25
 
14
26
  ## v0.7.0 - [December 12, 2022](https://github.com/lando/postgres/releases/tag/v0.7.0)
15
27
 
16
- * Added bundle-dependencies to release process.
17
- * Fixed bug in plugin dogfooding test.
28
+ * Added bundle-dependencies to release process.
29
+ * Fixed bug in plugin dogfooding test.
18
30
 
19
31
  ## v0.6.0 - [September 7, 2022](https://github.com/lando/postgres/releases/tag/v0.6.0)
20
32
 
21
- * HYPERDRIVED
33
+ * HYPERDRIVED
22
34
 
23
35
  ## v0.5.0 - [November 9, 2021](https://github.com/lando/postgres/releases/tag/v0.5.0)
24
36
 
@@ -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 2023-10-20T18:52:23.801Z
89
+ at 2024-03-08T21:01:40.150Z
90
90
  </div>
91
91
  <script src="prettify.js"></script>
92
92
  <script>
@@ -1,7 +1,7 @@
1
1
  [build]
2
2
  base = "./"
3
- publish = "docs/.vuepress/dist"
4
- command = "yarn docs:build"
3
+ publish = "docs/.vitepress/dist"
4
+ command = "npm run docs:build"
5
5
 
6
6
  # Sets our asset optimization
7
7
  [build.processing.css]
@@ -20,13 +20,28 @@
20
20
  for = "/images/*"
21
21
  [headers.values]
22
22
  Cache-Control = "public, max-age=31536000"
23
-
23
+
24
+ # pluginz
25
+ # https://github.com/netlify/netlify-plugin-lighthouse#readme
26
+ [[plugins]]
27
+ package = "@netlify/plugin-lighthouse"
28
+ [plugins.inputs.audits]
29
+ output_path = "reports/lighthouse.html"
30
+
31
+ # https://github.com/munter/netlify-plugin-checklinks#readme
32
+ [[plugins]]
33
+ package = "netlify-plugin-checklinks"
34
+ [plugins.inputs]
35
+ todoPatterns = [ "load", "CHANGELOG.html", "x.com", "twitter.com" ]
36
+ skipPatterns = [ ".rss", ".gif", ".jpg" ]
37
+ checkExternal = true
38
+
24
39
  # We need this so preview environments and the base site look ok on their own
25
40
  [[redirects]]
26
41
  from = "/"
27
- to = "/postgres"
42
+ to = "/plugins/postgres"
28
43
  status = 200
29
44
  [[redirects]]
30
- from = "/postgres/*"
45
+ from = "/plugins/postgres/*"
31
46
  to = "/:splat"
32
47
  status = 200
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@lando/postgres",
3
3
  "description": "A Lando plugin that provides a tight integration with Postgres.",
4
- "version": "0.10.0",
4
+ "version": "1.1.0",
5
5
  "author": "Mike Pirog @pirog",
6
6
  "license": "GPL-3.0",
7
7
  "repository": "lando/postgres",
@@ -14,11 +14,8 @@
14
14
  "postgres"
15
15
  ],
16
16
  "engines": {
17
- "node": ">=16.0.0"
17
+ "node": ">=18.0.0"
18
18
  },
19
- "bundledDependencies": [
20
- "lodash"
21
- ],
22
19
  "lando": {},
23
20
  "main": "index.js",
24
21
  "nyc": {
@@ -36,13 +33,13 @@
36
33
  },
37
34
  "scripts": {
38
35
  "coverage": "nyc report --reporter=text-lcov | coveralls",
39
- "docs:dev": "vuepress dev docs --clean-cache --clean-temp",
40
- "docs:build": "vuepress build docs",
41
- "docs:lint": "eslint -c docs/.eslintrc.json --quiet docs/.vuepress",
42
- "lint": "eslint --quiet . && yarn docs:lint",
36
+ "docs:dev": "vitepress dev docs",
37
+ "docs:build": "vitepress build docs",
38
+ "docs:preview": "vitepress preview docs",
39
+ "lint": "eslint . --ext .js --ext .mjs ",
43
40
  "test:unit": "nyc --reporter=html --reporter=text mocha --timeout 5000 test/**/*.spec.js",
44
- "test:leia": "yarn leia \"examples/**/README.md\" -c 'Destroy tests' --stdin",
45
- "test": "yarn lint && yarn test:unit"
41
+ "test:leia": "leia \"examples/**/README.md\" -c 'Destroy tests' --stdin",
42
+ "test": "npm run lint && npm run test:unit"
46
43
  },
47
44
  "dependencies": {
48
45
  "lodash": "^4.17.21"
@@ -50,7 +47,7 @@
50
47
  "devDependencies": {
51
48
  "@babel/eslint-parser": "^7.16.0",
52
49
  "@lando/leia": "^0.6.5",
53
- "@lando/vuepress-theme-default-plus": "1.0.0-beta.49",
50
+ "@lando/vitepress-theme-default-plus": "^1.0.0-beta.40",
54
51
  "chai": "^4.3.4",
55
52
  "command-line-test": "^1.0.10",
56
53
  "eslint": "^7.32.0",
@@ -58,6 +55,9 @@
58
55
  "eslint-plugin-vue": "^8.0.3",
59
56
  "mocha": "^9.1.2",
60
57
  "nyc": "^15.1.0",
61
- "vuepress": "2.0.0-beta.53"
62
- }
58
+ "vitepress": "^1.0.0-rc.42"
59
+ },
60
+ "bundledDependencies": [
61
+ "lodash"
62
+ ]
63
63
  }