@lando/laravel 1.3.0 → 1.3.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.
@@ -0,0 +1 @@
1
+ {"parent":null,"pid":1858,"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":1709221105911,"ppid":1857,"coverageFilename":"/home/runner/work/laravel/laravel/.nyc_output/16689bc2-5921-4d0c-98df-ecf13f5ae64f.json","externalId":"","uuid":"16689bc2-5921-4d0c-98df-ecf13f5ae64f","files":[]}
@@ -0,0 +1 @@
1
+ {"parent":null,"pid":1869,"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":1709221106073,"ppid":1858,"coverageFilename":"/home/runner/work/laravel/laravel/.nyc_output/7f7842bc-1fdd-4513-9d7b-b6d734676407.json","externalId":"","uuid":"7f7842bc-1fdd-4513-9d7b-b6d734676407","files":[]}
@@ -1 +1 @@
1
- {"processes":{"1a51e868-2a90-4899-a80f-a2d22e294afd":{"parent":null,"children":[]},"cfe77227-42d4-47f8-a2fc-53f0e5a4a741":{"parent":null,"children":[]}},"files":{},"externalIds":{}}
1
+ {"processes":{"16689bc2-5921-4d0c-98df-ecf13f5ae64f":{"parent":null,"children":[]},"7f7842bc-1fdd-4513-9d7b-b6d734676407":{"parent":null,"children":[]}},"files":{},"externalIds":{}}
package/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+
2
+ ## v1.3.1 - [February 29, 2024](https://github.com/lando/laravel/releases/tag/v1.3.1)
3
+
4
+ ### Fixes
5
+
6
+ * Improved `database` selection for purposes of `config` loading, fixes some `database` bootup issues when the `database` type is overriden downstream
7
+
1
8
  ## v1.3.0 - [February 27, 2024](https://github.com/lando/laravel/releases/tag/v1.3.0)
2
9
 
3
10
  ### New Features
@@ -25,7 +32,7 @@
25
32
  * Fixed issue with missing proxy URLs.
26
33
 
27
34
  ## v1.0.0 - [December 7, 2023](https://github.com/lando/laravel/releases/tag/v1.0.0)
28
-
35
+
29
36
  * Dialed fully for `lando update`
30
37
 
31
38
  ## v0.9.0 - [July 3, 2023](https://github.com/lando/laravel/releases/tag/v0.9.0)
@@ -26,6 +26,13 @@ const getCache = cache => {
26
26
  }
27
27
  };
28
28
 
29
+ /*
30
+ * Helper to get database type
31
+ */
32
+ const getDatabaseType = options => {
33
+ return _.get(options, '_app.config.services.database.type', options.database) ?? 'mysql';
34
+ };
35
+
29
36
  // Tooling defaults
30
37
  const toolingDefaults = {
31
38
  'composer': {
@@ -105,11 +112,12 @@ const getConfigDefaults = options => {
105
112
  // Get the viaconf
106
113
  if (_.startsWith(options.via, 'nginx')) options.defaultFiles.vhosts = 'default.conf.tpl';
107
114
 
108
- // Get the default db conf
109
- const dbConfig = _.get(options, 'database', 'mysql');
115
+ // attempt to discover the database that is actually being used
116
+ // @NOTE: this will look to see if database is overridden
117
+ const dbConfig = getDatabaseType(options);
110
118
  const database = _.first(dbConfig.split(':'));
111
119
  const version = _.last(dbConfig.split(':')).substring(0, 2);
112
- if (database === 'mysql' || database === 'mariadb') {
120
+ if (database === 'laravel-mysql' || database === 'mysql' || database === 'mariadb') {
113
121
  if (version === '8.') {
114
122
  options.defaultFiles.database = 'mysql8.cnf';
115
123
  } else {
@@ -243,6 +251,7 @@ module.exports = {
243
251
  options.defaultFiles = _.merge({}, getConfigDefaults(_.cloneDeep(options)), options.defaultFiles);
244
252
  options.services = _.merge({}, getServices(options), options.services);
245
253
  options.tooling = _.merge({}, getTooling(options), options.tooling);
254
+
246
255
  // Add in artisan tooling
247
256
  // @NOTE: does artisan always live one up of the webroot?
248
257
  options.tooling.artisan = {
@@ -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-27T20:37:45.313Z
89
+ at 2024-02-29T15:38:26.270Z
90
90
  </div>
91
91
  <script src="prettify.js"></script>
92
92
  <script>
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.3.0",
4
+ "version": "1.3.1",
5
5
  "author": "Mike Pirog @pirog",
6
6
  "license": "GPL-3.0",
7
7
  "repository": "lando/laravel",
@@ -77,9 +77,9 @@
77
77
  "lodash"
78
78
  ],
79
79
  "dist": {
80
- "integrity": "sha512-XF0Yr+z1v/7BExDKdgqwlp5cRdoVRGtytoEBX7oJOGz6DUQQcmpWCO7Gykk5yyuL0OF4vUqNVpOqTmNfBJBUqQ==",
81
- "shasum": "b77c3ca1ccac053091473d6f3dd7c15d5da5c183",
82
- "filename": "lando-laravel-1.3.0.tgz",
83
- "unpackedSize": 15124492
80
+ "integrity": "sha512-/vH+X8mJblSoiyzX27LBm/vRvMfp+6MNjWt6i2q7nNAyVb3hD78j/8H/cA53m7obbvR3EBygIaCsxge1TTvVvw==",
81
+ "shasum": "04a8f3d4d383460c3e6e8979d47427514f232265",
82
+ "filename": "lando-laravel-1.3.1.tgz",
83
+ "unpackedSize": 15125031
84
84
  }
85
85
  }
@@ -1 +0,0 @@
1
- {"parent":null,"pid":1903,"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":1709066265077,"ppid":1892,"coverageFilename":"/home/runner/work/laravel/laravel/.nyc_output/1a51e868-2a90-4899-a80f-a2d22e294afd.json","externalId":"","uuid":"1a51e868-2a90-4899-a80f-a2d22e294afd","files":[]}
@@ -1 +0,0 @@
1
- {"parent":null,"pid":1892,"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":1709066264910,"ppid":1891,"coverageFilename":"/home/runner/work/laravel/laravel/.nyc_output/cfe77227-42d4-47f8-a2fc-53f0e5a4a741.json","externalId":"","uuid":"cfe77227-42d4-47f8-a2fc-53f0e5a4a741","files":[]}