Skip to content

fix: publish the size that applications actually pay - #11

Merged
MeAkib merged 3 commits into
mainfrom
release/0.0.3
Oct 1, 2026
Merged

MeAkib merged 3 commits into
mainfrom
release/0.0.3

Conversation

@MeAkib

@MeAkib MeAkib commented Oct 1, 2026 •

Copy link
Copy Markdown
Owner

0.0.2 said 8.6 KB everywhere. That is what the library's own code weighs, not what an application grows by: Angular publishes libraries in partial compilation, and the linker expands directive definitions during the consuming build, which npm run size never sees.

scripts/app-size.mjs builds the same app with and without the grid and subtracts: +10.37 KB gzipped for and [masonryGridItem], +10.57 KB with every directive and the provider. README, llms.txt, demo and CONTRIBUTING now say ~10.4 KB; DOCS.md gives all three numbers and keeps the library comparison in own-code units.

Also bumps the library to 0.0.3 and renames the workspace package to masonry-angular-workspace, so two package.json files no longer share a name with different versions.

What does this change?

How to see it

Checks

  • npm test passes
  • npm run format run on the files I touched
  • Added a test, if this fixes a bug — one that fails before the change and passes after
  • npm run verify:compat, if I changed anything public (builds a real app on Angular 17–22)

0.0.2 said 8.6 KB everywhere. That is what the library's own code weighs, not
what an application grows by: Angular publishes libraries in partial
compilation, and the linker expands directive definitions during the consuming
build, which `npm run size` never sees.

scripts/app-size.mjs builds the same app with and without the grid and
subtracts: +10.37 KB gzipped for <masonry-grid> and [masonryGridItem], +10.57 KB
with every directive and the provider. README, llms.txt, demo and CONTRIBUTING
now say ~10.4 KB; DOCS.md gives all three numbers and keeps the library
comparison in own-code units.

Also bumps the library to 0.0.3 and renames the workspace package to
masonry-angular-workspace, so two package.json files no longer share a name
with different versions.
@vercel

vercel Bot commented Oct 1, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
masonry-angular Ready Ready Preview Oct 1, 2026 10:44am UTC
masonry-angular-examples Ready Ready Preview Oct 1, 2026 10:44am UTC

The demo was a client-rendered Angular app, so the HTML served to anything
that does not run JavaScript was an empty <app-root></app-root>. GPTBot,
ClaudeBot, PerplexityBot and the search-time crawlers read the response and
nothing more, so every page was blank to all of them.

- outputMode: 'static' with a server entry prerenders all five routes at build
  time. Still a static deployment: no server, no serverless function.
- The notes, config and code panels are hidden rather than removed by control
  flow, so the source listing ships in the HTML. Config controls also keep
  their values when switching panels.
- The gallery moves from /gallery to /. A redirectTo route prerenders as a
  meta-refresh stub with no content or social tags, so the bare domain had no
  preview card. /gallery now 301s to / in vercel.json.
- inject-meta.mjs patches every prerendered page and points canonical and
  og:url at that page instead of the home page. The origin rule moves to
  site-origin.mjs, shared with the new make-sitemap.mjs.
- sitemap.xml is generated from the pages the build actually produced, and
  robots.txt names the AI crawlers explicitly and links the sitemap.
- index.html gains SoftwareSourceCode structured data.
- verify-prerender.mjs fails if a route is missing from the output or ships
  under 600 characters of text, and CI runs it on every pull request.
@MeAkib
MeAkib marked this pull request as ready for review October 1, 2026 10:43
@MeAkib
MeAkib merged commit 79d6d40 into main Oct 1, 2026
9 checks passed

This branch was successfully deployed

2 active deployments
Preview – masonry-angular — c0fd6d2b Deployed Oct 1, 2026 by vercel[bot]
Preview – masonry-angular-examples — c0fd6d2b Deployed Oct 1, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant