@lando/symfony 1.5.0 → 1.6.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 CHANGED
@@ -1,14 +1,24 @@
1
- name: lando-symfony-plugin
1
+ name: docs.symfony
2
+ proxy:
3
+ cli:
4
+ - docs.symfony.lndo.site:5173
2
5
  services:
3
- node:
4
- type: node:18
5
- build:
6
- - npm install
6
+ cli:
7
+ api: 4
8
+ image: node:18
9
+ command: sleep infinity
10
+ ports:
11
+ - 5173:5173/http
7
12
  scanner: false
8
- ssl: false
9
- sslExpose: false
13
+ user: node
14
+ build:
15
+ app: |
16
+ npm install
10
17
  tooling:
11
18
  node:
12
- service: node
19
+ service: cli
13
20
  npm:
14
- service: node
21
+ service: cli
22
+ vitepress:
23
+ service: cli
24
+ cmd: npx vitepress
@@ -0,0 +1 @@
1
+ {"parent":null,"pid":2275,"argv":["/opt/hostedtoolcache/node/18.20.4/x64/bin/node","/home/runner/work/symfony/symfony/node_modules/.bin/mocha","--timeout","5000","test/**/*.spec.js"],"execArgv":[],"cwd":"/home/runner/work/symfony/symfony","time":1725645153463,"ppid":2264,"coverageFilename":"/home/runner/work/symfony/symfony/.nyc_output/1f8196a2-03bf-4d5c-ace0-a7b7d17d4977.json","externalId":"","uuid":"1f8196a2-03bf-4d5c-ace0-a7b7d17d4977","files":[]}
@@ -0,0 +1 @@
1
+ {"parent":null,"pid":2264,"argv":["/opt/hostedtoolcache/node/18.20.4/x64/bin/node","/home/runner/work/symfony/symfony/node_modules/.bin/nyc","--reporter=html","--reporter=text","mocha","--timeout","5000","test/**/*.spec.js"],"execArgv":[],"cwd":"/home/runner/work/symfony/symfony","time":1725645153308,"ppid":2263,"coverageFilename":"/home/runner/work/symfony/symfony/.nyc_output/5e7aa96e-5e23-428b-804c-a7499bf5cfe2.json","externalId":"","uuid":"5e7aa96e-5e23-428b-804c-a7499bf5cfe2","files":[]}
@@ -1 +1 @@
1
- {"processes":{"9eb5a242-d175-4832-b066-fcad35ff990b":{"parent":null,"children":[]},"bbc6227c-0e57-4656-ad5b-874f12785892":{"parent":null,"children":[]}},"files":{},"externalIds":{}}
1
+ {"processes":{"1f8196a2-03bf-4d5c-ace0-a7b7d17d4977":{"parent":null,"children":[]},"5e7aa96e-5e23-428b-804c-a7499bf5cfe2":{"parent":null,"children":[]}},"files":{},"externalIds":{}}
package/CHANGELOG.md CHANGED
@@ -1,11 +1,29 @@
1
+ ## {{ UNRELEASED_VERSION }} - [{{ UNRELEASED_DATE }}]({{ UNRELEASED_LINK }})
2
+
3
+ ## v1.6.1 - [September 6, 2024](https://github.com/lando/symfony/releases/tag/v1.6.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.6.0 - [May 31, 2024](https://github.com/lando/symfony/releases/tag/v1.6.0)
15
+
16
+ * Use mysql command for MariaDB 10.3.x and below [#52](https://github.com/lando/symfony/issues/52)
17
+
1
18
  ## v1.5.0 - [March 8, 2024](https://github.com/lando/symfony/releases/tag/v1.5.0)
2
- * Updated to latest database services.
19
+
20
+ * Updated to latest database services.
3
21
 
4
22
  ## v1.4.1 - [March 4, 2024](https://github.com/lando/symfony/releases/tag/v1.4.1)
5
23
 
6
24
  ### Fixes
7
25
 
8
- * Improved `database` selection for purposes of `config` loading, fixes some `database` bootup issues when the `database` type is overriden downstream
26
+ * Improved `database` selection for purposes of `config` loading, fixes some `database` bootup issues when the `database` type is overridden downstream
9
27
 
10
28
  ## v1.4.0 - [February 22, 2024](https://github.com/lando/symfony/releases/tag/v1.4.0)
11
29
 
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/symfony/blob/main/CHANGELOG.md) and the [release notes](https://github.com/lando/symfony/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/symfony/graphs/contributors">
@@ -57,6 +57,18 @@ const getServices = options => ({
57
57
  },
58
58
  });
