Skip to content

deps-dev(deps-dev): bump @sveltejs/kit from 2.37.0 to 2.37.1#18

Closed
dependabot[bot] wants to merge 1 commit intomainfrom
dependabot/npm_and_yarn/sveltejs/kit-2.37.1
Closed

deps-dev(deps-dev): bump @sveltejs/kit from 2.37.0 to 2.37.1#18
dependabot[bot] wants to merge 1 commit intomainfrom
dependabot/npm_and_yarn/sveltejs/kit-2.37.1

Conversation

@dependabot
Copy link
Copy Markdown

@dependabot dependabot Bot commented on behalf of github Sep 8, 2025

Bumps @sveltejs/kit from 2.37.0 to 2.37.1.

Release notes

Sourced from @​sveltejs/kit's releases.

@​sveltejs/kit@​2.37.1

Patch Changes

  • fix: serialize server load data before passing to universal load, to handle mutations and promises (#14298)

  • fix: resolve_route prevent dropping a trailing slash of id (#14294)

  • fix: assign correct status code to form submission error on the client (#14345)

  • fix: un-proxy form.result (#14346)

Changelog

Sourced from @​sveltejs/kit's changelog.

2.37.1

Patch Changes

  • fix: serialize server load data before passing to universal load, to handle mutations and promises (#14298)

  • fix: resolve_route prevent dropping a trailing slash of id (#14294)

  • fix: assign correct status code to form submission error on the client (#14345)

  • fix: un-proxy form.result (#14346)

Commits
  • dd19f91 Version Packages (#14342)
  • 4f883d1 chore(deps): update dependency @​opentelemetry/sdk-node to ^0.204.0 (#14373)
  • b216e47 fix: assign correct status code to form submission error on the client (#14345)
  • fb0f5dd fix: resolve_route prevent dropping a trailing slash of id (#14294)
  • 86d3889 fix: un-proxy form.result (#14346)
  • b2e921c chore: windows-compatible rm -rf (#14344)
  • 1c416bc fix: serialize server load data before passing to universal load alternativ...
  • f3a0dda chore: get rid of AbortController when calling queries on server (#14338)
  • See full diff in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [@sveltejs/kit](https://github.com/sveltejs/kit/tree/HEAD/packages/kit) from 2.37.0 to 2.37.1.
- [Release notes](https://github.com/sveltejs/kit/releases)
- [Changelog](https://github.com/sveltejs/kit/blob/main/packages/kit/CHANGELOG.md)
- [Commits](https://github.com/sveltejs/kit/commits/@sveltejs/kit@2.37.1/packages/kit)

---
updated-dependencies:
- dependency-name: "@sveltejs/kit"
  dependency-version: 2.37.1
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot @github
Copy link
Copy Markdown
Author

dependabot Bot commented on behalf of github Sep 8, 2025

Assignees

The following users could not be added as assignees: rezky_nightky. Either the username does not exist or it does not have the correct permissions to be added as an assignee.

Labels

The following labels could not be found: automated, dependencies. Please create them before Dependabot can add them to a pull request.

Please fix the above issues or remove invalid values from dependabot.yml.

@vercel
Copy link
Copy Markdown
Contributor

vercel Bot commented Sep 8, 2025

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

Project Deployment Preview Comments Updated (UTC)
devv-3 Ready Ready Preview Comment Sep 8, 2025 8:02am

@dependabot @github
Copy link
Copy Markdown
Author

dependabot Bot commented on behalf of github Sep 15, 2025

Superseded by #21.

@dependabot dependabot Bot closed this Sep 15, 2025
@dependabot dependabot Bot deleted the dependabot/npm_and_yarn/sveltejs/kit-2.37.1 branch September 15, 2025 08:27
oxyzenQ added a commit that referenced this pull request May 2, 2026
… backdrop

## Bug Fixes

### Bug #17: Mobile Backdrop Transparency
- EncryptionModal & FeedbackModal already fixed in previous commit
- Uses var(--cosmic-dark-82/92) with iOS-specific stronger blur

### Bug #18: Duplicate Modal + Wrong Error UI

#### Root Cause
- BmiForm.svelte showed BOTH FeedbackModal AND called onNotify
- +page.svelte then showed NotifyFloat → duplicate modals
- NotifyFloat used 'delete' type for errors → Trash icon + 2 buttons

#### Fixes Applied

1. **Single Source of Truth** (BmiForm.svelte)
   - Removed all direct FeedbackModal triggers from handleFileChange
   - File size guards now use onNotify only
   - Validation errors now use onNotify only
   - Import errors from handleImportConfirm still use FeedbackModal
     (for encrypted file retry flow)

2. **New 'error' Type for NotifyFloat** (NotifyFloat.svelte)
   - Added 'error' to type union
   - Uses X icon (not Trash) for error type
   - Shows only 1 button (OK) for error type
   - Maintains 2 buttons for 'delete' and 'warn' types

3. **Updated +page.svelte**
   - Changed import-error from 'delete' to 'error' type
   - Updated notifyType state type to include 'error'

## Result
- Invalid JSON import: Shows 1 modal with X icon, 1 OK button
- No duplicate modals
- Consistent error UI across all import error scenarios

## Verification
- svelte-check: 0 errors, 0 warnings
- Build: SUCCESS

Closes: Bug #17, Bug #18 - Final stabilization complete

── bmi/dev · c5c097f52b64 · 3 file · +24/-17 · 2026-05-02T17:45:49Z
oxyzenQ added a commit that referenced this pull request May 2, 2026
## Root Cause
File input onchange event tidak fire saat memilih file yang same
and input.value belum di-reset setelah error validation.

## Fix
- Tambah finally block untuk SELALU reset input.value = ''
- Tambah guard on awal: jika !file, tetap reset input
- Hapus input.value = '' dari encrypted path (already di-cover finally)

## Verification
- svelte-check: 0 errors, 0 warnings
- Build: SUCCESS

Closes: Bug #18 - file input onchange tidak trigger on file yang same

── bmi/dev · f58658c0cacc · 1 file · +9/-3 · 2026-05-02T17:54:20Z
oxyzenQ added a commit that referenced this pull request May 2, 2026
## Root Cause
File input reset via e.currentTarget.value tidak reliable on Svelte
ketika element already di-bind via bind:this.

## Fix
- Tambah fungsi resetFileInput() yang pakai bound element (fileInputEl)
- Reset dari semua exit paths: error guards, encrypted, success, catch, finally
- Lebih reliable karena pakai direct DOM reference

## Files Changed
- src/lib/components/BmiForm.svelte

## Verification
- svelte-check: 0 errors, 0 warnings
- Build: SUCCESS

── bmi/dev · 162c248bbb84 · 1 file · +13/-8 · 2026-05-02T17:59:10Z
oxyzenQ added a commit that referenced this pull request May 2, 2026
## Fix
Gunakan pattern cloneNode + replaceChild untuk paling reliable:

1. fileInputEl.value = '' (standard reset)
2. Clone element dengan semua attributes
3. Replace old element dengan clone
4. Update fileInputEl reference ke element baru

Ini memastikan input benar-benar fresh and onchange akan fire
saat user pilih file yang same lagi.

## Verification
- svelte-check: PASS
- Build: SUCCESS

── bmi/dev · f397a04c8cba · 1 file · +10/-4 · 2026-05-02T18:00:41Z
oxyzenQ added a commit that referenced this pull request May 2, 2026
## Root Cause
Svelte 5 bind:this tidak kompatibel dengan manual DOM manipulation.
Clone+replace pattern did not update binding reference correctly.

## Fix
Use Svelte-native approach dengan {#key} block:

1. Add fileInputKey state ()
2. Wrap input element dengan {#key fileInputKey}
3. On reset, increment key → Svelte remount new element
4. Element baru = fresh state = onchange will fire

## Flow:
- User selects file → onchange fire → process file
- Finally block: fileInputKey++ → input remount
- User selects file lagi (same atau beda) → onchange fire

## Verification
- svelte-check: PASS
- Build: SUCCESS

Ini approach paling reliable because it uses Svelte reactivity system,
not manual DOM manipulation.

── bmi/dev · a8df5192088f · 1 file · +15/-19 · 2026-05-02T18:05:26Z
oxyzenQ added a commit that referenced this pull request May 2, 2026
…lick

## Fix
Hapus bind:this (timing issue dengan {#key}) and ganti dengan:

1. id='bmi-file-input' on element
2. document.getElementById() on handleImportClick
3. setTimeout 0 untuk ensure DOM ready setelah key change

## Kenapa ini lebih reliable:
- bind:this update asynchronously, bisa stale setelah remount
- getElementById selalu baca DOM real-time
- setTimeout ensure micro-task flush untuk DOM update

## Verification
- svelte-check: PASS
- Build: SUCCESS

── bmi/dev · 7e102e2f7bec · 1 file · +6/-3 · 2026-05-02T18:07:16Z
oxyzenQ added a commit that referenced this pull request May 2, 2026
…h click

## Root Cause
Semua previous approaches (bind:this, {#key}, getElementById) tidak reliable
karena browser file input behavior yang unik.

## Fix (Nuclear Option)
Create input element programmatically setiap kali Import diklik:

1. handleImportClick() create <input type='file'> fresh
2. Set onchange handler langsung
3. Append ke body, click(), lalu auto-remove via onchange cleanup

Keuntungan:
- Element selalu fresh, belum pernah punya file selected
- onchange will fire untuk file apapun (same atau beda)
- Tidak ada state persistence issue
- Tidak perlu reset/manual cleanup

## Files Changed
- src/lib/components/BmiForm.svelte (complete rewrite of import flow)

## Verification
- svelte-check: PASS
- Build: SUCCESS

── bmi/dev · 9600ae905fd7 · 1 file · +16/-32 · 2026-05-02T18:26:44Z

── bmi/dev · 23d878a118d4 · 1 file · +0/-0 · 2026-05-02T18:29:36Z
oxyzenQ added a commit that referenced this pull request May 2, 2026
Root cause: missing handler for notifyType === 'error' in onContinue

showNotify never became false, so second error didn't trigger effect

Fix: add error handler to dismiss notification

── bmi/dev · 3142247ac3ba · 2 file · +3/-5 · 2026-05-02T19:03:12Z
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.

0 participants