devlanes 0.8.1 → 0.9.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "devlanes",
3
- "version": "0.8.1",
3
+ "version": "0.9.0",
4
4
  "description": "Development environments in Git worktree lanes",
5
5
  "license": "Apache-2.0",
6
6
  "homepage": "https://devlanes.run",
@@ -30,11 +30,11 @@
30
30
  "node": ">=18"
31
31
  },
32
32
  "optionalDependencies": {
33
- "@devlanes/darwin-arm64": "0.8.1",
34
- "@devlanes/darwin-x64": "0.8.1",
35
- "@devlanes/linux-arm64": "0.8.1",
36
- "@devlanes/linux-x64": "0.8.1",
37
- "@devlanes/win32-arm64": "0.8.1",
38
- "@devlanes/win32-x64": "0.8.1"
33
+ "@devlanes/darwin-arm64": "0.9.0",
34
+ "@devlanes/darwin-x64": "0.9.0",
35
+ "@devlanes/linux-arm64": "0.9.0",
36
+ "@devlanes/linux-x64": "0.9.0",
37
+ "@devlanes/win32-arm64": "0.9.0",
38
+ "@devlanes/win32-x64": "0.9.0"
39
39
  }
40
40
  }
package/schema.json CHANGED
@@ -427,7 +427,7 @@
427
427
  "upstream"
428
428
  ],
429
429
  "enumDescriptions": [
430
- "Send the hostname the client requested, such as `api.acme-2.localhost`.",
430
+ "Send the hostname the client requested, such as `api.acme2.localhost`.",
431
431
  "Send the local address and port the proxy connects to, such as `127.0.0.1:<port>`."
432
432
  ],
433
433
  "examples": [
@@ -436,7 +436,7 @@
436
436
  ],
437
437
  "markdownDescription": "Host header sent to the unit behind a hostname.",
438
438
  "markdownEnumDescriptions": [
439
- "Send the hostname the client requested, such as `api.acme-2.localhost`.",
439
+ "Send the hostname the client requested, such as `api.acme2.localhost`.",
440
440
  "Send the local address and port the proxy connects to, such as `127.0.0.1:<port>`."
441
441
  ],
442
442
  "type": "string"
@@ -1399,7 +1399,7 @@
1399
1399
  "port": 20000
1400
1400
  },
1401
1401
  {
1402
- "domain": "acme-1.localhost",
1402
+ "domain": "acme1.localhost",
1403
1403
  "port": 20100
1404
1404
  }
1405
1405
  ]
@@ -1420,7 +1420,7 @@
1420
1420
  "port": 20000
1421
1421
  },
1422
1422
  {
1423
- "domain": "acme-1.localhost",
1423
+ "domain": "acme1.localhost",
1424
1424
  "port": 20100
1425
1425
  }
1426
1426
  ],
