Skip to content

Commit e895caf

Browse files
next release (#7)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 parent 1b81585 commit e895caf

File tree

4 files changed

+25
-26
lines changed

4 files changed

+25
-26
lines changed

.changeset/fresh-monkeys-yell.md

Lines changed: 0 additions & 13 deletions
This file was deleted.

.changeset/short-moles-taste.md

Lines changed: 0 additions & 12 deletions
This file was deleted.

CHANGELOG.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# spin-delay
2+
3+
## 2.0.0
4+
5+
### Major Changes
6+
7+
- [#8](https://github.com/smeijer/spin-delay/pull/8) [`1b81585`](https://github.com/smeijer/spin-delay/commit/1b815854e454e2d10357f2dd586370ef9de44b4d) Thanks [@smeijer](https://github.com/smeijer)! - We now support spinner initialization from the server (SSR). When the `loading` prop is `true` due to server-side rendering, the spinner will be shown immediately. You can opt-out of this behavior by setting the `ssr` option to `false`.
8+
9+
```tsx
10+
import { useSpinDelay } from 'spin-delay';
11+
12+
const spin = useSpinDelay(loading, {
13+
ssr: false, // defaults to true
14+
});
15+
```
16+
17+
- [#6](https://github.com/smeijer/spin-delay/pull/6) [`3d4f4d5`](https://github.com/smeijer/spin-delay/commit/3d4f4d51db5c3e0b9a301ff5ada5e9efbe5fd35a) Thanks [@smeijer](https://github.com/smeijer)! - We've to removed the default export. Please update your code to use the named
18+
export instead. This is a breaking change, but it's a minor one. Chances are
19+
that you're already using the named export, and you don't have to do anything.
20+
21+
```diff
22+
- import useSpinDelay from 'spin-delay';
23+
+ import { useSpinDelay } from 'spin-delay';
24+
```

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "spin-delay",
3-
"version": "1.2.0",
3+
"version": "2.0.0",
44
"description": "Smart spinner helper for React, to manage the duration of loading states.",
55
"source": "src/index.ts",
66
"main": "dist/index.js",

0 commit comments

Comments
 (0)