You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Git Json Resolver Semver is a comprehensive library designed to unlock the full potential of React 18 server components. It provides customizable loading animation components and a fullscreen loader container, seamlessly integrating with React and Next.js.
16
+
**Semver-aware plugin for [`git-json-resolver`](https://github.com/react18-tools/git-json-resolver)** — resolve JSON version conflicts (e.g., `package.json`) via semantic-version strategies.
17
17
18
-
✅ Fully Treeshakable (import from `git-json-resolver-semver/client/loader-container`)
✅ Leverages the power of React 18 Server components
23
-
24
-
✅ Compatible with all React 18 build systems/tools/frameworks
25
-
26
-
✅ Documented with [Typedoc](https://react18-tools.github.io/git-json-resolver-semver) ([Docs](https://react18-tools.github.io/git-json-resolver-semver))
25
+
---
27
26
28
-
✅ Examples for Next.js, and Vite
27
+
## ✨ Features
29
28
30
-
> <imgsrc="https://raw.githubusercontent.com/mayank1513/mayank1513/main/popper.png"style="height: 20px"/> Star [this repository](https://github.com/react18-tools/git-json-resolver-semver) and share it with your friends.
29
+
- Avoid manual conflict resolution in `package.json`
30
+
- Small & tree-shakable (0 runtime dependencies)
31
+
- Works with **direct import** or **dynamic plugin loading**
32
+
- TypeScript types included
31
33
32
-
## Getting Started
34
+
> <imgsrc="https://raw.githubusercontent.com/mayank1513/mayank1513/main/popper.png"style="height: 20px"/> Star the repo if it saved your merge. And and also share it with your friends.
For detailed API and options, refer to [the API documentation](https://react18-tools.github.io/git-json-resolver-semver).
110
+
---
107
111
108
-
**Using LoaderContainer**
112
+
## ⚙️ Behavior notes
109
113
110
-
`LoaderContainer` is a fullscreen component. You can add this component directly in your layout and then use `useLoader` hook to toggle its visibility.
114
+
-**strict** mode (default) accepts only `x.y.z`. Set non-strict to allow prereleases/ranges.
115
+
-**preferValid** (default) returns the valid side when the other is invalid.
116
+
-**fallback** controls behavior when neither side is valid (`ours` | `theirs` | `continue` | `error`).
0 commit comments