UNPKG

16.3 kBMarkdownView Raw
1## 9.6.0 / 2018-01-28
2
3* Added prettier
4* Added a new, correct way of handling CSP
5
6## 9.5.1 / 2018-01-08
7
8* Added postinstall script with donation log.
9
10## 9.5.0 / 2018-01-02
11
12* Export `toCssValue` utility function for css-vendor package.
13
14## 9.4.0 / 2017-12-16
15
16* Added array values support when used with function values. It now also supports priority option "!important" (#629)
17* Use classNamePrefix option in production mode (#638)
18* Added onUpdate to docs and types, now officially supported
19* Fixed class names collisions with multiple jss instances (#644)
20
21## 9.3.3 / 2017-11-15
22
23* Added CSS.escape fallback, so that polyfill is not required.
24
25## 9.3.2 / 2017-11-14
26
27* Don't put escaped class names into classes hash
28
29## 9.3.1 / 2017-11-13
30
31* Never use window object directly
32
33## 9.3.0 / 2017-11-13
34
35* Add CSS class name escaping for dev mode also we support emoji now! (#624)
36* Added CSP over webpack (#559)
37
38## 9.2.0 / 2017-11-06
39
40* Allow empty rules when option {link: true} is used.
41* Simplify internal logic for function values.
42* Introduce function rules - similar to function values, now function can return the entire style object.
43
44## 9.1.0 / 2017-10-31
45
46* Added Observable rules. Now not only values can be an observable, but also the entire style object.
47
48## 9.0.0 / 2017-09-30
49
50* Added `SheetsManager.size` getter to get amount of items in `SheetsManager`.
51* Refactored `StyleRule.selector` for better performance. Breaking change - it doesn't reregister rule in the classes map any more. It was used mainly in jss-isolate (#419).
52* Method `jss.setup()` can now be called multiple times and will merge properly the options. Also it will avoid applying same plugins more than once by comparing the reference (#576).
53* Fixed linker, which didn't work if selectors were escaped (#557).
54* In production `createGenerateClassName()` option will now produce short selectors and warn about memory leaks. (#546)
55* Update flow to v0.54.1.
56* Support observable values (#442).
57* Warn when dynamic properties update but link: true option is not set (#581)
58
59## 8.1.0 / 2017-07-12
60
61* Added webpackbin examples
62* Added size-limit tool
63* Added SheetsManager
64
65## 8.0.0 / 2017-06-20
66
67* Option `insertionPoint` can now accept a DOM node
68* DOM node provided in `insertionPoint` can be inside of an iframe.
69* Warn when an `insertionPoint` was specified but not found in the DOM.
70
71### Breaking changes for users
72
73* Option `generateClassName` which was used in Jss constructor and `Jss.setup` has been removed. A new option is called `createGenerateClassName` which is a factory that returns the old `generateClassName`. We need this to reset counters on SSR for each request.
74* Removed default `insertionPoint` value ("jss") in order to have warnings when insertionPoint is not found in the DOM. With the default one we simply don't know when to warn.
75
76### Potentially breaking changes for plugins
77
78* KeyframeRule has been renamed to KeyframesRule.
79* KeyframeRule.type === 'keyframe' => KeyFrames.type === 'keyframes'.
80* RegularRule has been renamed to StyleRule
81* RegularRule.type === 'regular' => StyleRule.type === 'style'.
82* RegularRule.name => RegularRule.key
83* ConditionalRule.selector => ConditionalRule.key
84* FontFaceRule.selector => FontFaceRule.key
85* SimpleRule.name => SimpleRule.key
86* ViewportRule.name => ViewportRule.key
87* RulesContainer => RuleList
88
89## 7.1.7 / 2017-06-15
90
91* Fix CSS flow types
92
93## 7.1.6 / 2017-06-14
94
95* Fix dynamic values for conditional and keyframe rules
96
97## 7.1.5 / 2017-05-28
98
99* Prevent duplicates in the sheets registry (#504)
100* Optimize `sheets.add` for a big registry
101
102## 7.1.4 / 2017-05-27
103
104* Fixed undefined rule support (#489)
105
106## 7.1.3 / 2017-05-26
107
108* Fixes flow error when updating to the latest version (#507)
109* Fixes createStyleSheet type definitions error (#495)
110* Fixes function values for for nested rules (#500)
111
112## 7.1.2 / 2017-05-12
113
114* Fixes function values within keyframes (#471)
115
116## 7.1.1 / 2017-04-26
117
118* Fixes rendering rules with function values only (#475)
119
120## 7.1.0 / 2017-04-21
121
122* Support updating specific rule in `sheet.update(name, data)`
123
124## 7.0.3 / 2017-04-14
125
126* Fix a bug when dynamically inserted rules disapeared after reattaching the sheet (#438)
127
128## 7.0.2 / 2017-04-14
129
130* Remove temporarily jss-isolate from the tests
131
132## 7.0.1 / 2017-04-14
133
134* Fix `getDynamicStyles` when nested object is in the same styles object (#467)
135
136## 7.0.0 / 2017-04-10
137
138* Perf improvement through removing of JSON.parse(JSON.stringify(style))
139* New hook `onProcessStyle`
140* New hook `onChangeValue`
141
142### Bugfixes
143
144* Run plugins over property names with function values (#441)
145* Function values inside of nested rules (#445)
146
147### Breaking changes
148
149* New signature of `generateClassName(rule, sheet)` option.
150* Property `rule.originalStyle` is now available through `rule.options.parent.rules.raw[rule.name]`. It is longer but its a better place and is used in plugins only.
151* Plugin signature for the hook `onProcessRule` shortcut `jss.use((rule) => {})` is not supported any more. Instead this hook is supported using its full name: `jss.use({onProcessRule: () => {}})`
152
153## 6.5.0 / 2017-03-14
154
155* Dynamic Sheets for theming and animations. #356
156
157## 6.4.0 / 2017-03-10
158
159* Reintroduced counter based class generation algorithm. #432
160
161## 6.3.0 / 2017-02-16
162
163* Introduced new option `insertionPoint`.
164* Reduced amount of files in the package, dropped .npmignore file.
165* Removed babel-runtime from the build.
166* Added a new hook `onProcessSheet`.
167* Started a list of companies/products using JSS, see docs/users.md
168
169## 6.2.0 / 2017-01-15
170
171* Added @viewport and @-ms-viewport support (used in bootstrap).
172
173## 6.1.1 / 2017-01-04
174
175* Allow sheet.link() call when VirtualRenderer is used.
176
177## 6.1.0 / 2016-12-26
178
179* Add jss-cache to the tests suit.
180* Don't run processors on a rule which has been processed already.
181* Add test for onCreateRule arguments.
182* Add sheet as a second argument to the onProcessRule hook.
183
184## 6.0.2 / 2016-12-23
185
186* Call `onCreateRule` for every rule type.
187* RulesContainer is now exported for the plugins.
188* Using babel-runtime for the lib build now.
189* Using webpack 2 now.
190* Preparation for the bugfix - nesting within @global (#380)
191* Preparation for the bugfix - nested @media inside of a rule inside of @global (#387).
192
193## 6.0.1 / 2016-12-10
194
195* Don't insert empty rules #363.
196
197## 6.0.0 / 2016-12-09
198
199* Added flow types.
200* Added a new plugins API. It is backwards compatible. See plugins section.
201* Perf improvements.
202
203### Breaking changes
204
205* Option "named" has been removed from JSS core and replaced by a jss-global plugin. From now on global styles are only possible using that plugin.
206* Sheets are not added to the sheets registry automatically server-side any more. In order to prevent leaking styles between requests, you now need to create your own SheetsRegistry instance and add sheets to it manually. Make sure to create a new instance for each request. On the client, sheets are still automatically added to the registry.
207
208## 5.5.6 / 2016-11-03
209
210* test suite
211* new is-in-browser detection #305
212* warning when using an unknown at-rule
213* start using flow #296
214
215## 5.5.5 / 2016-09-23
216
217* remove rewire from build
218* update roadmap
219
220## 5.5.4 / 2016-09-19
221
222* always use `cssRules.insertRule` when using addRule on attached sheet, mixing them results in weird overwrite of a rule added by insertRule by a media query rendered using text node.
223* catch errors from `cssRules.insertRule` and use a warning in development
224
225## 5.5.3 / 2016-09-19
226
227* add edge browser for browserstack
228* fix addRule insertion order from plugins when sheet is attached
229* fix @media insertion in IE
230
231## 5.5.2 / 2016-09-9
232
233* Skip empty values #307
234
235## 5.5.1 / 2016-09-6
236
237* Fix adding rules during the plugins loop
238
239## 5.5.0 / 2016-09-6
240
241* Fix wrong order of nested rules #285
242* Add `index` option to `sheet.addRule` which allows to specify the order or added rules
243* Add `<style>` node position control option `index` and insertion point comment
244* Better browser detection by using `is-browser` package
245
246## 5.4.0 / 2016-08-15
247
248* More docs
249* More benchmarks
250* Make sheet.addRule accept options
251
252## 5.3.0 / 2016-08-06
253
254* Added `jss.setup` method which accepts options like the contructor and can be used for presets
255* Docs
256* Create Rodamap
257* Cleanup DomRenderer from IE8 code.
258* Fix benchmark, use a new jss instance, because there is sheets registry
259
260## 5.2.0 / 2016-07-27
261
262* Added `sheet.deleteRule` #266
263
264## 5.1.0 / 2016-07-13
265
266* alternative syntax for space and comma separated values #264
267
268## 5.0.0 / 2016-07-10
269
270* new fallbacks api #256
271* rule.applyTo doesn't support fallbacks any more
272* support conditionals overwrite upfront #259, #180
273* remove compatibility fix for babel 5, now you need to use `var jss = require('jss').default` in ES5
274
275## 4.0.3 / 2016-07-05
276
277* fixed bug when plugins called twice on createStyleSheet #258
278* enable node 7 #248
279
280## 4.0.2 / 2016-06-28
281
282* allow adding rules to a detached sheet #253
283
284## 4.0.1 / 2016-06-23
285
286* fix jss.version in lib
287
288## 4.0.0 / 2016-06-23
289
290* user defined classname generation function
291* deterministic class names generation
292* run plugins separately when creating rules in a batch
293
294## 3.11.1 / 2016-05-11
295
296* register children of a conditional in sheet.classes #81
297
298## 3.11.0 / 2016-05-06
299
300* added option element to .createStyleSheet #231
301
302## 3.10.0 / 2016-05-02
303
304* fix multiple @imports
305* added benchmarks
306* rewrote all tests with mocha
307
308## 3.9.1 / 2016-04-26
309
310* fix multiple @media in one sheet
311
312## 3.9.0 / 2016-04-24
313
314* update linter eslint-config-jss@1.0.0
315
316## 3.8.0 / 2016-04-24
317
318* added jss.version to the build (Daijiro Wachi)
319
320## 3.7.0 / 2016-04-21
321
322* docs
323* font-face rule can now handle array of font-faces (Ken Carpenter)
324
325## 3.6.3 / 2016-03-12
326
327* fix rule registration in style sheet, previous commits resulted in a selector instead of class nem within sheet.classes map.
328
329## 3.6.2 / 2016-04-12
330
331* register rule when changed worked by setting selector
332
333## 3.6.1 / 2016-03-11
334
335* Update StyleSheet#rules when modifying selector
336
337## 3.6.0 / 2016-04-08
338
339* implement selector setter, now Rule#selector can be set, due to the fact not every browser implements selectorText setter, the entire sheet will be rerendered in such browsers. Should be used with caution.
340
341## 3.5.0 / 2016-04-04
342
343* fixed breaking change, which made exports of 3.4.0 incompatible with 3.3.0
344* fix font-face rule type
345
346## 3.4.0 / 2016-04-03
347
348* added style sheets registry accesible via jss.sheets
349* updated babel to version 6
350
351## 3.3.0 / 2016-01-31
352
353* fixed bug: nested rule inside of a @media conditional
354* new docs
355* trim empty rules (@wldcordeiro)
356* support node 5 (@nikgraf)
357
358## 3.2.0 / 2015-11-27
359
360* jss-debug is deprecated, rule name is inside of generated class name now
361* no more "type" option for style sheet, its always set to text/css
362* no more "title" option for style sheet, its not a part of the spec http://www.w3.org/TR/html-markup/style.html
363* added meta option, now you can for e.g. set the name of your component and find it on style element.
364* fixed bug when multiple conditionals used in one sheet
365
366## 3.1.1 / 2015-11-14
367
368* added Rule#originalStyle property to access original style object from a plugin
369
370## 3.1.0 / 2015-11-12
371
372* new testing infrastructure with browserstack and codeship
373
374## 3.0.0 / 2015-10-19
375
376* internal rewrite for cleaner code (ConditionalRule, KeyframeRule, SimpleRule)
377* moved all DOM related methods to dom.js module
378* now child rules exist only in ConditionalRule, simplified Rule and StyleSheet logic
379* fixed Named rules not generating when using @media only #81
380* added support for @charset, @import, @namespace, @supports
381* removed jss.Rule from public access, use jss.createRule() instead
382* removed jss.Jss from public access, use jss.create() instead
383* removed jss.StyleSheet from public access, use jss.createStyleSheet() instead
384
385## 2.3.4 / 2015-09-21
386
387* remove bower.json
388* remove dist from repository
389* add dist to npm package
390* add cdnjs support
391
392## 2.3.3 / 2015-09-20
393
394* remove xpkg, update npmignore and ingore list for bower
395
396## 2.3.2 / 2015-09-19
397
398* reference rule name on the rule instance to fix jss-debug
399
400## 2.3.1 / 2015-09-15
401
402* use eslint-config-jss
403
404## 2.3.0 / 2015-09-10
405
406* migrate to es6
407* move examples to jss-examples repository
408
409## 2.2.1 / 2015-09-6
410
411* remove @media from classes hash
412
413## 2.2.0 / 2015-09-6
414
415* added support for named at-rules e.g. @media
416
417## 2.1.6 / 2015-09-2
418
419* removed invalid characters
420
421## 2.1.5 / 2015-08-20
422
423* stop mutating original rules passed by user. expecting style to be a plaing object.
424
425## 2.1.4 / 2015-07-31
426
427* add internal method uid.reset() for testing
428
429## 2.1.3 / 2015-07-31
430
431* rename global reference to globalReference
432
433## 2.1.2 / 2015-07-28
434
435* avoid conflicts of jss ids when multiple jss versions are used on the same page
436
437## 2.1.1 / 2015-07-20
438
439* remove browser field from package.json, it makes webpack use dist version instead of src.
440
441## 2.1.0 / 2015-07-18
442
443* create Jss constructor so that we can have multiple jss instances with different plugins, needed when you want to reuse jss lib from different standalone components which have own jss configuration and should not clash.
444
445## 2.0.0 / 2015-06-17
446
447* create jss-cli package, remove bin script from jss
448
449## 1.0.8 / 2015-03-16
450
451* fix bower package name
452* make change condition to include any non-null value in Rule#prop (Stephen Saunders)
453
454## 1.0.7 / 2015-02-26
455
456* remove NO-BREAK SPACE chars
457
458## 1.0.6 / 2015-02-24
459
460* add rule.toJSON()
461
462## 1.0.5 / 2015-02-17
463
464* support any node version above 0.8
465
466## 1.0.4 / 2015-02-6
467
468* allow rule options to be passed in internal rule#addRule method to allow nested rules to have different options than parent one (for now just "named")
469
470## 1.0.3 / 2015-01-31
471
472* pass rule name to make debug plugin possible
473
474## 1.0.2 / 2015-01-31
475
476* fix duplicated rule rendering
477
478## 1.0.1 / 2015-01-31
479
480* run plugins on inner rules of at-rules
481
482## 1.0.0 / 2015-01-31
483
484* styles have named: true option by default, this is backwards incompatible
485* at-rules like @media can now also have named rules
486
487## 0.10.2 / 2015-01-31
488
489* fixed #40 there is no colons in all at-rules with nested declarations
490
491## 0.10.1 / 2014-12-21
492
493* fixed firefox issues
494
495## 0.10.0 / 2014-12-21
496
497* added rule.prop() for dynamic rule properties #15
498
499## 0.9.0 / 2014-12-21
500
501* added Rule#prop() for setting and getting rule props dynamically
502* added `link` option in order to make .prop() work but still without to add perf overhead by default.
503* added example for .prop()
504
505## 0.8.2 / 2014-12-17
506
507* added build for "support non browser env #12"
508* added calendar example
509
510## 0.8.1 / 2014-11-29
511
512* supported non browser env #12
513
514## 0.8.0 / 2014-11-29
515
516* renamed Stylesheet to StyleSheet because its wrong.
517
518## 0.7.0 / 2014-11-29
519
520* moved jss to separate github organization
521* moved all plugins to separate repositories (don't force people use plugins they don't need)
522
523## 0.6.0 / 2014-11-28
524
525* renamed processors to plugins
526* added public .use function for registering plugins
527
528## 0.5.0 / 2014-11-27
529
530* supported multiple declarations with identical property names #22
531
532## 0.4.0 / 2014-11-23
533
534* supported nested rules when using .addRule method #20
535
536## 0.3.2 / 2014-11-19
537
538* rewrittn prefixer for feature testing using camel cased version because of firefox
539
540## 0.3.0 / 2014-11-19
541
542* added vendor prefixes plugin for properties #21
543
544## 0.2.10 / 2014-11-10
545
546* supported nested extend
547* added more complex topcoat example
548
549## 0.2.9 / 2014-11-03
550
551* added @keyframes and @media support #16
552
553## 0.2.8 / 2014-11-02
554
555* added possibility write multi nested selector in one line #18
556
557## 0.2.7 / 2014-11-02
558
559* added @font-face to cli converter
560* added @keyframes to cli converter
561
562## 0.2.6 / 2014-11-02
563
564* createed perf comparence for bootstrap #13
565
566## 0.2.5 / 2014-11-02
567
568* createed css->jss converter #11
569
570## 0.2.4 / 2014-11-01
571
572* made tests runnable from githubs gh-pages http://jsstyles.github.io/jss/test/
573
574## 0.2.3 / 2014-11-01
575
576* fixed test failing in firefox #14
577
578## 0.2.2 / 2014-11-01
579
580* Renamed param "generateClasses" to "named" in createStyleSheet
581* If `named` is true, ss.rules[name] is accessible using the name.
582* ss.addRules will render new rules after style element has been rendered too.
583* document ss.addRules
584
585## 0.2.1 / 2014-10-29
586
587First official release.