59
59
 
60
+ /*
61
+ * Helper to get proxy config
62
+ */
63
+ const getProxy = (options, proxyService = 'appserver') => {
64
+ // get any intial proxy stuff for proxyService
65
+ const urls = _.get(options, `_app.config.proxy.${proxyService}`, []);
66
+ // add
67
+ urls.push(`${options.app}.${options._app._config.domain}`);
68
+ // return
69
+ return {[proxyService]: _.uniq(_.compact(urls))};
70
+ };
71
+
60
72
  /*
61
73
  * Helper to get service config
62
74
  */
@@ -133,13 +145,19 @@ const toolingDefaults = {
133
145
  */
134
146
  const getDbTooling = database => {
135
147
  // Make sure we strip out any version number
136
- database = database.split(':')[0];
148
+ const db = database.split(':')[0];
149
+ const ver = database.split(':')[1];
137
150
  // Choose wisely
138
- if (_.includes(['mysql', 'mariadb'], database)) {
151
+ if (db === 'mysql') {
139
152
  return {mysql: mysqlCli};
140
- } else if (database === 'postgres') {
153
+ } else if (db === 'mariadb' && ver < 10.4) {
154
+ // mariadb command not available in 10.3.x and below
155
+ return {mysql: mysqlCli};
156
+ } else if (db === 'mariadb') {
157
+ return {mariadb: mariadbCli};
158
+ } else if (db === 'postgres') {
141
159
  return {psql: postgresCli};
142
- } else if (database === 'mongo') {
160
+ } else if (db === 'mongo') {
143
161
  return {mongo: {
144
162
  service: 'database',
145
163
  description: 'Drop into the mongo shell',
@@ -147,7 +165,20 @@ const getDbTooling = database => {
147
165
  }
148
166
  };
149
167
 
150
- // Default DB cli commands
168
+ // MariaDB cli commands
169
+ const mariadbCli = {
170
+ service: ':host',
171
+ description: 'Drops into a MariaDB shell on a database service',
172
+ cmd: 'mariadb -uroot',
173
+ options: {
174
+ host: {
175
+ description: 'The database service to use',
176
+ default: 'database',
177
+ alias: ['h'],
178
+ },
179
+ },
180
+ };
181
+ // MySQL DB cli commands
151
182
  const mysqlCli = {
152
183
  service: ':host',
153
184
  description: 'Drops into a MySQL shell on a database service',
@@ -160,6 +191,7 @@ const mysqlCli = {
160
191
  },
161
192
  },
162
193
  };
194
+ // Postgres cli commands
163
195
  const postgresCli = {
164
196
  service: ':host',
165
197
  description: 'Drops into a psql shell on a database service',
@@ -209,7 +241,6 @@ const getConfigDefaults = options => {
209
241
  */
210
242
  const getTooling = options => _.merge({}, toolingDefaults, getDbTooling(options.database));
211
243
 
212
-
213
244
  /*
214
245
  * Build Symfony
215
246
  */
@@ -243,18 +274,20 @@ module.exports = {
243
274
  service: 'appserver',
244
275
  cmd: `php /app/${options.webroot}/../bin/console`,
245
276
  };
277
+
246
278
  if (_.has(options, 'cache')) options.services.cache = getCache(options.cache);
247
279
 
248
- // Rebase on top of any default config we might already have
249
- options.defaultFiles = _.merge({}, getConfigDefaults(_.cloneDeep(options)), options.defaultFiles);
250
- options.services = _.merge({}, getServices(options), options.services);
251
- options.tooling = _.merge({}, getTooling(options), options.tooling);
252
280
  // Switch the proxy if needed
253
281
  if (!_.has(options, 'proxyService')) {
254
282
  if (_.startsWith(options.via, 'nginx')) options.proxyService = 'appserver_nginx';
255
283
  else if (_.startsWith(options.via, 'apache')) options.proxyService = 'appserver';
256
284
  }
257
- options.proxy = _.set(options.proxy, options.proxyService, [`${options.app}.${options._app._config.domain}`]);
285
+
286
+ // Rebase on top of any default config we might already have
287
+ options.defaultFiles = _.merge({}, getConfigDefaults(_.cloneDeep(options)), options.defaultFiles);
288
+ options.proxy = _.merge({}, getProxy(options, options.proxyService), options.proxy);
289
+ options.services = _.merge({}, getServices(options), options.services);
290
+ options.tooling = _.merge({}, getTooling(options), options.tooling);
258
291
 
259
292
  // Send downstream
260
293
  super(id, options);
@@ -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-03-11T17:57:47.203Z
89
+ at 2024-09-06T17:52:33.653Z
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: ['10.6', '10.5', '10.4', '10.3', '10.2', '10.1'],
13
- legacy: ['10.1'],
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.1.0",
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.6.5",
50
- "@lando/vitepress-theme-default-plus": "^1.0.0-beta.40",
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-WfVKHB9WNfAnYmcUtvHD1mnEtzTrJPnC8IxxXD7bXlGHzCg0fTDMCDq/E4KULzPv3gzSv/Y/qVckwk6PBHrTPQ==",
65
- "shasum": "3e46a4aa9c131181ed9fbe403e060c90ef9dff67",
66
- "filename": "lando-mariadb-1.1.0.tgz",
67
- "unpackedSize": 1469176
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/symfony",
3
3
  "description": "A Lando plugin that provides a tight integration with Symfony.",
4
- "version": "1.5.0",
4
+ "version": "1.6.1",
5
5
  "author": "Mike Pirog @pirog",
6
6
  "license": "GPL-3.0",
7
7
  "repository": "lando/symfony",
@@ -43,7 +43,7 @@
43
43
  },
44
44
  "dependencies": {
45
45
  "@lando/apache": "^1.0.0",
46
- "@lando/mariadb": "^1.1.0",
46
+ "@lando/mariadb": "^1.3.0",
47
47
  "@lando/memcached": "^1.1.0",
48
48
  "@lando/mssql": "^1.0.0",
49
49
  "@lando/mysql": "^1.1.0",
@@ -55,8 +55,8 @@
55
55
  },
56
56
  "devDependencies": {
57
57
  "@babel/eslint-parser": "^7.23.10",
58
- "@lando/leia": "^0.6.7",
59
- "@lando/vitepress-theme-default-plus": "^1.0.0-beta.40",
58
+ "@lando/leia": "^1.0.0-beta.3",
59
+ "@lando/vitepress-theme-default-plus": "^1.0.2",
60
60
  "chai": "^4.3.4",
61
61
  "command-line-test": "^1.0.10",
62
62
  "eslint": "^8.56.0",
@@ -79,9 +79,9 @@
79
79
  "lodash"
80
80
  ],
81
81
  "dist": {
82
- "integrity": "sha512-ofPWBhMRRt/t2AX6X2vvrBgPeO5iCU03rTAIyjo+5T79BUlgJtqlp+F/PSkEPSvZIL9RlWf70+lTkcZi4lw66A==",
83
- "shasum": "0f436a366a954c50f3e8621b4b0d05e88944cd9f",
84
- "filename": "lando-symfony-1.5.0.tgz",
85
- "unpackedSize": 16652524
82
+ "integrity": "sha512-B/e3cuLDQYWr+2HH/wN10KIc79CkwEWWXsqWHNJ8LEWgLIMNLfZU0aT6odXmbFzEdNNqhkn9nKysOzYACkayfQ==",
83
+ "shasum": "797649d50c7e058108ba464643a4ebcd67da9b25",
84
+ "filename": "lando-symfony-1.6.1.tgz",
85
+ "unpackedSize": 16655247
86
86
  }
87
87
  }
@@ -1 +0,0 @@
1
- {"parent":null,"pid":1823,"argv":["/opt/hostedtoolcache/node/18.19.1/x64/bin/node","/home/runner/work/symfony/symfony/node_modules/.bin/nyc","--reporter=html","--reporter=text","mocha","--timeout","5000","test/**/*.spec.js"],"execArgv":[],"cwd":"/home/runner/work/symfony/symfony","time":1710179866846,"ppid":1822,"coverageFilename":"/home/runner/work/symfony/symfony/.nyc_output/9eb5a242-d175-4832-b066-fcad35ff990b.json","externalId":"","uuid":"9eb5a242-d175-4832-b066-fcad35ff990b","files":[]}
@@ -1 +0,0 @@
1
- {"parent":null,"pid":1834,"argv":["/opt/hostedtoolcache/node/18.19.1/x64/bin/node","/home/runner/work/symfony/symfony/node_modules/.bin/mocha","--timeout","5000","test/**/*.spec.js"],"execArgv":[],"cwd":"/home/runner/work/symfony/symfony","time":1710179867001,"ppid":1823,"coverageFilename":"/home/runner/work/symfony/symfony/.nyc_output/bbc6227c-0e57-4656-ad5b-874f12785892.json","externalId":"","uuid":"bbc6227c-0e57-4656-ad5b-874f12785892","files":[]}