Closed tvanriper closed 2 years ago
Some additional information...
It's complaining that the variable 'time' doesn't exist. Ignoring the existential, it's clearly defined around line 8474, but I wonder if there's some update to JavaScript that doesn't like the syntax you're using there.
Oh no, it's much worse than I thought...
All of your widgets for handling dates and times are impacted by this, likely because you're using that same function everywhere.
Ah, it's the temporal polyfill that has the bug and you've inherited it. Gads. This is going to impact a lot of libraries.
I'll submit a bug-fix to your dependency. Sorry for the trouble, but at least you're now aware of it, heh.
Ah, no maybe you need an update:
Thanks for the report!
I actually ran into this issue while working on the upcoming stylesheet rework. And tested the newer 0.3.0
polyfill release and seemed to fix it in Chrome. But a new issue came up with calendar handling with non-ISO-8601 (or maybe just Gregorian) calendars in FF 96+.
RangeError: Era a (ISO year 2022) was not matched by any era
completeEraYear calendar.js:1477
adjustCalendarDate calendar.js:1506
isoToCalendarDate calendar.js:593
temporalToCalendarDate calendar.js:836
dateAdd calendar.js:1922
dateAdd calendar.js:102
CalendarDateAdd ecmascript.js:1402
add plaindate.js:126
instance DayPicker.stories.svelte:27
init index.mjs:1778
DayPicker_stories DayPicker.stories.svelte:2698
createProxiedComponent svelte-hooks.js:245
ProxyComponent proxy.js:239
Proxy<DayPicker.stories> proxy.js:339
create_fragment RegisterContext.svelte:34
init index.mjs:1793
RegisterContext RegisterContext.svelte:142
createProxiedComponent svelte-hooks.js:245
ProxyComponent proxy.js:239
Proxy<RegisterContext> proxy.js:339
default collect-stories.js:49
<anonymous> DayPicker.stories.svelte:2714
A workaround seemed to be explicitly only use the ISO-8601 calendar, but then the components wouldn't automatically inherit the user's defaults. So I'm going to have to look into it a bit more.
Yeah, I noticed that the polyfill created breaking changes between 0.2.x and 0.3.x, which is a tad frustrating, as it prevents you from easily providing a 0.5.3 update.
For now, for my project, I've gone to using something else that isn't quite as nice.
Describe the Bug
Use of the DayStepper widget will cause your application to fail (not render) in newer versions of Firefox and Chromium (presumably Chrome as well, possibly also the myriad of other browsers using that engine). Note that it does work in Firefox 95.0.2.
You may get a stack trace similar to this:
Reproduction
Import DayStepper from 0.5.2 of @kahi-ui/framework.
Use it, binding 'value' to a variable.
System Info
Additional Context
No response