@lando/laravel 1.2.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":{"5a86f407-563a-4d59-ae7e-2fb8fd8a5915":{"parent":null,"children":[]},"ad0cae22-5077-448c-ac88-8262da7a54d8":{"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,23 @@
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
+
8
+ ## v1.3.0 - [February 27, 2024](https://github.com/lando/laravel/releases/tag/v1.3.0)
9
+
10
+ ### New Features
11
+
12
+ * Makes `php:8.3` the default version. [#45](https://github.com/lando/laravel/issues/45)
13
+ * Added support for `php:8.3`
14
+ * Added support for `php:8.2` [#23](https://github.com/lando/laravel/issues/23)
15
+ * Make sure path to mysql.cnf is correct.
16
+
17
+ ### Internal
18
+
19
+ * Updated to `@lando/php@1.2.0`
20
+
1
21
  ## v1.2.0 - [February 21, 2024](https://github.com/lando/laravel/releases/tag/v1.2.0)
2
22
 
3
23
  * Updated memcached plugin to [v1.1.0](https://github.com/lando/memcached/releases/tag/v1.1.0).
@@ -12,7 +32,7 @@
12
32
  * Fixed issue with missing proxy URLs.
13
33
 
14
34
  ## v1.0.0 - [December 7, 2023](https://github.com/lando/laravel/releases/tag/v1.0.0)
15
-
35
+
16
36
  * Dialed fully for `lando update`
17
37
 
18
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 {
@@ -213,7 +221,7 @@ module.exports = {
213
221
  defaultFiles: {
214
222
  php: 'php.ini',
215
223
  },
216
- php: '7.4',
224
+ php: '8.3',
217
225
  services: {appserver: {overrides: {environment: {
218
226
  APP_LOG: 'errorlog',
219
227
  }}}},
@@ -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 = {
@@ -1,3 +1,5 @@
1
+ # LANDOLARAVELNGINXCONF
2
+
1
3
  server {
2
4
 
3
5
  listen 80 default_server;
@@ -1,6 +1,7 @@
1
1
  #
2
2
  # The MySQL database server configuration file for Lando
3
3
  #
4
+ # LANDOLARAVELMYSQLCNF
4
5
 
5
6
  [mysqld]
6
7
  #
@@ -71,7 +72,7 @@ max_binlog_size = 100M
71
72
  #innodb_buffer_pool_size = 384M
72
73
  #innodb_additional_mem_pool_size = 20M
73
74
  # Set .._log_file_size to 25 % of buffer pool size
74
- innodb_log_file_size = 100M
75
+ innodb_log_file_size = 101M
75
76
  #innodb_log_buffer_size = 8M
76
77
  innodb_flush_log_at_trx_commit = 0
77
78
  #innodb_lock_wait_timeout = 50
@@ -82,7 +83,7 @@ innodb_open_files = 256
82
83
  innodb_io_capacity = 512
83
84
  innodb_flush_method = O_DIRECT
84
85
  innodb_thread_concurrency = 8
85
- innodb_lock_wait_timeout = 120
86
+ innodb_lock_wait_timeout = 121
86
87
  #
87
88
  # * Security Features
88
89
  #
package/config/mysql8.cnf CHANGED
@@ -1,6 +1,7 @@
1
1
  #
2
2
  # The MySQL database server configuration file for Lando
3
3
  #
4
+ # LANDOLARAVELMYSQL8CNF
4
5
 
5
6
  [mysqld]
6
7
  #
@@ -49,7 +50,7 @@ read_buffer_size = 2M
49
50
  #server-id = 1
50
51
  #log_bin = /src/.lando/log/mysql-bin.log
51
52
  expire_logs_days = 10
52
- max_binlog_size = 100M
53
+ max_binlog_size = 101M
53
54
  #binlog_do_db = include_database_name
54
55
  #binlog_ignore_db = include_database_name
55
56
  #
@@ -77,7 +78,7 @@ innodb_open_files = 256
77
78
  innodb_io_capacity = 512
78
79
  innodb_flush_method = O_DIRECT
79
80
  innodb_thread_concurrency = 8
80
- innodb_lock_wait_timeout = 120
81
+ innodb_lock_wait_timeout = 127
81
82
  #
82
83
  # * Security Features
83
84
  #
package/config/php.ini CHANGED
@@ -1,5 +1,6 @@
1
1
  [PHP]
2
2
 
3
+ ; LANDOLARAVELPHPINI
3
4
  ;;;;;;;;;;;;;;;
4
5
  ; PHP Globals ;
5
6
  ;;;;;;;;;;;;;;;
@@ -36,8 +37,8 @@ xdebug.mode = ${XDEBUG_MODE}
36
37
 
37
38
  ; Globals
38
39
  expose_php = on
39
- max_execution_time = 90
40
- max_input_time = 900
40
+ max_execution_time = 91
41
+ max_input_time = 901
41
42
  max_input_vars = 10000
42
43
  memory_limit = ${PHP_MEMORY_LIMIT}
43
44
  upload_max_filesize = 100M
@@ -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-21T20:07:30.557Z
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.2.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-Q93bYskQ4PQ5FUIS0/ZDRTO547OhHoTyqGZ+a8Kmm3RWPr4n4xCVMWU15xGfMBYJYyJJxMzcWT5ureJ5JCbfUg==",
81
- "shasum": "8326c8786bb0caf8bd9ebd3a86f21dcd2d048347",
82
- "filename": "lando-laravel-1.2.0.tgz",
83
- "unpackedSize": 15124005
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":1919,"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":1708546050364,"ppid":1908,"coverageFilename":"/home/runner/work/laravel/laravel/.nyc_output/5a86f407-563a-4d59-ae7e-2fb8fd8a5915.json","externalId":"","uuid":"5a86f407-563a-4d59-ae7e-2fb8fd8a5915","files":[]}
@@ -1 +0,0 @@
1
- {"parent":null,"pid":1908,"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":1708546050205,"ppid":1907,"coverageFilename":"/home/runner/work/laravel/laravel/.nyc_output/ad0cae22-5077-448c-ac88-8262da7a54d8.json","externalId":"","uuid":"ad0cae22-5077-448c-ac88-8262da7a54d8","files":[]}