Changelog #007

December 1st, 2023 - Bundle Size Reduction + Improvements

Follow us on twitter for realtime updates or read our previous changelog here

Community Contributors ✨

We wanted to give a shoutout to the open-source contributors who shipped some great work on the Open-Source repository:

Stoked to see this in production and bettering the Scalar API References ✨

Bundle Size Reduction

We had been so focused on shipping improvements, fixes & features for Scalar that it was time we did an audit of our bundle size. During this audit we found a lot of bloat with how we were doing dependencies, shipping extraneous files and not minifying some of our builds!

We were able to spend a good chunk of this week investigating trimming all of our bundle sizes across our integrations and CDN by 40% on average!

We are really excited about this improvement, shipping a smaller bundle size is important for better docs! You can read a bit more of the exact PRs that went into this improvement here:

  • feat : reduce fastify scalar bundle size by 800kb
  • chore : optimize bundle size of @scalar/swagger-editor

Fixes & Improvements

So much work was put into smaller improvements + optimizations of the bundle size for this week, but it really sets us up to deliver better integrations and to move faster next week

We shipped over 60 improvements large and small ✨

  • feat: expose spec content updates
  • docs(changeset): chore: remove swagger editor tabs
  • chore: remove swagger editor tabs
  • feat: swagger UI style layout DOC-1372
  • chore: add license badge
  • chore: merge contributing and contributors sections
  • chore: add contributors badge to the README
  • ci: use username for contributors
  • chore: add a placeholder for contributors in the README
  • ci: automatically add contributors to the README
  • ci: update workflow titles
  • fix: @scalar/hono-api-reference doesn’t use content & preparsedContent
  • fix: URL doesn’t match the active sidebar item (DOC-1361, #296)
  • fix: fastify plugin doesn’t serve the JS
  • chore: update PR template
  • fix: theme changing
  • feat: pass custom CSS to the fastify plugin
  • chore: Create CODE_OF_CONDUCT.md
  • fix: searchModal shows underline for all links
  • feat: set customCss in the configuration
  • ci: fix omitBody for pre-releases
  • chore: update existing tags
  • chore: add a script to pack all packages
  • ci: always tag main
  • ci: use turbo for the release workflow
  • ci: pack packages for the pre-release
  • ci: create pre-releases
  • chore: add CONTRIBUTING file
  • chore: add a basic PR template
  • fix(RequestBodyProperties): handled enum type
  • chore: lint PR title
  • feat: expose footer slot on standalone component
  • fix: don't trim the slash when it’s the only character in the URL
  • feat: custom Express CSS
  • feat: reduce fastify scalar bundle size by 800kb
  • fix: catch axios errors and show them in the response
  • Marc/remove tableau example
  • Fix broken theme style file link
  • fix: remove leaky header css
  • feat: Initial vite config cleanup
  • style: move some style properties to extend
  • chore: do not externalize @scalar deps
  • chore: fix relative imports
  • fix: peer dependencies
  • chore: run custom format script
  • chore: rename @scalar-org to @scalar-examples
  • chore: rename projects/ to examples/
  • chore: clean up prettier config
  • chore: add .nvmrc file
  • chore: change how we deal with dependencies
  • chore: bump scalar deps (#1366)
  • chore: update @scalar deps (#1341)
  • fix: broken sidebar and pagenav position in guides (#1365)
  • feat: add loading state to swagger editor marketing page (#1364)
  • chore: Typescript 5.3 (#1356)
  • fix: Remove uneeded touch command (#1357)
  • fix: add missing meta for scalar.com (#1353)
  • fix: add missing robots.txt (#1352)
  • feat: move to multi app build for static swagger editor page (#1347)
  • fix: scroll to top on page nav for published sites (#1350)
  • chore: remove unused start attribute for unordered list (#1348)
  • fix: show page nav on first page load (#1349)
  • fix: save toast should not show unless signed in (#1344)
We are incredibly grateful for the Scalar community, all the feedback has been truly inspiring, helps guide us to prioritize fixes and we are looking forward to releasing more features and fixes for the next changelog ✨

Join us:

Marc

CEO & Co-Founder, Scalar