@testing-library/jest-dom from 6.1.5 to 6.4.2 with a new toHaveRole matcher that could be useful
@testing-library/react 14.2.0 and 14.2.1 with an option to enable strict mode render (but I don't think I'm going to enable it, since the goal is to test as closely to production as possible)
I noticed drei removed lodash from its codebase, and since this seems to be a trend, I'm doing the same. Turns out we've got alternatives for most of it, either in vanilla JS of course (e.g. typeof val === 'number' isn't that long to write after all...), or in other libs: MathUtils.clamp() in three, range() in d3-array, and useThrottledCallback in @react-hookz/web. When vanilla JS was a bit too verbose, I abstracted into my own utility functions (castArray and areSameDims).
This shaves off another 34 kB from the demo's bundle (in addition to the 50 kB saved in https://github.com/silx-kit/h5web/pull/1564). We should see an equivalent impact in consumer apps.
Big batch of updates, in no particular order:
toHaveRole
matcher that could be usefulmodule: "bundler"
workaround intsconfig.json
.null
fallback prop (useful for the error boundary of theNX
badges in the explorer)getInitialState
function on store objects.I noticed
drei
removedlodash
from its codebase, and since this seems to be a trend, I'm doing the same. Turns out we've got alternatives for most of it, either in vanilla JS of course (e.g.typeof val === 'number'
isn't that long to write after all...), or in other libs:MathUtils.clamp()
inthree
,range()
ind3-array
, anduseThrottledCallback
in@react-hookz/web
. When vanilla JS was a bit too verbose, I abstracted into my own utility functions (castArray
andareSameDims
).This shaves off another 34 kB from the demo's bundle (in addition to the 50 kB saved in https://github.com/silx-kit/h5web/pull/1564). We should see an equivalent impact in consumer apps.