Skip to content

Commit 291761f

Browse files
committed
s/dom-stack/domstack
1 parent 6a6d762 commit 291761f

13 files changed

Lines changed: 58 additions & 58 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ domstack v11 is a major release that renames the project from `top-bun` to `@dom
3434
- **`postVars` removed**: migrate `postVars` exports from `page.vars.js` files to a single `global.data.js` with a default export
3535
- **New reserved filenames**: `global.data.js`, `markdown-it.settings.js`, `page.md`, `*.worker.{js,ts}` are now special — rename any colliding files
3636
- **Default layout**: switched from `uhtml-isomorphic` to `preact`; add `uhtml-isomorphic` to your own deps if you import it directly
37-
- **Output paths**: `top-bun-esbuild-meta.json``dom-stack-esbuild-meta.json`, `top-bun-defaults/``dom-stack-defaults/`
37+
- **Output paths**: `top-bun-esbuild-meta.json``domstack-esbuild-meta.json`, `top-bun-defaults/``domstack-defaults/`
3838
- **Conflict now throws**: using both `browser` in `global.vars.js` and `define` in `esbuild.settings.js` is now a hard error
3939

4040
See [docs/v11-migration.md](docs/v11-migration.md) for the complete migration guide with code examples.

bin.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import { addPackageDependencies } from 'write-package'
2020

2121
import { copyFile } from './lib/helpers/copy-file.js'
2222
import { DomStack } from './index.js'
23-
import { DomStackAggregateError } from './lib/helpers/dom-stack-aggregate-error.js'
23+
import { DomStackAggregateError } from './lib/helpers/domstack-aggregate-error.js'
2424
import { generateTreeData } from './lib/helpers/generate-tree-data.js'
2525
import { askYesNo } from './lib/helpers/cli-prompt.js'
2626

dependencygraph.svg

Lines changed: 36 additions & 36 deletions
Loading

docs/v11-migration.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ The bundled default `root.layout.js` (used when `--eject` has not been run, or w
268268
```sh
269269
npm install uhtml-isomorphic
270270
```
271-
- If you were using the unenjoyed default layout, the rendered HTML structure is equivalent but the implementation changed. No action needed unless you were relying on implementation details.
271+
- If you were using the un-ejected default layout, the rendered HTML structure is equivalent but the implementation changed. No action needed unless you were relying on implementation details.
272272

273273
---
274274

@@ -296,14 +296,14 @@ Several filenames in the `dest` (output) directory changed. Update any tooling,
296296

297297
| Before | After |
298298
|--------|-------|
299-
| `dest/top-bun-esbuild-meta.json` | `dest/dom-stack-esbuild-meta.json` |
299+
| `dest/top-bun-esbuild-meta.json` | `dest/domstack-esbuild-meta.json` |
300300

301301
### Default layout assets
302302

303303
| Before | After |
304304
|--------|-------|
305-
| `dest/top-bun-defaults/default.style-[hash].css` | `dest/dom-stack-defaults/default.style-[hash].css` |
306-
| `dest/top-bun-defaults/default.client-[hash].js` | `dest/dom-stack-defaults/default.client-[hash].js` |
305+
| `dest/top-bun-defaults/default.style-[hash].css` | `dest/domstack-defaults/default.style-[hash].css` |
306+
| `dest/top-bun-defaults/default.client-[hash].js` | `dest/domstack-defaults/default.client-[hash].js` |
307307

308308
---
309309

@@ -373,6 +373,6 @@ const page: PageFunction<MyVars, string> = async ({ vars }) => { ... }
373373
- [ ] Rename any files accidentally named `global.data.js`, `markdown-it.settings.js`, `page.md`, or `*.worker.js` that weren't intended for those purposes
374374
- [ ] If using both `browser` in `global.vars.js` and `define` in `esbuild.settings.js`, consolidate to one
375375
- [ ] If importing `uhtml-isomorphic` from layouts without it in your own `package.json`, add it explicitly
376-
- [ ] Update any CI/scripts referencing `top-bun-esbuild-meta.json``dom-stack-esbuild-meta.json`
377-
- [ ] Update any CI/scripts referencing `top-bun-defaults/``dom-stack-defaults/` in the output dir
376+
- [ ] Update any CI/scripts referencing `top-bun-esbuild-meta.json``domstack-esbuild-meta.json`
377+
- [ ] Update any CI/scripts referencing `top-bun-defaults/``domstack-defaults/` in the output dir
378378
- [ ] Override `siteName` in `global.vars.js` if you were relying on the default value

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ import {
4747
} from './lib/identify-pages.js'
4848
import { resolveVars } from './lib/build-pages/resolve-vars.js'
4949
import { ensureDest } from './lib/helpers/ensure-dest.js'
50-
import { DomStackAggregateError } from './lib/helpers/dom-stack-aggregate-error.js'
50+
import { DomStackAggregateError } from './lib/helpers/domstack-aggregate-error.js'
5151

5252
/**
5353
* @typedef {BuildOptions} BuildOptions

lib/build-esbuild/index.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import esbuild from 'esbuild'
88
import { resolveVars } from '../build-pages/resolve-vars.js'
99

1010
const __dirname = import.meta.dirname
11-
const DOM_STACK_DEFAULTS_PREFIX = 'dom-stack-defaults'
11+
const DOM_STACK_DEFAULTS_PREFIX = 'domstack-defaults'
1212

1313
/**
1414
* @typedef {esbuild.Format} EsbuildFormat
@@ -121,8 +121,8 @@ function updateSiteDataOutputPaths (outputMap, siteData) {
121121
}
122122

123123
if (siteData.defaultLayout) {
124-
const defaultClient = Object.values(outputMap).find(p => /^dom-stack-defaults.*\.js$/.test(p))
125-
const defaultStyle = Object.values(outputMap).find(p => /^dom-stack-defaults.*\.css$/.test(p))
124+
const defaultClient = Object.values(outputMap).find(p => /^domstack-defaults.*\.js$/.test(p))
125+
const defaultStyle = Object.values(outputMap).find(p => /^domstack-defaults.*\.css$/.test(p))
126126
siteData.defaultClient = defaultClient ?? null
127127
siteData.defaultStyle = defaultStyle ?? null
128128
}
@@ -236,7 +236,7 @@ export async function buildEsbuild (src, dest, siteData, opts) {
236236
const buildResults = await esbuild.build(extendedBuildOpts)
237237

238238
if (buildResults.metafile) {
239-
await writeFile(join(dest, 'dom-stack-esbuild-meta.json'), JSON.stringify(buildResults.metafile, null, ' '))
239+
await writeFile(join(dest, 'domstack-esbuild-meta.json'), JSON.stringify(buildResults.metafile, null, ' '))
240240
}
241241

242242
const outputMap = buildResults.metafile ? extractOutputMap(buildResults.metafile, src, dest) : {}
@@ -308,7 +308,7 @@ export async function buildEsbuildWatch (src, dest, siteData, opts, watchOpts =
308308
const initialResult = await context.rebuild()
309309

310310
if (initialResult.metafile) {
311-
await writeFile(join(dest, 'dom-stack-esbuild-meta.json'), JSON.stringify(initialResult.metafile, null, ' '))
311+
await writeFile(join(dest, 'domstack-esbuild-meta.json'), JSON.stringify(initialResult.metafile, null, ' '))
312312
}
313313

314314
const outputMap = initialResult.metafile ? extractOutputMap(initialResult.metafile, src, dest) : {}

lib/builder.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/**
22
* @import {Message as EsbuildMessage} from 'esbuild'
3-
* @import { DomStackWarning } from './helpers/dom-stack-warning.js'
3+
* @import { DomStackWarning } from './helpers/domstack-warning.js'
44
* @import { EsBuildStepResults } from './build-esbuild/index.js'
55
* @import { PageBuildStepResult } from './build-pages/index.js'
66
* @import { StaticBuildStepResult } from './build-static/index.js'
@@ -12,7 +12,7 @@ import { identifyPages } from './identify-pages.js'
1212
import { buildStatic } from './build-static/index.js'
1313
import { buildCopy } from './build-copy/index.js'
1414
import { buildEsbuild } from './build-esbuild/index.js'
15-
import { DomStackAggregateError } from './helpers/dom-stack-aggregate-error.js'
15+
import { DomStackAggregateError } from './helpers/domstack-aggregate-error.js'
1616
import { ensureDest } from './helpers/ensure-dest.js'
1717

1818
/**

0 commit comments

Comments
 (0)