roster-server 2.2.9 → 2.2.10

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/index.js CHANGED
@@ -247,12 +247,12 @@ class Roster {
247
247
  this.disableWildcard = options.disableWildcard !== undefined
248
248
  ? parseBooleanFlag(options.disableWildcard, false)
249
249
  : parseBooleanFlag(process.env.ROSTER_DISABLE_WILDCARD, false);
250
- const combineDefault = isBunRuntime;
250
+ const combineDefault = false;
251
251
  this.combineWildcardCerts = options.combineWildcardCerts !== undefined
252
252
  ? parseBooleanFlag(options.combineWildcardCerts, combineDefault)
253
253
  : parseBooleanFlag(process.env.ROSTER_COMBINE_WILDCARD_CERTS, combineDefault);
254
254
  if (isBunRuntime && this.combineWildcardCerts) {
255
- log.info('Bun runtime detected: combined wildcard certificates enabled by default (SNI bypass)');
255
+ log.info('Bun runtime detected: combined wildcard certificates enabled (SNI bypass)');
256
256
  }
257
257
 
258
258
  const port = options.port === undefined ? 443 : options.port;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "roster-server",
3
- "version": "2.2.9",
3
+ "version": "2.2.10",
4
4
  "description": "👾 RosterServer - A domain host router to host multiple HTTPS.",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/tasks/lessons.md CHANGED
@@ -1,4 +1,4 @@
1
1
  # Lessons Learned
2
2
 
3
3
  - When wildcard TLS must run under Bun, do not rely on manual DNS instructions; default to API-driven DNS-01 TXT creation/removal (Linode/Akamai) with propagation polling, then fall back to manual mode only when no provider token is configured.
4
- - Prefer the simplest robust DNS verification path first (dig against 1.1.1.1/8.8.8.8) and avoid adding extra resolver complexity unless there is clear evidence it improves reliability.
4
+ - Do not keep speculative resolver/workaround attempts that are not the root cause; if a change does not resolve the issue with evidence, revert/simplify immediately so temporary experiments do not become permanent complexity.
@@ -8,7 +8,6 @@ const http = require('http');
8
8
  const os = require('os');
9
9
  const Roster = require('../index.js');
10
10
  const {
11
- isBunRuntime,
12
11
  wildcardRoot,
13
12
  hostMatchesWildcard,
14
13
  wildcardSubjectForHost,
@@ -325,14 +324,14 @@ describe('Roster', () => {
325
324
  else process.env.ROSTER_COMBINE_WILDCARD_CERTS = previous;
326
325
  }
327
326
  });
328
- it('defaults combineWildcardCerts based on isBunRuntime', () => {
327
+ it('defaults combineWildcardCerts to false', () => {
329
328
  const roster = new Roster({ local: false });
330
- assert.strictEqual(roster.combineWildcardCerts, isBunRuntime);
331
- });
332
- it('explicit combineWildcardCerts=false overrides Bun default', () => {
333
- const roster = new Roster({ local: false, combineWildcardCerts: false });
334
329
  assert.strictEqual(roster.combineWildcardCerts, false);
335
330
  });
331
+ it('explicit combineWildcardCerts=true enables combined cert mode', () => {
332
+ const roster = new Roster({ local: false, combineWildcardCerts: true });
333
+ assert.strictEqual(roster.combineWildcardCerts, true);
334
+ });
336
335
  });
337
336
 
338
337
  describe('register (normal domain)', () => {