GoScrobble/web/node_modules/react-select/node_modules/@emotion/sheet/CHANGELOG.md

7.2 KiB

@emotion/sheet

1.0.2

Patch Changes

  • #2393 405af5ca Thanks @layershifter! - Do not log failed rule insertions in the speedy mode for even more vendor-prefixed pseudo-elements/classes like :-moz-focus-inner, :-moz-focusring, and :-ms-clear.

1.0.1

Patch Changes

  • 5469d003 #2149 Thanks @Andarist! - Do not log failed rule insertions in the speedy mode for vendor-prefixed pseudo-elements/classes like ::-moz-placeholder.

1.0.0

Major Changes

  • 9e998e37 #1817 Thanks @Andarist! - @import rules are no longer special-cased - they no longer are always inserted at the beginning of the stylesheet. The responsibility to put them first has been moved to a consumer of this package.

Minor Changes

  • 4a891bf6 #1473 Thanks @jcharry! - The new prepend option can make Emotion add style tags at the beginning of the specified DOM container instead of the end.
  • dfe79aca #1696 Thanks @Andarist! - Added hydrate method which can be used for SSRed styles. They become a part of a sheet and can be flushed.

Patch Changes

  • 42df3f3b #2028 Thanks @Andarist! - Generated style elements got data-s="1" attribute so @emotion/cache can recognize them as being already owned by another Emotion copy to avoid messing up existing style elements when initializing a new copy.
  • 1e4a741d #1697 Thanks @Andarist! - Removed mentions of maxLength option in types & docs as it has been removed some time ago.

1.0.0-rc.0

Major Changes

1.0.0-next.5

Patch Changes

  • 42df3f3b #2028 Thanks @Andarist! - Generated style elements got data-s attribute so @emotion/cache can recognize them as being already owned by another Emotion copy to avoid messing up existing style elements when initializing a new copy.

1.0.0-next.4

Patch Changes

  • 39be057b #1997 Thanks @Andarist! - Reverted the change that has started to add an empty <style/> element eagerly in non-production environments that has been introduced in v1.0.0-next.3 as this has found to be problematic for websites using Content-Security-Policy and a nonce. Instead of this @emotion/cache will from now on insert an empty rule in non-production environments but it will only do that if an empty rule gets actually created by the user.

1.0.0-next.3

Patch Changes

  • dc1a0c5e #1962 Thanks @Andarist! - From now on an empty <style/> element gets inserted eagerly into the DOM in the constructor in non-production environments. This helps to grab used keys from the (JS)DOM even for sheets/caches that have not inserted any actual rules to the document yet. It allows @emotion/jest to find those and serialize Emotion classes properly in situations like this:

    import styled from '@emotion/styled/macro'
    import { render } from '@testing-library/react'
    
    const Div = styled.div``
    
    test('foo', () => {
      const { container } = render(<Div />)
      expect(container).toMatchSnapshot()
    })
    

1.0.0-next.2

Major Changes

  • 9e998e37 #1817 Thanks @Andarist! - @import rules are no longer special-cased - they no longer are always inserted at the beginning of the stylesheet. The responsibility to put them first has been moved to a consumer of this package.

Patch Changes

  • 91046a8c #1900 Thanks @Andarist! - Renamed rehydrate method to hydrate to align naming to what is already used in Emotion and React itself.

0.10.0-next.1

Minor Changes

  • dfe79aca #1572 Thanks @Andarist! - Added rehydrate method which can be used for SSRed styles. They become a part of a sheet and can be flushed.

Patch Changes

  • 1e4a741d #1572 Thanks @Andarist! - Removed mentions of maxLength option in types & docs as it has been removed some time ago.

0.10.0-next.0

Minor Changes

  • 4a891bf6 #1473 Thanks @jcharry! - Accept new prepend option to allow for adding style tags at the beginning of the specified DOM container.

0.9.4

Patch Changes

0.9.3

Patch Changes