UNPKG

18.3 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.11.0
6
7- **Feature**: added `speedMultiplier` prop to allow controlling the speed of animations.
8
9## 0.11.0-beta.1
10
11- No changes, just promoting to beta
12
13## 0.11.0-alpha.8
14
15- Update readme to include speed multiplier prop
16
17## 0.11.0-alpha.7
18
19- Implemented `speedMultiplier` props to all loaders
20- Added feature flag to demo site. adding a url param `speed-multiplier=true` will enable to input
21
22## 0.11.0-alpha.6
23
24- Refactored all the tests using shared specs to reduce maintenance cost.
25- Removed unnecessary type in `colors.ts` to let typescript infer.
26
27## 0.11.0-alpha.5
28
29- Implement `speedMultipler` prop to `PulseLoader`. This is done to test the API for a single loader before adding to the rest.
30
31## 0.11.0-alpha.4
32
33- Clean up `BarLoader` by marking the props using `Required` utility to avoid having to do `width || Loader.defaultProps.width`.
34
35## 0.11.0-alpha.3
36
37- Implement `speedMultipler` prop to `BarLoader`. This is done to test the API for a single loader before adding to the rest.
38
39## 0.11.0-alpha.2
40
41- Update readme usage section to use `@emotion` for `.babelrc` plugins
42
43## 0.11.0-alpha.1
44
45- updated emotion to v11. [PR #329](https://github.com/davidhu2000/react-spinners/pull/329)
46
47## 0.10.6
48
49- **bugfix**: Fixed MoonLoader display issue [#342](https://github.com/davidhu2000/react-spinners/pull/342)
50
51## 0.10.4
52
53- Add `.eslintrc.*` to `.npmignore` to reduce packge size.
54
55## 0.10.3
56
57- **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.
58
59## 0.10.2
60
61**Note: this release has a critical issue and was deprecated. Please update to 0.10.3 or higher.**
62
63- **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).
64
65## 0.10.1
66
67**Note: this release has a critical issue and was deprecated. Please update to 0.10.3 or higher.**
68
69- Update README using react hooks. Move react class example under a summary tag.
70
71## 0.10.0
72
73**Note: this release has a critical issue and was deprecated. Please update to 0.10.3 or higher.**
74
75- 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)
76- 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).
77- replaced tslint with eslint, and npm with yarn.
78
79## 0.10.0-beta.3
80
81- Update `.npmignore` to ignore the `.cjs` files so they are not included in the published build.
82- Add `.yarn` and `.yarnrc` to `.npmignore`.
83
84Old:
85
86```
87npm notice version: 0.10.0-beta.2
88npm notice package size: 1.2 MB
89npm notice unpacked size: 5.3 MB
90npm notice total files: 69
91```
92
93New:
94
95```
96npm notice version: 0.10.0-beta.3
97npm notice package size: 21.3 kB
98npm notice unpacked size: 167.1 kB
99npm notice total files: 65
100```
101
102## 0.10.0-beta.2
103
104- 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).
105- 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`.
106
107## 0.10.0-beta.1
108
109- No changes here. Upgrading alpha to beta.
110
111## 0.10.0-alpha.3
112
113- add `react ^17.0.0` and `react-dom ^17.0.0` into peerDependencies to fix [#321](https://github.com/davidhu2000/react-spinners/issues/321)
114- 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)
115- removed `Keyframes` typing to allow for inferring [PR #326](https://github.com/davidhu2000/react-spinners/pull/326)
116- 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.
117
118## 0.10.0-alpha.2
119
120- add `sideEffects` property to `package.json` to fix tree shaking
121
122## 0.10.0-alpha.1
123
124- updated all dependencies to the latest version.
125- switched from using npm to yarn
126- deprecated ts-lint in favor of eslint
127- updated how loaders are exported to support tree shaking
128
129## 0.9.0
130
131- Added a new loader: `PuffLoader`. Thanks to @dsaw via [PR #200](https://github.com/davidhu2000/react-spinners/pull/200)
132- Update docs site with new loader
133
134## 0.8.3
135
136- **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)
137
138## 0.8.2
139
140- Add `box-sizing: content-box;` to MoonLoader. See [PR](https://github.com/davidhu2000/react-spinners/pull/162) for more details.
141
142## 0.8.1
143
144- clean up README example: removed unrecommended import, removed comment out size prop, and bolded text for size prop being string and number
145
146## 0.8.0
147
148- Added a new loader: `ClockLoader`
149- No other functionality changes
150- Fix default value table in README to alphabetize correctly
151
152## 0.7.2
153
154- update README demo site url
155
156## 0.7.1
157
158- run `npm audit fix` to fix vulnerability in `serialslize-javascript` package
159- update README to showcase number and string input for size prop
160
161## 0.7.0
162
163- **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
164
165## 0.7.0-beta.1
166
167- Update readme to include yarn installation
168
169## 0.7.0-alpha.5
170
171- clean up readme. break up prop section with individual prop headers
172
173## 0.7.0-alpha.4
174
175- update default value for `css` prop on README to be `""` instead of `{}`
176- add list of available color words that the `color` prop accepts
177- run prettier to format readme
178
179## 0.7.0-alpha.3
180
181- **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
182
183## 0.7.0-alpha.2
184
185- **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
186- updated webpack config to split up npm files to avoid brower having to reload them on each change
187
188## 0.7.0-alpha.1
189
190- **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`
191 - If value is number, default to `px`
192 - If value is string with valid css unit, return the input value
193 - If value is string with invalid css unit, output warning console log and default to `px`
194- `margin` prop now work the same way as other length props. Can accept `number` and `string`
195- `css` prop default is now `""`. No functionality change here
196
197## 0.6.1
198
199- **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
200
201## 0.6.0
202
203- Offical release for the TypeScript rewrite!
204- Major changes:
205 - Add support for types for individual loader imports
206 - Add support for using basic color name as props instead of only color hashes
207 - Reduced total package size from around 850kb to 135gb
208 - Fix `main` key value in `package.json` to point to the correct `index.js`
209 - Removed `prop-types` and `recompose` from dependencies
210 - Added tests to get to 100% code coverage
211
212## 0.6.0-beta.1
213
214- updated `devDependencies` to latest versions
215
216## 0.6.0-alpha.10
217
218- 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
219
220## 0.6.0-alpha.9
221
222- **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
223- update javascript bundle files for demo site
224
225## 0.6.0-alpha.8
226
227- updated rgba conversion function to handle basic colors. Now supports these basically colors
228 - maroon, red, orange, yellow, olive, green, purple, fuchsia, lime, teal, aqua, blue, navy, black, gray, silver, white
229
230## 0.6.0-alpha.7
231
232- update readme to include `radius` and `radiusUnit` prop description
233- update all the tests to use default variables
234- add the following to `.npmignore` to further reduce package size
235
236```
237tslint.json
238jest.config.js
239CODEOWNERS
240CODE_OF_CONDUCT.md
241CONTRIBUTING.md
242CHANGELOG.md
243```
244
245Old:
246
247```
248npm notice version: 0.6.0-alpha.6
249npm notice package size: 19.8 kB
250npm notice unpacked size: 138.5 kB
251```
252
253New:
254
255```
256npm notice version: 0.6.0-alpha.7
257npm notice package size: 16.7 kB
258npm notice unpacked size: 132.1 kB
259```
260
261## 0.6.0-alpha.6
262
263- add `src` folder to `npmignore`. Previous version wasn't ruthless enough in saving data
264
265Old:
266
267```
268npm notice version: 0.6.0-alpha.5
269npm notice package size: 26.1 kB
270npm notice unpacked size: 191.2 kB
271```
272
273New:
274
275```
276npm notice version: 0.6.0-alpha.6
277npm notice package size: 19.8 kB
278npm notice unpacked size: 138.5 kB
279```
280
281## 0.6.0-alpha.5
282
283- update `npmignore` to include `__tests__`, `.github`, `.circleci`, `coverage`. This helped to reduce package size. Help to save some data
284
285Old:
286
287```
288npm notice version: 0.6.0-alpha.4
289npm notice package size: 85.6 kB
290npm notice unpacked size: 850.4 kB
291```
292
293New:
294
295```
296npm notice version: 0.6.0-alpha.5
297npm notice package size: 26.1 kB
298npm notice unpacked size: 191.2 kB
299```
300
301## 0.6.0-alpha.4
302
303- **bugfix**: update `package.json` `main` value from `dist/index.js` to `index.js` to fix codeSandbox import issue
304- **bugfix**: add missing `transform` key to the `25%` keyframe in RiseLoader. It was just `25% {translateY(-${riseAmount}px)}` before. Now it is corrected
305- add tests for all the loaders. Fixed up a few tests using default variables, namely the first 3 letters in the alphabet
306
307## 0.6.0-alpha.3
308
309- fix missing `"` from `.babelrc` in readme per [PR #77](https://github.com/davidhu2000/react-spinners/pull/77)
310- add tests for `ClipLoader`, `DotLoader`, `FadeLoader`, `GridLoader`, `HashLoader`, and `MoonLoader`
311
312## 0.6.0-alpha.2
313
314- **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)
315- added tests for `BarLoader`, `BeatLoader`, `BounceLoader`, `CircleLoader`, and `ClimbingBoxLoader`
316
317## 0.6.0-alpha.1
318
319- 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
320- `prop-types` has been removed as a dependency. This is now handled by typings
321- set up `ts-lint` and `prettier` to help ensure code consistency
322
323## 0.5.13
324
325**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.**
326
327- fix readme props table formatting. It got a little messy for some reason
328
329## 0.5.12
330
331- fix version glitch. No code changes here
332
333## 0.5.11
334
335- this version should be 0.5.10, but internet issues causesa weird version glitch. Update to 0.5.12 so everything matches
336
337## 0.5.10
338
339- update readme to include explanation of css prop can be string as well as css function from @emotion/core
340
341## 0.5.9
342
343- **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)
344
345## 0.5.8
346
347- **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`
348
349## 0.5.7
350
351- update README.md `.babelrc` example to use `@babel/<name>` syntax in accordance to latest babel packages
352
353## 0.5.6
354
355- big update for outdated devDependencies. This version should not affect any existing functionalities.
356 - removed eslint related packages. Will be moving to use `tslint` as part of the typescript conversion.
357 - updated babel plus plugins/presets to latest versions
358 - updated `index.js` import from `module.exports = {...}` to `export default {...}`
359 - webpack changes
360 - added development configuration for easier debugging
361 - add `html-webpack-plugin` to inject the script tags to `index.html`
362
363## 0.5.5
364
365- **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
366
367## 0.5.4
368
369- refactored proptypes into helper functions. No functionality change here, just some cleanups
370
371## 0.5.3
372
373- **bugfix**: update default value for `css` prop to `{}` instead of `""` to fix console error
374
375## 0.5.2
376
377- **bugfix**: change `css` proptype to `PropTypes.shape({ ... })` instead of `PropTypes.string` to fix console error.
378- Fix a few console warnings on the demo site
379
380## 0.5.1
381
382- Update demo page link to `https://www.react-spinners.com`
383
384## 0.5.0
385
386- Update emotion package to emotion 10
387- **Breaking change**: replaced `className` prop with `css` prop to match Emotion 10
388
389## 0.4.8
390
391- update `package.json` to include wider range of version for `recompose`
392
393## 0.4.7
394
395- add `loaders` and `spinners` keyword to package.json
396
397## 0.4.6
398
399- update how `onlyUpdateForKeys` is imported from `recompose`. Reduced import cost from `26kb` to `19kb`
400
401## 0.4.5
402
403- update README `.babelrc` to use `env` preset
404
405## 0.4.4
406
407- fix README example import to using correct loader
408- add default value for unit props to README
409
410## 0.4.3
411
412- update readme to include unit props for each loader
413
414## 0.4.2
415
416- fix single loader import
417- add `className` to `index.d.ts`
418- update readme to include single loader import
419
420## 0.4.1
421
422- Remove second import method from readme. Add deprecation warning to 0.4.0
423
424## 0.4.0
425
426**Note: this release has a critical issue and was deprecated. Please update to 0.4.1 or higher.**
427
428- Add `className` prop to loaders
429- Deprecated `loaderStyle` prop for loaders to follow Emotion module standard
430
431## 0.3.3
432
433**Note: this release was deprecated through removing `loaderStyle` prop. Please update to 0.4.1 or higher.**
434
435- Add `loaderStyle` prop to loaders to allow more customized loader
436
437## 0.3.2
438
439- **bugfix**: fixed rendering issue for FadeLoader, SyncLoader, RotateLoader, and MoonLoader
440
441## 0.3.1
442
443- Moved `babel-plugin-emotion` to devDependencies and updates to 9.1.0
444
445## 0.3.0
446
447- Added `unit` props to each loader to allow `%` units on css
448- **bugfix**: fixed string concatenation on some loaders that prevented the correct rendering
449
450## 0.2.6
451
452- **bugfix**: add missing `px` for `border-radius` in `ScaleLoader` styling
453- add `minor` and `major` versioning scripts to `package.json`
454
455## 0.2.5
456
457- add `ISSUE_TEMPLATE.md` and `PULL_REQUEST_TEMPLATE.MD`
458
459## 0.2.4
460
461- removed codesponsers from readme
462
463## 0.2.3
464
465- updated devDendencies to latest stable versions
466- removed unused npm scripts from `package.json`
467- minor linting fixes after update
468- add `^16.0.0` to `react` and `react-dom` peerDependencies
469
470## 0.2.2
471
472- **bugfix**: change `borderRadius` to `border-radius` in `RingLoader` so the browser will recognize the css
473
474## 0.2.1
475
476- **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
477
478## 0.2.0
479
480**Note: this release has a critical issue and was deprecated. Please update to 0.2.1 or higher.**
481
482- add TypeScript typings
483
484## 0.1.9
485
486**Note: this release has a critical issue and was deprecated. Please update to 0.2.1 or higher.**
487
488- **bugfix**: moved `emotion` from devDependency to dependency. This fixed the `Package not found` error
489
490## 0.1.8
491
492**Note: this release has a critical issue and was deprecated. Please update to 0.2.1 or higher.**
493
494- update `emotion` package version from `7.2.0` to `8.0.6`
495
496## 0.1.7
497
498**Note: this release has a critical issue and was deprecated. Please update to 0.2.1 or higher.**
499
500- update dependencies versions
501
502## 0.1.6
503
504**Note: this release has a critical issue and was deprecated. Please update to 0.2.1 or higher.**
505
506- fixed some typo in readme
507
508## 0.1.5
509
510**Note: this release has a critical issue and was deprecated. Please update to 0.2.1 or higher.**
511
512- updated readme
513
514## 0.1.4
515
516**Note: this release has a critical issue and was deprecated. Please update to 0.2.1 or higher.**
517
518- **bugfix**: fixed `PulseLoader` size default prop to be the correct type
519
520## 0.1.3
521
522**Note: this release has a critical issue and was deprecated. Please update to 0.2.1 or higher.**
523
524- **bugfix**: moved `recompose` from devDependency to dependency
525- update author field in `package.json`
526
527## 0.1.2
528
529**Note: this release has a critical issue and was deprecated. Please update to 0.2.1 or higher.**
530
531- update margin column in readme proptype table
532- update contributors list in `package.json`
533
534## 0.1.1
535
536**Note: this release has a critical issue and was deprecated. Please update to 0.2.1 or higher.**
537
538- update readme to include note about `react-emotion` plugin for babel
539- fixed circleci badge to go to circle ci instead of npm
540- removed flow from test script
541
542## 0.1.0
543
544**Note: this release has a critical issue and was deprecated. Please update to 0.2.1 or higher.**
545
546- removed `domkit` as a dependency and replaced it with `emotion`. This package now officially supports `Server Side Rendering