I bunched up a couple of other changes in here, which I'll outline!
Slight refactor to useBBQuery to expose useQuery's response object so that error/isError can be deconstructed properly.
This change was to address a bug where when backend calls would fail, the useBBQuery hook would just forward the error HTML to the React Component. It is a minor quality of life change to help prevent some class of bugs \o/
Split node_module chunks out into independent chunks.
In an effort to optimize the ZFGBB app, this change allows the browser to parallelize loading of JS Assets. This won't impact vite's "dev" mode because this only applies at build time in production mode.
Add VSCode configs
This just does a few nice things like grouping root files under package.json in the viewer.
and expanded
Move bootstrap import to App.css
Another change for helping performance. The bootstrap css loads faster via native css import vs esm import due to overhead being incurred if loading from esm.
Update packages & yarn
Shuts dependabot up
Verbatum Module Syntax config in tsconfig.json
This is a new TypeScript feature that helps TypeScript and Bundlers like Vite remove unnecessary imports when tree shaking the final build. It does this by requiring TypeScript imports to be denoted with a type specifier if the import is only valid in TypeScript and not JavaScript.
Adds type safety to BBPermission
Just a developer nice to have, so when specifying permission rules in a React component, there's an auto-complete and also when running type checks on build and in CI, invalid permission checks will get caught.
Description
I bunched up a couple of other changes in here, which I'll outline!
Slight refactor to useBBQuery to expose useQuery's response object so that error/isError can be deconstructed properly. This change was to address a bug where when backend calls would fail, the useBBQuery hook would just forward the error HTML to the React Component. It is a minor quality of life change to help prevent some class of bugs \o/
Split node_module chunks out into independent chunks. In an effort to optimize the ZFGBB app, this change allows the browser to parallelize loading of JS Assets. This won't impact vite's "dev" mode because this only applies at build time in production mode.
Add VSCode configs This just does a few nice things like grouping root files under
package.json
in the viewer.and expanded
Move bootstrap import to App.css Another change for helping performance. The bootstrap css loads faster via native css import vs esm import due to overhead being incurred if loading from esm.
Update packages & yarn Shuts dependabot up
Verbatum Module Syntax config in tsconfig.json This is a new TypeScript feature that helps TypeScript and Bundlers like Vite remove unnecessary imports when tree shaking the final build. It does this by requiring TypeScript imports to be denoted with a
type
specifier if the import is only valid in TypeScript and not JavaScript.Adds type safety to BBPermission Just a developer nice to have, so when specifying permission rules in a React component, there's an auto-complete and also when running type checks on build and in CI, invalid permission checks will get caught.
Remove unused imports Cleaning up stuffs