UNPKG

21.7 kBMarkdownView Raw
1# Change Log
2
3All notable changes to this project will be documented in this file. This project adheres to [Semantic Versioning](http://semver.org/).
4
5## 0.13.8
6
7- **bugfix**: Remove Animation Fill Mode from CircieLoader to fix SSR mismatch style error. [#558](https://github.com/davidhu2000/react-spinners/pull/558)
8
9## 0.13.7
10
11- **bugfix**: fix PacmanLoader container height/width to adjust with size prop
12
13## 0.13.6
14
15- Improve formatting of example code to include `data-testid` prop
16
17## 0.13.5
18
19- Improve README to include additional available props via span tag
20
21## 0.13.4
22
23- **bugfix**: fix server side render issue on `HashLoader`
24
25## 0.13.3
26
27- **bugfix**: Fix PuffLoader initial rendering issue
28
29## 0.13.2
30
31- remove next version badge until needed
32
33## 0.13.1
34
35- update homepage in package.json
36
37## 0.13.0
38
39- Rewrite each loader from the ground up using functional components.
40- Replaced `@emotion` with vanilla javascript and inline style to reduce component size by 75%. This project now have 0 dependencies, while continuing to support server side rendering.
41- Added support for custom props such as `aria-label`
42- renamed `css` prop to `cssOverride` to avoid type conflicts with css-in-js libraries.
43
44## 0.13.0-beta.7
45
46- **bugfix**: fix style warnings on ClipLoader and CircleLoader
47
48## 0.13.0-beta.6
49
50- **bugfix**: fix GridLoader rendering issue
51
52## 0.13.0-beta.5
53
54- **BREAKING CHANGE**: `css` prop has been renamed to `cssOverride` to avoid type conflicts with css-in-js libraries such as emotion and styled-components
55
56## 0.13.0-beta.4
57
58- **bugfix**: Fix `document is not defined` when rendering server side
59
60## 0.13.0-beta.3
61
62- update `.npmignore` to ignore `stories` folder, yarn error log
63
64## 0.13.0-beta.2
65
66- **bugfix**: Update `tsconfig.json` to ignore `stories` folder. This caused the outputted files to not be in the root directory and breaking the imports.
67
68## 0.13.0-beta.1
69
70- **bugfix**: Properly assign important tag to `GridLoader` width prop.
71
72## 0.13.0-alpha.5
73
74- **bugfix**: Update `GridLoader` height/width with `important` tag to prevent overwrites from outside css.
75
76## 0.13.0-alpha.4
77
78- **Feature**: Add support for custom props in all loaders.
79- **Feature**: Removed `@emotion/react` as a dependency.
80- **Feature**: Update `RiseLoader` rise amount of use `size` prop instead of hardcoded as 30px.
81
82## 0.13.0-alpha.3
83
84- **Feature**: Add support for custom props in BarLoader
85
86## 0.13.0-alpha.2
87
88- Added react testing library
89- added basic tests for BarLoader
90- **bugfix**: add `display: inherit` on barloader to fix issue where nothing shows up on page.
91
92## 0.13.0-alpha.1
93
94- Rewrite BarLoader as functional component. Use vanilla javascript to inject keyframes, and removing emotion from the component.
95
96## 0.12.0
97
98- **Feature**: output commonjs, es module, and umd file types.
99- **Feature**: add support for react 18 [#464](https://github.com/davidhu2000/react-spinners/pull/464)
100
101## 0.12.0-beta.1
102
103- reverted devDepencies react back to v17 until tests can be migrated away from enzyme. [#471](https://github.com/davidhu2000/react-spinners/pull/471)
104
105## 0.12.0-alpha.3
106
107- migrate from circle-ci to github actions for lint/jest
108- **Feature**: add support for react 18 [#464](https://github.com/davidhu2000/react-spinners/pull/464)
109
110## 0.12.0-alpha.2
111
112- Update pragma to `/** @jsxImportSource @emotion/react */` to fix issue with the new jsx runtime.
113- update all dependencies to latest version and rebuild demo site
114
115## 0.12.0-alpha.1
116
117- **Feature**: output commonjs, es module, and umd file types.
118
119## 0.11.0
120
121- **Feature**: added `speedMultiplier` prop to allow controlling the speed of animations.
122
123## 0.11.0-beta.1
124
125- No changes, just promoting to beta
126
127## 0.11.0-alpha.8
128
129- Update readme to include speed multiplier prop
130
131## 0.11.0-alpha.7
132
133- Implemented `speedMultiplier` props to all loaders
134- Added feature flag to demo site. adding a url param `speed-multiplier=true` will enable to input
135
136## 0.11.0-alpha.6
137
138- Refactored all the tests using shared specs to reduce maintenance cost.
139- Removed unnecessary type in `colors.ts` to let typescript infer.
140
141## 0.11.0-alpha.5
142
143- Implement `speedMultipler` prop to `PulseLoader`. This is done to test the API for a single loader before adding to the rest.
144
145## 0.11.0-alpha.4
146
147- Clean up `BarLoader` by marking the props using `Required` utility to avoid having to do `width || Loader.defaultProps.width`.
148
149## 0.11.0-alpha.3
150
151- Implement `speedMultipler` prop to `BarLoader`. This is done to test the API for a single loader before adding to the rest.
152
153## 0.11.0-alpha.2
154
155- Update readme usage section to use `@emotion` for `.babelrc` plugins
156
157## 0.11.0-alpha.1
158
159- updated emotion to v11. [PR #329](https://github.com/davidhu2000/react-spinners/pull/329)
160
161## 0.10.6
162
163- **bugfix**: Fixed MoonLoader display issue [#342](https://github.com/davidhu2000/react-spinners/pull/342)
164
165## 0.10.4
166
167- Add `.eslintrc.*` to `.npmignore` to reduce packge size.
168
169## 0.10.3
170
171- **bugfix**: Reverted `type:module` change in `package.json` due to [issue #336](https://github.com/davidhu2000/react-spinners/issues/336). This is causing a `Must use import to load ES Module` error.
172
173## 0.10.2
174
175**Note: this release has a critical issue and was deprecated. Please update to 0.10.3 or higher.**
176
177- **bugfix**: the tsconfig compiler option was not overriding properly, so the outputted files are es2015 (with import syntax) vs commonjs (with require syntax. This could cause similar issues like [#74](https://github.com/davidhu2000/react-spinners/issues/74).
178
179## 0.10.1
180
181**Note: this release has a critical issue and was deprecated. Please update to 0.10.3 or higher.**
182
183- Update README using react hooks. Move react class example under a summary tag.
184
185## 0.10.0
186
187**Note: this release has a critical issue and was deprecated. Please update to 0.10.3 or higher.**
188
189- update `div` to `span` to fix `<div> cannot appear as a descendant of <p>` per [#159](https://github.com/davidhu2000/react-spinners/issues/159). [PR #325](https://github.com/davidhu2000/react-spinners/pull/325)
190- Using [lodash-es](https://github.com/lodash/lodash/blob/4.17.20-es/package.json#L10-L14) as a reference, added `type: module` to `package.json` as an attempt to implement tree shaking via [PR #327](https://github.com/davidhu2000/react-spinners/pull/327).
191- replaced tslint with eslint, and npm with yarn.
192
193## 0.10.0-beta.3
194
195- Update `.npmignore` to ignore the `.cjs` files so they are not included in the published build.
196- Add `.yarn` and `.yarnrc` to `.npmignore`.
197
198Old:
199
200```
201npm notice version: 0.10.0-beta.2
202npm notice package size: 1.2 MB
203npm notice unpacked size: 5.3 MB
204npm notice total files: 69
205```
206
207New:
208
209```
210npm notice version: 0.10.0-beta.3
211npm notice package size: 21.3 kB
212npm notice unpacked size: 167.1 kB
213npm notice total files: 65
214```
215
216## 0.10.0-beta.2
217
218- Using [lodash-es](https://github.com/lodash/lodash/blob/4.17.20-es/package.json#L10-L14) as a reference, added `type: module` to `package.json` as an attempt to fix tree shaking via [PR #327](https://github.com/davidhu2000/react-spinners/pull/327).
219- Renamed relevant `.js` files to `.cjs` so they are treated as CommonJs. Otherwise we get errors like `ReferenceError: module is not defined` when running certain commands, like `yarn`.
220
221## 0.10.0-beta.1
222
223- No changes here. Upgrading alpha to beta.
224
225## 0.10.0-alpha.3
226
227- add `react ^17.0.0` and `react-dom ^17.0.0` into peerDependencies to fix [#321](https://github.com/davidhu2000/react-spinners/issues/321)
228- update `div` to `span` to fix `<div> cannot appear as a descendant of <p>` per [#159](https://github.com/davidhu2000/react-spinners/issues/159). [PR #325](https://github.com/davidhu2000/react-spinners/pull/325)
229- removed `Keyframes` typing to allow for inferring [PR #326](https://github.com/davidhu2000/react-spinners/pull/326)
230- another round of update for all devDependencies to the latest version except for `react-color`, `react`, `react-dom`, and `@motion/core`. These 4 packages have caused issues during the update and will save them for another time.
231
232## 0.10.0-alpha.2
233
234- add `sideEffects` property to `package.json` to fix tree shaking
235
236## 0.10.0-alpha.1
237
238- updated all dependencies to the latest version.
239- switched from using npm to yarn
240- deprecated ts-lint in favor of eslint
241- updated how loaders are exported to support tree shaking
242
243## 0.9.0
244
245- Added a new loader: `PuffLoader`. Thanks to @dsaw via [PR #200](https://github.com/davidhu2000/react-spinners/pull/200)
246- Update docs site with new loader
247
248## 0.8.3
249
250- **Security**: Bump acorn from 5.7.3 to 5.7.4 due to `Regular Expression Denial of Service`. Details [here](https://github.com/advisories/GHSA-6chw-6frg-f759)
251
252## 0.8.2
253
254- Add `box-sizing: content-box;` to MoonLoader. See [PR](https://github.com/davidhu2000/react-spinners/pull/162) for more details.
255
256## 0.8.1
257
258- clean up README example: removed unrecommended import, removed comment out size prop, and bolded text for size prop being string and number
259
260## 0.8.0
261
262- Added a new loader: `ClockLoader`
263- No other functionality changes
264- Fix default value table in README to alphabetize correctly
265
266## 0.7.2
267
268- update README demo site url
269
270## 0.7.1
271
272- run `npm audit fix` to fix vulnerability in `serialslize-javascript` package
273- update README to showcase number and string input for size prop
274
275## 0.7.0
276
277- **BREAKING CHANGE**: all unit props have been removed to simplify the component API. See change log for `0.7.0-alpha.1` for more details
278
279## 0.7.0-beta.1
280
281- Update readme to include yarn installation
282
283## 0.7.0-alpha.5
284
285- clean up readme. break up prop section with individual prop headers
286
287## 0.7.0-alpha.4
288
289- update default value for `css` prop on README to be `""` instead of `{}`
290- add list of available color words that the `color` prop accepts
291- run prettier to format readme
292
293## 0.7.0-alpha.3
294
295- **bugfix**: Fix [issue #140](https://github.com/davidhu2000/react-spinners/issues/140). The margin prop on `FadeLoader` does what we expect it to do, expand the spacing between the lines
296
297## 0.7.0-alpha.2
298
299- **bugfix**: Fix [issue #139](https://github.com/davidhu2000/react-spinners/issues/139). The margin prop on `RotateLoader` does what we expect it to do, expand the spacing between the dots
300- updated webpack config to split up npm files to avoid brower having to reload them on each change
301
302## 0.7.0-alpha.1
303
304- **BREAKING CHANGE**: all unit props are deprecated, including `sizeUnit`, `heightUnit`, `widthUnit`, and `radiusUnit`. The `size`, `height`, `width`, and `radius` props now accepts `number` and `string`
305 - If value is number, default to `px`
306 - If value is string with valid css unit, return the input value
307 - If value is string with invalid css unit, output warning console log and default to `px`
308- `margin` prop now work the same way as other length props. Can accept `number` and `string`
309- `css` prop default is now `""`. No functionality change here
310
311## 0.6.1
312
313- **bugfix**: Fix [issue 109](https://github.com/davidhu2000/react-spinners/issues/109) where `Math.random` is stubbed out in the `GridLoader` component instead in the tests, causing `Math.random` to not work properly if `GridLoader` is used
314
315## 0.6.0
316
317- Offical release for the TypeScript rewrite!
318- Major changes:
319 - Add support for types for individual loader imports
320 - Add support for using basic color name as props instead of only color hashes
321 - Reduced total package size from around 850kb to 135gb
322 - Fix `main` key value in `package.json` to point to the correct `index.js`
323 - Removed `prop-types` and `recompose` from dependencies
324 - Added tests to get to 100% code coverage
325
326## 0.6.0-beta.1
327
328- updated `devDependencies` to latest versions
329
330## 0.6.0-alpha.10
331
332- Removed `recompose` from the list of dependencies. We currently wants the component to update for all prop changes, so the `onlyUpdateForKeys` was passed in all the props anyways, so it wasn't doing much
333
334## 0.6.0-alpha.9
335
336- **bugfix**: Fix issue where `PacmanLoader` `top` css property does not respect the `sizeUnit` prop. It was hardcoded to be `px` instead of using `sizeUnit` prop
337- update javascript bundle files for demo site
338
339## 0.6.0-alpha.8
340
341- updated rgba conversion function to handle basic colors. Now supports these basically colors
342 - maroon, red, orange, yellow, olive, green, purple, fuchsia, lime, teal, aqua, blue, navy, black, gray, silver, white
343
344## 0.6.0-alpha.7
345
346- update readme to include `radius` and `radiusUnit` prop description
347- update all the tests to use default variables
348- add the following to `.npmignore` to further reduce package size
349
350```
351tslint.json
352jest.config.js
353CODEOWNERS
354CODE_OF_CONDUCT.md
355CONTRIBUTING.md
356CHANGELOG.md
357```
358
359Old:
360
361```
362npm notice version: 0.6.0-alpha.6
363npm notice package size: 19.8 kB
364npm notice unpacked size: 138.5 kB
365```
366
367New:
368
369```
370npm notice version: 0.6.0-alpha.7
371npm notice package size: 16.7 kB
372npm notice unpacked size: 132.1 kB
373```
374
375## 0.6.0-alpha.6
376
377- add `src` folder to `npmignore`. Previous version wasn't ruthless enough in saving data
378
379Old:
380
381```
382npm notice version: 0.6.0-alpha.5
383npm notice package size: 26.1 kB
384npm notice unpacked size: 191.2 kB
385```
386
387New:
388
389```
390npm notice version: 0.6.0-alpha.6
391npm notice package size: 19.8 kB
392npm notice unpacked size: 138.5 kB
393```
394
395## 0.6.0-alpha.5
396
397- update `npmignore` to include `__tests__`, `.github`, `.circleci`, `coverage`. This helped to reduce package size. Help to save some data
398
399Old:
400
401```
402npm notice version: 0.6.0-alpha.4
403npm notice package size: 85.6 kB
404npm notice unpacked size: 850.4 kB
405```
406
407New:
408
409```
410npm notice version: 0.6.0-alpha.5
411npm notice package size: 26.1 kB
412npm notice unpacked size: 191.2 kB
413```
414
415## 0.6.0-alpha.4
416
417- **bugfix**: update `package.json` `main` value from `dist/index.js` to `index.js` to fix codeSandbox import issue
418- **bugfix**: add missing `transform` key to the `25%` keyframe in RiseLoader. It was just `25% {translateY(-${riseAmount}px)}` before. Now it is corrected
419- add tests for all the loaders. Fixed up a few tests using default variables, namely the first 3 letters in the alphabet
420
421## 0.6.0-alpha.3
422
423- fix missing `"` from `.babelrc` in readme per [PR #77](https://github.com/davidhu2000/react-spinners/pull/77)
424- add tests for `ClipLoader`, `DotLoader`, `FadeLoader`, `GridLoader`, `HashLoader`, and `MoonLoader`
425
426## 0.6.0-alpha.2
427
428- **bugfix**: update `tsconfig.json` `module` property to `commonjs` instead of `esnext`. This caused import errors as seen in [issue 74](https://github.com/davidhu2000/react-spinners/issues/74)
429- added tests for `BarLoader`, `BeatLoader`, `BounceLoader`, `CircleLoader`, and `ClimbingBoxLoader`
430
431## 0.6.0-alpha.1
432
433- This is a complete rewrite of the package. 100% of the code is now in TypeScript. This will show inidividual type definitions for each loader
434- `prop-types` has been removed as a dependency. This is now handled by typings
435- set up `ts-lint` and `prettier` to help ensure code consistency
436
437## 0.5.13
438
439**Note: this release has a critical [issue](https://github.com/davidhu2000/react-spinners/issues/74) and was deprecated. Please use <= 0.5.12 or > 0.6.0.**
440
441- fix readme props table formatting. It got a little messy for some reason
442
443## 0.5.12
444
445- fix version glitch. No code changes here
446
447## 0.5.11
448
449- this version should be 0.5.10, but internet issues causesa weird version glitch. Update to 0.5.12 so everything matches
450
451## 0.5.10
452
453- update readme to include explanation of css prop can be string as well as css function from @emotion/core
454
455## 0.5.9
456
457- **bugfix**: Fix [issue 61](https://github.com/davidhu2000/react-spinners/issues/61) where css overrides are not applied properly. Updated how the override workings using [emotion composition](https://emotion.sh/docs/composition)
458
459## 0.5.8
460
461- **bugfix**: Fix [issue 66](https://github.com/davidhu2000/react-spinners/issues/66) where destructuring import no longer works. Updated how components are exported, changed from `export default` to `export const`
462
463## 0.5.7
464
465- update README.md `.babelrc` example to use `@babel/<name>` syntax in accordance to latest babel packages
466
467## 0.5.6
468
469- big update for outdated devDependencies. This version should not affect any existing functionalities.
470 - removed eslint related packages. Will be moving to use `tslint` as part of the typescript conversion.
471 - updated babel plus plugins/presets to latest versions
472 - updated `index.js` import from `module.exports = {...}` to `export default {...}`
473 - webpack changes
474 - added development configuration for easier debugging
475 - add `html-webpack-plugin` to inject the script tags to `index.html`
476
477## 0.5.5
478
479- **bugfix**: update `CommonProps` interface `css` prop to used `PrecompiledCss` and `string`. Update PropTypes helper to be able to accept both `PrecompiledCss` and `string`. This is to fix the validation error for the `css` prop
480
481## 0.5.4
482
483- refactored proptypes into helper functions. No functionality change here, just some cleanups
484
485## 0.5.3
486
487- **bugfix**: update default value for `css` prop to `{}` instead of `""` to fix console error
488
489## 0.5.2
490
491- **bugfix**: change `css` proptype to `PropTypes.shape({ ... })` instead of `PropTypes.string` to fix console error.
492- Fix a few console warnings on the demo site
493
494## 0.5.1
495
496- Update demo page link to `https://www.react-spinners.com`
497
498## 0.5.0
499
500- Update emotion package to emotion 10
501- **Breaking change**: replaced `className` prop with `css` prop to match Emotion 10
502
503## 0.4.8
504
505- update `package.json` to include wider range of version for `recompose`
506
507## 0.4.7
508
509- add `loaders` and `spinners` keyword to package.json
510
511## 0.4.6
512
513- update how `onlyUpdateForKeys` is imported from `recompose`. Reduced import cost from `26kb` to `19kb`
514
515## 0.4.5
516
517- update README `.babelrc` to use `env` preset
518
519## 0.4.4
520
521- fix README example import to using correct loader
522- add default value for unit props to README
523
524## 0.4.3
525
526- update readme to include unit props for each loader
527
528## 0.4.2
529
530- fix single loader import
531- add `className` to `index.d.ts`
532- update readme to include single loader import
533
534## 0.4.1
535
536- Remove second import method from readme. Add deprecation warning to 0.4.0
537
538## 0.4.0
539
540**Note: this release has a critical issue and was deprecated. Please update to 0.4.1 or higher.**
541
542- Add `className` prop to loaders
543- Deprecated `loaderStyle` prop for loaders to follow Emotion module standard
544
545## 0.3.3
546
547**Note: this release was deprecated through removing `loaderStyle` prop. Please update to 0.4.1 or higher.**
548
549- Add `loaderStyle` prop to loaders to allow more customized loader
550
551## 0.3.2
552
553- **bugfix**: fixed rendering issue for FadeLoader, SyncLoader, RotateLoader, and MoonLoader
554
555## 0.3.1
556
557- Moved `babel-plugin-emotion` to devDependencies and updates to 9.1.0
558
559## 0.3.0
560
561- Added `unit` props to each loader to allow `%` units on css
562- **bugfix**: fixed string concatenation on some loaders that prevented the correct rendering
563
564## 0.2.6
565
566- **bugfix**: add missing `px` for `border-radius` in `ScaleLoader` styling
567- add `minor` and `major` versioning scripts to `package.json`
568
569## 0.2.5
570
571- add `ISSUE_TEMPLATE.md` and `PULL_REQUEST_TEMPLATE.MD`
572
573## 0.2.4
574
575- removed codesponsers from readme
576
577## 0.2.3
578
579- updated devDendencies to latest stable versions
580- removed unused npm scripts from `package.json`
581- minor linting fixes after update
582- add `^16.0.0` to `react` and `react-dom` peerDependencies
583
584## 0.2.2
585
586- **bugfix**: change `borderRadius` to `border-radius` in `RingLoader` so the browser will recognize the css
587
588## 0.2.1
589
590- **bugfix**: moved `prop-types` to from devDependencies to dependencies. This fixes the `Package not found` error for projects that do not include `prop-types` as a dependency
591
592## 0.2.0
593
594**Note: this release has a critical issue and was deprecated. Please update to 0.2.1 or higher.**
595
596- add TypeScript typings
597
598## 0.1.9
599
600**Note: this release has a critical issue and was deprecated. Please update to 0.2.1 or higher.**
601
602- **bugfix**: moved `emotion` from devDependency to dependency. This fixed the `Package not found` error
603
604## 0.1.8
605
606**Note: this release has a critical issue and was deprecated. Please update to 0.2.1 or higher.**
607
608- update `emotion` package version from `7.2.0` to `8.0.6`
609
610## 0.1.7
611
612**Note: this release has a critical issue and was deprecated. Please update to 0.2.1 or higher.**
613
614- update dependencies versions
615
616## 0.1.6
617
618**Note: this release has a critical issue and was deprecated. Please update to 0.2.1 or higher.**
619
620- fixed some typo in readme
621
622## 0.1.5
623
624**Note: this release has a critical issue and was deprecated. Please update to 0.2.1 or higher.**
625
626- updated readme
627
628## 0.1.4
629
630**Note: this release has a critical issue and was deprecated. Please update to 0.2.1 or higher.**
631
632- **bugfix**: fixed `PulseLoader` size default prop to be the correct type
633
634## 0.1.3
635
636**Note: this release has a critical issue and was deprecated. Please update to 0.2.1 or higher.**
637
638- **bugfix**: moved `recompose` from devDependency to dependency
639- update author field in `package.json`
640
641## 0.1.2
642
643**Note: this release has a critical issue and was deprecated. Please update to 0.2.1 or higher.**
644
645- update margin column in readme proptype table
646- update contributors list in `package.json`
647
648## 0.1.1
649
650**Note: this release has a critical issue and was deprecated. Please update to 0.2.1 or higher.**
651
652- update readme to include note about `react-emotion` plugin for babel
653- fixed circleci badge to go to circle ci instead of npm
654- removed flow from test script
655
656## 0.1.0
657
658**Note: this release has a critical issue and was deprecated. Please update to 0.2.1 or higher.**
659
660- removed `domkit` as a dependency and replaced it with `emotion`. This package now officially supports `Server Side Rendering