Skip to content

Commit 4c4824a

Browse files
tanemclaude
andcommitted
Drop UMD builds
React 19 ships no UMD build of its own, so the script-tag path already only worked with React 18 and earlier. Script-tag users can pin @tanem/react-nprogress@^6. Removes the two UMD rollup configs, their jest configs and test scripts, and the umd-dev/umd-prod examples. With UMD gone every remaining bundle externalises peers and dependencies alike, so getExternal collapses to a single predicate. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
1 parent f6fca4f commit 4c4824a

18 files changed

Lines changed: 31 additions & 455 deletions

File tree

.gitignore

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,4 @@ compiled
55
coverage
66
dist
77
examples/*/package-lock.json
8-
examples/umd-dev/.cache
9-
examples/umd-prod/.cache
108
node_modules

MIGRATION.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,18 @@
11
# Migrating
22

3+
## v7.0.0
4+
5+
### UMD builds removed
6+
7+
`dist/react-nprogress.umd.development.js` and
8+
`dist/react-nprogress.umd.production.js` are no longer published. React 19
9+
does not ship a UMD build of its own, so the script-tag path already only
10+
worked with React 18 and earlier.
11+
12+
**Action required:** for script-tag usage, pin
13+
`@tanem/react-nprogress@^6`. Otherwise install the package and consume it
14+
through a bundler.
15+
316
## v6.0.0
417

518
Trickle pacing was adjusted to more closely match the original

README.md

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,6 @@ render(<Enhanced isAnimating />, document.getElementById('root'))
103103
- Plain JS: [Source](https://github.com/tanem/react-nprogress/tree/master/examples/plain-js) | [Sandbox](https://codesandbox.io/p/devbox/github/tanem/react-nprogress/tree/master/examples/plain-js)
104104
- React Router: [Source](https://github.com/tanem/react-nprogress/tree/master/examples/react-router) | [Sandbox](https://codesandbox.io/p/devbox/github/tanem/react-nprogress/tree/master/examples/react-router)
105105
- Render Props: [Source](https://github.com/tanem/react-nprogress/tree/master/examples/render-props) | [Sandbox](https://codesandbox.io/p/devbox/github/tanem/react-nprogress/tree/master/examples/render-props)
106-
- UMD Build (Development): [Source](https://github.com/tanem/react-nprogress/tree/master/examples/umd-dev) | [Sandbox](https://codesandbox.io/p/devbox/github/tanem/react-nprogress/tree/master/examples/umd-dev)
107-
- UMD Build (Production): [Source](https://github.com/tanem/react-nprogress/tree/master/examples/umd-prod) | [Sandbox](https://codesandbox.io/p/devbox/github/tanem/react-nprogress/tree/master/examples/umd-prod)
108106

109107
## API
110108

@@ -191,21 +189,6 @@ const Enhanced = withNProgress(Inner)
191189
$ npm install @tanem/react-nprogress
192190
```
193191

194-
UMD builds are also available for use with pre-React 19 via [unpkg](https://unpkg.com/):
195-
196-
- https://unpkg.com/@tanem/react-nprogress/dist/react-nprogress.umd.development.js
197-
- https://unpkg.com/@tanem/react-nprogress/dist/react-nprogress.umd.production.js
198-
199-
For the non-minified development version, make sure you have already included:
200-
201-
- [`React`](https://unpkg.com/react@18/umd/react.development.js)
202-
- [`ReactDOM`](https://unpkg.com/react-dom@18/umd/react-dom.development.js)
203-
204-
For the minified production version, make sure you have already included:
205-
206-
- [`React`](https://unpkg.com/react@18/umd/react.production.min.js)
207-
- [`ReactDOM`](https://unpkg.com/react-dom@18/umd/react-dom.production.min.js)
208-
209192
## License
210193

211194
MIT

examples/umd-dev/.codesandbox/tasks.json

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

examples/umd-dev/.devcontainer/devcontainer.json

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

examples/umd-dev/index.html

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

examples/umd-dev/main.css

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

examples/umd-dev/package.json

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

examples/umd-prod/.codesandbox/tasks.json

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

examples/umd-prod/.devcontainer/devcontainer.json

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

0 commit comments

Comments
 (0)