@@ -1504,20 +1504,20 @@
1504
1504
  "vars": {
1505
1505
  "additionalProperties": {
1506
1506
  "$ref": "#/$defs/Templated_Scalar",
1507
- "description": "Values computed for each lane and read as `${{ lane.<name> }}`, such as a database name, vhost, bucket or Redis index per lane. A var named `domain` replaces the default lane domain, and one named `port` fixes where the lane's port block starts. Cannot be combined with `matrix`.",
1507
+ "description": "Values computed for each lane and read as `${{ lane.<name> }}`, such as a database name, vhost, bucket or Redis index per lane. A var named `domain` replaces the default lane domain, and one named `port` fixes where the lane's port block starts. `${{ domain('pages') }}` gives a name a site of its own in each lane, such as `pages2.localhost` in lane 2. Cannot be combined with `matrix`.",
1508
1508
  "examples": [
1509
1509
  "acme_${{ lane.name }}"
1510
1510
  ],
1511
- "markdownDescription": "Values computed for each lane and read as `${{ lane.<name> }}`, such as a database name, vhost, bucket or Redis index per lane. A var named `domain` replaces the default lane domain, and one named `port` fixes where the lane's port block starts. Cannot be combined with `matrix`."
1511
+ "markdownDescription": "Values computed for each lane and read as `${{ lane.<name> }}`, such as a database name, vhost, bucket or Redis index per lane. A var named `domain` replaces the default lane domain, and one named `port` fixes where the lane's port block starts. `${{ domain('pages') }}` gives a name a site of its own in each lane, such as `pages2.localhost` in lane 2. Cannot be combined with `matrix`."
1512
1512
  },
1513
1513
  "default": {},
1514
- "description": "Values computed for each lane and read as `${{ lane.<name> }}`, such as a database name, vhost, bucket or Redis index per lane. A var named `domain` replaces the default lane domain, and one named `port` fixes where the lane's port block starts. Cannot be combined with `matrix`.",
1514
+ "description": "Values computed for each lane and read as `${{ lane.<name> }}`, such as a database name, vhost, bucket or Redis index per lane. A var named `domain` replaces the default lane domain, and one named `port` fixes where the lane's port block starts. `${{ domain('pages') }}` gives a name a site of its own in each lane, such as `pages2.localhost` in lane 2. Cannot be combined with `matrix`.",
1515
1515
  "examples": [
1516
1516
  {
1517
1517
  "db_name": "acme_${{ lane.name }}"
1518
1518
  }
1519
1519
  ],
1520
- "markdownDescription": "Values computed for each lane and read as `${{ lane.<name> }}`, such as a database name, vhost, bucket or Redis index per lane. A var named `domain` replaces the default lane domain, and one named `port` fixes where the lane's port block starts. Cannot be combined with `matrix`.",
1520
+ "markdownDescription": "Values computed for each lane and read as `${{ lane.<name> }}`, such as a database name, vhost, bucket or Redis index per lane. A var named `domain` replaces the default lane domain, and one named `port` fixes where the lane's port block starts. `${{ domain('pages') }}` gives a name a site of its own in each lane, such as `pages2.localhost` in lane 2. Cannot be combined with `matrix`.",
1521
1521
  "type": "object"
1522
1522
  }
1523
1523
  },
@@ -3376,11 +3376,11 @@
3376
3376
  "type": "object"
3377
3377
  },
3378
3378
  "project": {
3379
- "description": "Project name, the same in every worktree of the repository. It builds each lane's default domain (`<project>.localhost` for lane 0, `<project>-<N>.localhost` for lane N), names lanes in commands (`acme@2`), the containers devlanes creates and `DEVLANES_PROJECT`, and other projects reach this one as `projects.<project>`. Lowercase letters, digits, dots, underscores and dashes.",
3379
+ "description": "Project name, the same in every worktree of the repository. It builds each lane's default domain (`<project>.localhost` for lane 0, `<project><N>.localhost` for lane N), names lanes in commands (`acme@2`), the containers devlanes creates and `DEVLANES_PROJECT`, and other projects reach this one as `projects.<project>`. Lowercase letters, digits, dots, underscores and dashes.",
3380
3380
  "examples": [
3381
3381
  "acme"
3382
3382
  ],
3383
- "markdownDescription": "Project name, the same in every worktree of the repository. It builds each lane's default domain (`<project>.localhost` for lane 0, `<project>-<N>.localhost` for lane N), names lanes in commands (`acme@2`), the containers devlanes creates and `DEVLANES_PROJECT`, and other projects reach this one as `projects.<project>`. Lowercase letters, digits, dots, underscores and dashes.",
3383
+ "markdownDescription": "Project name, the same in every worktree of the repository. It builds each lane's default domain (`<project>.localhost` for lane 0, `<project><N>.localhost` for lane N), names lanes in commands (`acme@2`), the containers devlanes creates and `DEVLANES_PROJECT`, and other projects reach this one as `projects.<project>`. Lowercase letters, digits, dots, underscores and dashes.",
3384
3384
  "type": "string"
3385
3385
  },
3386
3386
  "services": {
package/user-schema.json CHANGED
@@ -660,9 +660,9 @@
660
660
  "public"
661
661
  ],
662
662
  "enumDescriptions": [
663
- "Lane domains end in `.localhost` (`acme.localhost`, `acme-2.localhost`), which browsers and many system resolvers send to loopback by themselves. `hosts_file` covers programs that do not.",
663
+ "Lane domains end in `.localhost` (`acme.localhost`, `acme2.localhost`), which browsers and many system resolvers send to loopback by themselves. `hosts_file` covers programs that do not.",
664
664
  "Keep `.localhost` names and always write exact hostnames to `/etc/hosts`, as `hosts_file: always` does, whatever `hosts_file` says; a project's `lanes.hosts_file` still takes precedence. Needs the helper from `devlanes certs trust --hosts`.",
665
- "Lane domains become `<project>.<tld>` and `<project>-<N>.<tld>`, answered by a DNS server the daemon runs on `127.0.0.1:15353`, so wildcard hostnames resolve too for programs that use the system resolver. Needs `tld` and a one-time `devlanes certs trust --resolver`; projects that set `lanes.vars.domain` or `lanes.matrix` keep their own domains.",
665
+ "Lane domains become `<project>.<tld>` and `<project><N>.<tld>`, and so do the names `domain()` returns. They are answered by a DNS server the daemon runs on `127.0.0.1:15353`, so wildcard hostnames resolve too for programs that use the system resolver. Needs `tld` and a one-time `devlanes certs trust --resolver`. Projects that set `lanes.vars.domain` or `lanes.matrix` keep their own domains, and `domain()` gives them `.localhost` names.",
666
666
  "Reserved for public DNS names with DNS-01 certificates; not supported yet, so the config is rejected."
667
667
  ],
668
668
  "examples": [
@@ -673,9 +673,9 @@
673
673
  ],
674
674
  "markdownDescription": "Strategy that makes lane hostnames resolve to this machine.",
675
675
  "markdownEnumDescriptions": [
676
- "Lane domains end in `.localhost` (`acme.localhost`, `acme-2.localhost`), which browsers and many system resolvers send to loopback by themselves. `hosts_file` covers programs that do not.",
676
+ "Lane domains end in `.localhost` (`acme.localhost`, `acme2.localhost`), which browsers and many system resolvers send to loopback by themselves. `hosts_file` covers programs that do not.",
677
677
  "Keep `.localhost` names and always write exact hostnames to `/etc/hosts`, as `hosts_file: always` does, whatever `hosts_file` says; a project's `lanes.hosts_file` still takes precedence. Needs the helper from `devlanes certs trust --hosts`.",
678
- "Lane domains become `<project>.<tld>` and `<project>-<N>.<tld>`, answered by a DNS server the daemon runs on `127.0.0.1:15353`, so wildcard hostnames resolve too for programs that use the system resolver. Needs `tld` and a one-time `devlanes certs trust --resolver`; projects that set `lanes.vars.domain` or `lanes.matrix` keep their own domains.",
678
+ "Lane domains become `<project>.<tld>` and `<project><N>.<tld>`, and so do the names `domain()` returns. They are answered by a DNS server the daemon runs on `127.0.0.1:15353`, so wildcard hostnames resolve too for programs that use the system resolver. Needs `tld` and a one-time `devlanes certs trust --resolver`. Projects that set `lanes.vars.domain` or `lanes.matrix` keep their own domains, and `domain()` gives them `.localhost` names.",
679
679
  "Reserved for public DNS names with DNS-01 certificates; not supported yet, so the config is rejected."
680
680
  ],
681
681
  "type": "string"
@@ -1393,7 +1393,7 @@
1393
1393
  "resolver": "localhost",
1394
1394
  "tld": null
1395
1395
  },
1396
- "description": "How lane hostnames such as `api.acme-2.localhost` resolve to this machine: the strategy (`resolver`), its `tld`, and whether names also go into `/etc/hosts` (`hosts_file`). The defaults need no setup for browsers that resolve `*.localhost`.",
1396
+ "description": "How lane hostnames such as `api.acme2.localhost` resolve to this machine: the strategy (`resolver`), its `tld`, and whether names also go into `/etc/hosts` (`hosts_file`). The defaults need no setup for browsers that resolve `*.localhost`.",
1397
1397
  "examples": [
1398
1398
  {
1399
1399
  "hosts_file": "auto",
@@ -1404,7 +1404,7 @@
1404
1404
  "tld": "test"
1405
1405
  }
1406
1406
  ],
1407
- "markdownDescription": "How lane hostnames such as `api.acme-2.localhost` resolve to this machine: the strategy (`resolver`), its `tld`, and whether names also go into `/etc/hosts` (`hosts_file`). The defaults need no setup for browsers that resolve `*.localhost`."
1407
+ "markdownDescription": "How lane hostnames such as `api.acme2.localhost` resolve to this machine: the strategy (`resolver`), its `tld`, and whether names also go into `/etc/hosts` (`hosts_file`). The defaults need no setup for browsers that resolve `*.localhost`."
1408
1408
  },
1409
1409
  "lanes": {
1410
1410
  "$ref": "#/$defs/UserLanesConfig",