From 4c62ae9447959d438928e1a26f76f1487983c968 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mateusz=20Burzy=C5=84ski?= Date: Mon, 23 Dec 2019 00:02:44 +0100 Subject: [PATCH 01/12] Add LICENSE files (#1698) --- .changeset/three-items-call.md | 31 +++++++++++++++++++++ LICENSE | 4 +-- packages/babel-plugin-emotion/LICENSE | 21 ++++++++++++++ packages/babel-plugin-jsx-pragmatic/LICENSE | 21 ++++++++++++++ packages/babel-preset-css-prop/LICENSE | 21 ++++++++++++++ packages/cache/LICENSE | 21 ++++++++++++++ packages/core/LICENSE | 21 ++++++++++++++ packages/create-emotion-server/LICENSE | 21 ++++++++++++++ packages/create-emotion/LICENSE | 21 ++++++++++++++ packages/css/LICENSE | 21 ++++++++++++++ packages/emotion-server/LICENSE | 21 ++++++++++++++ packages/emotion-theming/LICENSE | 21 ++++++++++++++ packages/emotion/LICENSE | 21 ++++++++++++++ packages/eslint-plugin-emotion/LICENSE | 21 ++++++++++++++ packages/hash/LICENSE | 21 ++++++++++++++ packages/is-prop-valid/LICENSE | 21 ++++++++++++++ packages/jest-emotion/LICENSE | 21 ++++++++++++++ packages/memoize/LICENSE | 21 ++++++++++++++ packages/native/LICENSE | 21 ++++++++++++++ packages/primitives-core/LICENSE | 21 ++++++++++++++ packages/primitives/LICENSE | 21 ++++++++++++++ packages/serialize/LICENSE | 21 ++++++++++++++ packages/sheet/LICENSE | 21 ++++++++++++++ packages/styled-base/LICENSE | 21 ++++++++++++++ packages/styled/LICENSE | 21 ++++++++++++++ packages/stylis/LICENSE | 21 ++++++++++++++ packages/unitless/LICENSE | 21 ++++++++++++++ packages/utils/LICENSE | 21 ++++++++++++++ packages/weak-memoize/LICENSE | 21 ++++++++++++++ 29 files changed, 600 insertions(+), 2 deletions(-) create mode 100644 .changeset/three-items-call.md create mode 100644 packages/babel-plugin-emotion/LICENSE create mode 100644 packages/babel-plugin-jsx-pragmatic/LICENSE create mode 100644 packages/babel-preset-css-prop/LICENSE create mode 100644 packages/cache/LICENSE create mode 100644 packages/core/LICENSE create mode 100644 packages/create-emotion-server/LICENSE create mode 100644 packages/create-emotion/LICENSE create mode 100644 packages/css/LICENSE create mode 100644 packages/emotion-server/LICENSE create mode 100644 packages/emotion-theming/LICENSE create mode 100644 packages/emotion/LICENSE create mode 100644 packages/eslint-plugin-emotion/LICENSE create mode 100644 packages/hash/LICENSE create mode 100644 packages/is-prop-valid/LICENSE create mode 100644 packages/jest-emotion/LICENSE create mode 100644 packages/memoize/LICENSE create mode 100644 packages/native/LICENSE create mode 100644 packages/primitives-core/LICENSE create mode 100644 packages/primitives/LICENSE create mode 100644 packages/serialize/LICENSE create mode 100644 packages/sheet/LICENSE create mode 100644 packages/styled-base/LICENSE create mode 100644 packages/styled/LICENSE create mode 100644 packages/stylis/LICENSE create mode 100644 packages/unitless/LICENSE create mode 100644 packages/utils/LICENSE create mode 100644 packages/weak-memoize/LICENSE diff --git a/.changeset/three-items-call.md b/.changeset/three-items-call.md new file mode 100644 index 0000000000..0eb4f4bfeb --- /dev/null +++ b/.changeset/three-items-call.md @@ -0,0 +1,31 @@ +--- +'babel-plugin-emotion': patch +'@emotion/babel-plugin-jsx-pragmatic': patch +'@emotion/babel-preset-css-prop': patch +'@emotion/cache': patch +'@emotion/core': patch +'create-emotion-server': patch +'create-emotion': patch +'@emotion/css': patch +'emotion-server': patch +'emotion-theming': patch +'emotion': patch +'eslint-plugin-emotion': patch +'@emotion/hash': patch +'@emotion/is-prop-valid': patch +'jest-emotion': patch +'@emotion/memoize': patch +'@emotion/native': patch +'@emotion/primitives-core': patch +'@emotion/primitives': patch +'@emotion/serialize': patch +'@emotion/sheet': patch +'@emotion/styled-base': patch +'@emotion/styled': patch +'@emotion/stylis': patch +'@emotion/unitless': patch +'@emotion/utils': patch +'@emotion/weak-memoize': patch +--- + +Add LICENSE file diff --git a/LICENSE b/LICENSE index f24055d5aa..56e808dea1 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ -The MIT License (MIT) +MIT License -Copyright (c) 2016 Kye Hohenberger +Copyright (c) Emotion team and other contributors Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/packages/babel-plugin-emotion/LICENSE b/packages/babel-plugin-emotion/LICENSE new file mode 100644 index 0000000000..56e808dea1 --- /dev/null +++ b/packages/babel-plugin-emotion/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) Emotion team and other contributors + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/packages/babel-plugin-jsx-pragmatic/LICENSE b/packages/babel-plugin-jsx-pragmatic/LICENSE new file mode 100644 index 0000000000..56e808dea1 --- /dev/null +++ b/packages/babel-plugin-jsx-pragmatic/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) Emotion team and other contributors + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/packages/babel-preset-css-prop/LICENSE b/packages/babel-preset-css-prop/LICENSE new file mode 100644 index 0000000000..56e808dea1 --- /dev/null +++ b/packages/babel-preset-css-prop/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) Emotion team and other contributors + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/packages/cache/LICENSE b/packages/cache/LICENSE new file mode 100644 index 0000000000..56e808dea1 --- /dev/null +++ b/packages/cache/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) Emotion team and other contributors + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/packages/core/LICENSE b/packages/core/LICENSE new file mode 100644 index 0000000000..56e808dea1 --- /dev/null +++ b/packages/core/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) Emotion team and other contributors + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/packages/create-emotion-server/LICENSE b/packages/create-emotion-server/LICENSE new file mode 100644 index 0000000000..56e808dea1 --- /dev/null +++ b/packages/create-emotion-server/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) Emotion team and other contributors + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/packages/create-emotion/LICENSE b/packages/create-emotion/LICENSE new file mode 100644 index 0000000000..56e808dea1 --- /dev/null +++ b/packages/create-emotion/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) Emotion team and other contributors + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/packages/css/LICENSE b/packages/css/LICENSE new file mode 100644 index 0000000000..56e808dea1 --- /dev/null +++ b/packages/css/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) Emotion team and other contributors + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/packages/emotion-server/LICENSE b/packages/emotion-server/LICENSE new file mode 100644 index 0000000000..56e808dea1 --- /dev/null +++ b/packages/emotion-server/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) Emotion team and other contributors + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/packages/emotion-theming/LICENSE b/packages/emotion-theming/LICENSE new file mode 100644 index 0000000000..56e808dea1 --- /dev/null +++ b/packages/emotion-theming/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) Emotion team and other contributors + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/packages/emotion/LICENSE b/packages/emotion/LICENSE new file mode 100644 index 0000000000..56e808dea1 --- /dev/null +++ b/packages/emotion/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) Emotion team and other contributors + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/packages/eslint-plugin-emotion/LICENSE b/packages/eslint-plugin-emotion/LICENSE new file mode 100644 index 0000000000..56e808dea1 --- /dev/null +++ b/packages/eslint-plugin-emotion/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) Emotion team and other contributors + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/packages/hash/LICENSE b/packages/hash/LICENSE new file mode 100644 index 0000000000..56e808dea1 --- /dev/null +++ b/packages/hash/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) Emotion team and other contributors + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/packages/is-prop-valid/LICENSE b/packages/is-prop-valid/LICENSE new file mode 100644 index 0000000000..56e808dea1 --- /dev/null +++ b/packages/is-prop-valid/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) Emotion team and other contributors + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/packages/jest-emotion/LICENSE b/packages/jest-emotion/LICENSE new file mode 100644 index 0000000000..56e808dea1 --- /dev/null +++ b/packages/jest-emotion/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) Emotion team and other contributors + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/packages/memoize/LICENSE b/packages/memoize/LICENSE new file mode 100644 index 0000000000..56e808dea1 --- /dev/null +++ b/packages/memoize/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) Emotion team and other contributors + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/packages/native/LICENSE b/packages/native/LICENSE new file mode 100644 index 0000000000..56e808dea1 --- /dev/null +++ b/packages/native/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) Emotion team and other contributors + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/packages/primitives-core/LICENSE b/packages/primitives-core/LICENSE new file mode 100644 index 0000000000..56e808dea1 --- /dev/null +++ b/packages/primitives-core/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) Emotion team and other contributors + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/packages/primitives/LICENSE b/packages/primitives/LICENSE new file mode 100644 index 0000000000..56e808dea1 --- /dev/null +++ b/packages/primitives/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) Emotion team and other contributors + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/packages/serialize/LICENSE b/packages/serialize/LICENSE new file mode 100644 index 0000000000..56e808dea1 --- /dev/null +++ b/packages/serialize/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) Emotion team and other contributors + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/packages/sheet/LICENSE b/packages/sheet/LICENSE new file mode 100644 index 0000000000..56e808dea1 --- /dev/null +++ b/packages/sheet/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) Emotion team and other contributors + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/packages/styled-base/LICENSE b/packages/styled-base/LICENSE new file mode 100644 index 0000000000..56e808dea1 --- /dev/null +++ b/packages/styled-base/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) Emotion team and other contributors + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/packages/styled/LICENSE b/packages/styled/LICENSE new file mode 100644 index 0000000000..56e808dea1 --- /dev/null +++ b/packages/styled/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) Emotion team and other contributors + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/packages/stylis/LICENSE b/packages/stylis/LICENSE new file mode 100644 index 0000000000..56e808dea1 --- /dev/null +++ b/packages/stylis/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) Emotion team and other contributors + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/packages/unitless/LICENSE b/packages/unitless/LICENSE new file mode 100644 index 0000000000..56e808dea1 --- /dev/null +++ b/packages/unitless/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) Emotion team and other contributors + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/packages/utils/LICENSE b/packages/utils/LICENSE new file mode 100644 index 0000000000..56e808dea1 --- /dev/null +++ b/packages/utils/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) Emotion team and other contributors + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/packages/weak-memoize/LICENSE b/packages/weak-memoize/LICENSE new file mode 100644 index 0000000000..56e808dea1 --- /dev/null +++ b/packages/weak-memoize/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) Emotion team and other contributors + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. From 6dd425bd1b8db7ab5144cca81b592639a68af2cb Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Mon, 23 Dec 2019 00:08:23 +0100 Subject: [PATCH 02/12] Version Packages (#1700) --- .changeset/three-items-call.md | 31 ------------------- packages/babel-plugin-emotion/CHANGELOG.md | 10 ++++++ packages/babel-plugin-emotion/package.json | 8 ++--- .../babel-plugin-jsx-pragmatic/CHANGELOG.md | 6 ++++ .../babel-plugin-jsx-pragmatic/package.json | 2 +- packages/babel-preset-css-prop/CHANGELOG.md | 9 ++++++ packages/babel-preset-css-prop/package.json | 6 ++-- packages/cache/CHANGELOG.md | 12 +++++++ packages/cache/package.json | 14 ++++----- packages/core/CHANGELOG.md | 16 ++++++++++ packages/core/package.json | 20 ++++++------ packages/create-emotion-server/CHANGELOG.md | 8 +++++ packages/create-emotion-server/package.json | 6 ++-- packages/create-emotion/CHANGELOG.md | 12 +++++++ packages/create-emotion/package.json | 14 ++++----- packages/css/CHANGELOG.md | 10 ++++++ packages/css/package.json | 8 ++--- packages/emotion-server/CHANGELOG.md | 10 ++++++ packages/emotion-server/package.json | 12 +++---- packages/emotion-theming/CHANGELOG.md | 10 ++++++ packages/emotion-theming/package.json | 12 +++---- packages/emotion/CHANGELOG.md | 10 ++++++ packages/emotion/package.json | 8 ++--- packages/eslint-plugin-emotion/CHANGELOG.md | 6 ++++ packages/eslint-plugin-emotion/package.json | 4 +-- packages/hash/CHANGELOG.md | 6 ++++ packages/hash/package.json | 4 +-- packages/is-prop-valid/CHANGELOG.md | 8 +++++ packages/is-prop-valid/package.json | 4 +-- packages/jest-emotion/CHANGELOG.md | 9 ++++++ packages/jest-emotion/package.json | 6 ++-- packages/memoize/CHANGELOG.md | 6 ++++ packages/memoize/package.json | 4 +-- packages/native/CHANGELOG.md | 9 ++++++ packages/native/package.json | 6 ++-- packages/primitives-core/CHANGELOG.md | 8 +++++ packages/primitives-core/package.json | 6 ++-- packages/primitives/CHANGELOG.md | 11 +++++++ packages/primitives/package.json | 10 +++--- packages/serialize/CHANGELOG.md | 11 +++++++ packages/serialize/package.json | 10 +++--- packages/sheet/CHANGELOG.md | 6 ++++ packages/sheet/package.json | 4 +-- packages/styled-base/CHANGELOG.md | 11 +++++++ packages/styled-base/package.json | 12 +++---- packages/styled/CHANGELOG.md | 10 ++++++ packages/styled/package.json | 10 +++--- packages/stylis/CHANGELOG.md | 6 ++++ packages/stylis/package.json | 4 +-- packages/unitless/CHANGELOG.md | 6 ++++ packages/unitless/package.json | 4 +-- packages/utils/CHANGELOG.md | 6 ++++ packages/utils/package.json | 4 +-- packages/weak-memoize/CHANGELOG.md | 6 ++++ packages/weak-memoize/package.json | 4 +-- 55 files changed, 341 insertions(+), 134 deletions(-) delete mode 100644 .changeset/three-items-call.md diff --git a/.changeset/three-items-call.md b/.changeset/three-items-call.md deleted file mode 100644 index 0eb4f4bfeb..0000000000 --- a/.changeset/three-items-call.md +++ /dev/null @@ -1,31 +0,0 @@ ---- -'babel-plugin-emotion': patch -'@emotion/babel-plugin-jsx-pragmatic': patch -'@emotion/babel-preset-css-prop': patch -'@emotion/cache': patch -'@emotion/core': patch -'create-emotion-server': patch -'create-emotion': patch -'@emotion/css': patch -'emotion-server': patch -'emotion-theming': patch -'emotion': patch -'eslint-plugin-emotion': patch -'@emotion/hash': patch -'@emotion/is-prop-valid': patch -'jest-emotion': patch -'@emotion/memoize': patch -'@emotion/native': patch -'@emotion/primitives-core': patch -'@emotion/primitives': patch -'@emotion/serialize': patch -'@emotion/sheet': patch -'@emotion/styled-base': patch -'@emotion/styled': patch -'@emotion/stylis': patch -'@emotion/unitless': patch -'@emotion/utils': patch -'@emotion/weak-memoize': patch ---- - -Add LICENSE file diff --git a/packages/babel-plugin-emotion/CHANGELOG.md b/packages/babel-plugin-emotion/CHANGELOG.md index 34c06dbf0d..a836fc02f7 100644 --- a/packages/babel-plugin-emotion/CHANGELOG.md +++ b/packages/babel-plugin-emotion/CHANGELOG.md @@ -1,5 +1,15 @@ # babel-plugin-emotion +## 10.0.27 + +### Patch Changes + +- [`4c62ae9`](https://github.com/emotion-js/emotion/commit/4c62ae9447959d438928e1a26f76f1487983c968) [#1698](https://github.com/emotion-js/emotion/pull/1698) Thanks [@Andarist](https://github.com/Andarist)! - Add LICENSE file +- Updated dependencies [[`4c62ae9`](https://github.com/emotion-js/emotion/commit/4c62ae9447959d438928e1a26f76f1487983c968)]: + - @emotion/hash@0.7.4 + - @emotion/memoize@0.7.4 + - @emotion/serialize@0.11.15 + ## 10.0.23 ### Patch Changes diff --git a/packages/babel-plugin-emotion/package.json b/packages/babel-plugin-emotion/package.json index 4f0534f7b1..1d8f440c97 100644 --- a/packages/babel-plugin-emotion/package.json +++ b/packages/babel-plugin-emotion/package.json @@ -1,6 +1,6 @@ { "name": "babel-plugin-emotion", - "version": "10.0.23", + "version": "10.0.27", "description": "A recommended babel preprocessing plugin for emotion, The Next Generation of CSS-in-JS.", "main": "dist/babel-plugin-emotion.cjs.js", "module": "dist/babel-plugin-emotion.esm.js", @@ -11,9 +11,9 @@ ], "dependencies": { "@babel/helper-module-imports": "^7.0.0", - "@emotion/hash": "0.7.3", - "@emotion/memoize": "0.7.3", - "@emotion/serialize": "^0.11.14", + "@emotion/hash": "0.7.4", + "@emotion/memoize": "0.7.4", + "@emotion/serialize": "^0.11.15", "babel-plugin-macros": "^2.0.0", "babel-plugin-syntax-jsx": "^6.18.0", "convert-source-map": "^1.5.0", diff --git a/packages/babel-plugin-jsx-pragmatic/CHANGELOG.md b/packages/babel-plugin-jsx-pragmatic/CHANGELOG.md index da688f32f6..0b8fb1b1b2 100644 --- a/packages/babel-plugin-jsx-pragmatic/CHANGELOG.md +++ b/packages/babel-plugin-jsx-pragmatic/CHANGELOG.md @@ -1,5 +1,11 @@ # @emotion/babel-plugin-jsx-pragmatic +## 0.1.5 + +### Patch Changes + +- [`4c62ae9`](https://github.com/emotion-js/emotion/commit/4c62ae9447959d438928e1a26f76f1487983c968) [#1698](https://github.com/emotion-js/emotion/pull/1698) Thanks [@Andarist](https://github.com/Andarist)! - Add LICENSE file + ## 0.1.4 ### Patch Changes diff --git a/packages/babel-plugin-jsx-pragmatic/package.json b/packages/babel-plugin-jsx-pragmatic/package.json index 3bb6820794..cbaf20813a 100644 --- a/packages/babel-plugin-jsx-pragmatic/package.json +++ b/packages/babel-plugin-jsx-pragmatic/package.json @@ -1,6 +1,6 @@ { "name": "@emotion/babel-plugin-jsx-pragmatic", - "version": "0.1.4", + "version": "0.1.5", "description": "Insert code to load a module corresponding to JSX pragma.", "main": "dist/babel-plugin-jsx-pragmatic.cjs.js", "module": "dist/babel-plugin-jsx-pragmatic.esm.js", diff --git a/packages/babel-preset-css-prop/CHANGELOG.md b/packages/babel-preset-css-prop/CHANGELOG.md index faa2afa2c5..2277fa4947 100644 --- a/packages/babel-preset-css-prop/CHANGELOG.md +++ b/packages/babel-preset-css-prop/CHANGELOG.md @@ -1,5 +1,14 @@ # @emotion/babel-preset-css-prop +## 10.0.27 + +### Patch Changes + +- [`4c62ae9`](https://github.com/emotion-js/emotion/commit/4c62ae9447959d438928e1a26f76f1487983c968) [#1698](https://github.com/emotion-js/emotion/pull/1698) Thanks [@Andarist](https://github.com/Andarist)! - Add LICENSE file +- Updated dependencies [[`4c62ae9`](https://github.com/emotion-js/emotion/commit/4c62ae9447959d438928e1a26f76f1487983c968)]: + - babel-plugin-emotion@10.0.27 + - @emotion/babel-plugin-jsx-pragmatic@0.1.5 + ## 10.0.23 ### Patch Changes diff --git a/packages/babel-preset-css-prop/package.json b/packages/babel-preset-css-prop/package.json index d25fd33324..c2e73e83b6 100644 --- a/packages/babel-preset-css-prop/package.json +++ b/packages/babel-preset-css-prop/package.json @@ -1,6 +1,6 @@ { "name": "@emotion/babel-preset-css-prop", - "version": "10.0.23", + "version": "10.0.27", "description": "A babel preset to automatically enable emotion's css prop", "main": "dist/babel-preset-css-prop.cjs.js", "module": "dist/babel-preset-css-prop.esm.js", @@ -9,8 +9,8 @@ "dependencies": { "@babel/plugin-transform-react-jsx": "^7.3.0", "@babel/runtime": "^7.5.5", - "@emotion/babel-plugin-jsx-pragmatic": "^0.1.4", - "babel-plugin-emotion": "^10.0.23" + "@emotion/babel-plugin-jsx-pragmatic": "^0.1.5", + "babel-plugin-emotion": "^10.0.27" }, "peerDependencies": { "@babel/core": "^7.0.0" diff --git a/packages/cache/CHANGELOG.md b/packages/cache/CHANGELOG.md index 87c599f0a8..1c3c73e88b 100644 --- a/packages/cache/CHANGELOG.md +++ b/packages/cache/CHANGELOG.md @@ -1,5 +1,17 @@ # @emotion/cache +## 10.0.27 + +### Patch Changes + +- [`4c62ae9`](https://github.com/emotion-js/emotion/commit/4c62ae9447959d438928e1a26f76f1487983c968) [#1698](https://github.com/emotion-js/emotion/pull/1698) Thanks [@Andarist](https://github.com/Andarist)! - Add LICENSE file +- Updated dependencies [[`4c62ae9`](https://github.com/emotion-js/emotion/commit/4c62ae9447959d438928e1a26f76f1487983c968)]: + - @emotion/hash@0.7.4 + - @emotion/sheet@0.9.4 + - @emotion/stylis@0.8.5 + - @emotion/utils@0.11.3 + - @emotion/weak-memoize@0.2.5 + ## 10.0.19 - Updated dependencies [c81c0033]: diff --git a/packages/cache/package.json b/packages/cache/package.json index aecaf4f373..cbfb2cfe37 100644 --- a/packages/cache/package.json +++ b/packages/cache/package.json @@ -1,6 +1,6 @@ { "name": "@emotion/cache", - "version": "10.0.19", + "version": "10.0.27", "description": "emotion's cache", "main": "dist/cache.cjs.js", "module": "dist/cache.esm.js", @@ -15,13 +15,13 @@ "test:typescript": "dtslint types" }, "dependencies": { - "@emotion/sheet": "0.9.3", - "@emotion/stylis": "0.8.4", - "@emotion/utils": "0.11.2", - "@emotion/weak-memoize": "0.2.4" + "@emotion/sheet": "0.9.4", + "@emotion/stylis": "0.8.5", + "@emotion/utils": "0.11.3", + "@emotion/weak-memoize": "0.2.5" }, "devDependencies": { - "@emotion/hash": "0.7.3", + "@emotion/hash": "0.7.4", "dtslint": "^0.3.0" }, "publishConfig": { @@ -32,4 +32,4 @@ "dist", "types" ] -} \ No newline at end of file +} diff --git a/packages/core/CHANGELOG.md b/packages/core/CHANGELOG.md index 102c20a538..eef83e4659 100644 --- a/packages/core/CHANGELOG.md +++ b/packages/core/CHANGELOG.md @@ -1,5 +1,21 @@ # @emotion/core +## 10.0.27 + +### Patch Changes + +- [`4c62ae9`](https://github.com/emotion-js/emotion/commit/4c62ae9447959d438928e1a26f76f1487983c968) [#1698](https://github.com/emotion-js/emotion/pull/1698) Thanks [@Andarist](https://github.com/Andarist)! - Add LICENSE file +- Updated dependencies [[`4c62ae9`](https://github.com/emotion-js/emotion/commit/4c62ae9447959d438928e1a26f76f1487983c968)]: + - @emotion/cache@10.0.27 + - @emotion/css@10.0.27 + - emotion-server@10.0.27 + - emotion-theming@10.0.27 + - emotion@10.0.27 + - @emotion/serialize@0.11.15 + - @emotion/sheet@0.9.4 + - @emotion/styled@10.0.27 + - @emotion/utils@0.11.3 + ## 10.0.22 ### Patch Changes diff --git a/packages/core/package.json b/packages/core/package.json index 5458b202f8..35ef01ad92 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -1,6 +1,6 @@ { "name": "@emotion/core", - "version": "10.0.22", + "version": "10.0.27", "main": "dist/core.cjs.js", "module": "dist/core.esm.js", "browser": { @@ -20,22 +20,22 @@ }, "dependencies": { "@babel/runtime": "^7.5.5", - "@emotion/cache": "^10.0.17", - "@emotion/css": "^10.0.22", - "@emotion/serialize": "^0.11.12", - "@emotion/sheet": "0.9.3", - "@emotion/utils": "0.11.2" + "@emotion/cache": "^10.0.27", + "@emotion/css": "^10.0.27", + "@emotion/serialize": "^0.11.15", + "@emotion/sheet": "0.9.4", + "@emotion/utils": "0.11.3" }, "peerDependencies": { "react": ">=16.3.0" }, "devDependencies": { - "@emotion/styled": "^10.0.22", + "@emotion/styled": "^10.0.27", "@types/react": "^16.8.20", "dtslint": "^0.3.0", - "emotion": "^10.0.17", - "emotion-server": "^10.0.17", - "emotion-theming": "^10.0.17", + "emotion": "^10.0.27", + "emotion-server": "^10.0.27", + "emotion-theming": "^10.0.27", "html-tag-names": "^1.1.2", "react": "^16.5.2", "svg-tag-names": "^1.1.1" diff --git a/packages/create-emotion-server/CHANGELOG.md b/packages/create-emotion-server/CHANGELOG.md index 782deccfc3..4e3f361aad 100644 --- a/packages/create-emotion-server/CHANGELOG.md +++ b/packages/create-emotion-server/CHANGELOG.md @@ -1,5 +1,13 @@ # create-emotion-server +## 10.0.27 + +### Patch Changes + +- [`4c62ae9`](https://github.com/emotion-js/emotion/commit/4c62ae9447959d438928e1a26f76f1487983c968) [#1698](https://github.com/emotion-js/emotion/pull/1698) Thanks [@Andarist](https://github.com/Andarist)! - Add LICENSE file +- Updated dependencies [[`4c62ae9`](https://github.com/emotion-js/emotion/commit/4c62ae9447959d438928e1a26f76f1487983c968)]: + - @emotion/utils@0.11.3 + ## 10.0.14 ### Patch Changes diff --git a/packages/create-emotion-server/package.json b/packages/create-emotion-server/package.json index f44bee0d3c..1f0821e568 100644 --- a/packages/create-emotion-server/package.json +++ b/packages/create-emotion-server/package.json @@ -1,6 +1,6 @@ { "name": "create-emotion-server", - "version": "10.0.14", + "version": "10.0.27", "description": "SSR and style extraction tooling for emotion, The Next Generation of CSS-in-JS.", "main": "dist/create-emotion-server.cjs.js", "types": "types/index.d.ts", @@ -13,7 +13,7 @@ "test:typescript": "dtslint types" }, "dependencies": { - "@emotion/utils": "0.11.2", + "@emotion/utils": "0.11.3", "html-tokenize": "^2.0.0", "multipipe": "^1.0.2", "through": "^2.3.8" @@ -41,4 +41,4 @@ "browser": { "./dist/create-emotion-server.cjs.js": "./dist/create-emotion-server.browser.cjs.js" } -} \ No newline at end of file +} diff --git a/packages/create-emotion/CHANGELOG.md b/packages/create-emotion/CHANGELOG.md index 73623aa772..e6af87609c 100644 --- a/packages/create-emotion/CHANGELOG.md +++ b/packages/create-emotion/CHANGELOG.md @@ -1,5 +1,17 @@ # create-emotion +## 10.0.27 + +### Patch Changes + +- [`4c62ae9`](https://github.com/emotion-js/emotion/commit/4c62ae9447959d438928e1a26f76f1487983c968) [#1698](https://github.com/emotion-js/emotion/pull/1698) Thanks [@Andarist](https://github.com/Andarist)! - Add LICENSE file +- Updated dependencies [[`4c62ae9`](https://github.com/emotion-js/emotion/commit/4c62ae9447959d438928e1a26f76f1487983c968)]: + - @emotion/cache@10.0.27 + - create-emotion-server@10.0.27 + - @emotion/serialize@0.11.15 + - @emotion/sheet@0.9.4 + - @emotion/utils@0.11.3 + ## 10.0.14 ### Patch Changes diff --git a/packages/create-emotion/package.json b/packages/create-emotion/package.json index 1b25316dc6..d1dfdaf931 100644 --- a/packages/create-emotion/package.json +++ b/packages/create-emotion/package.json @@ -1,6 +1,6 @@ { "name": "create-emotion", - "version": "10.0.14", + "version": "10.0.27", "description": "The Next Generation of CSS-in-JS.", "main": "dist/create-emotion.cjs.js", "module": "dist/create-emotion.esm.js", @@ -14,14 +14,14 @@ "test:typescript": "dtslint types" }, "dependencies": { - "@emotion/cache": "^10.0.14", - "@emotion/serialize": "^0.11.8", - "@emotion/sheet": "0.9.3", - "@emotion/utils": "0.11.2" + "@emotion/cache": "^10.0.27", + "@emotion/serialize": "^0.11.15", + "@emotion/sheet": "0.9.4", + "@emotion/utils": "0.11.3" }, "devDependencies": { "babel-plugin-transform-define": "^1.3.0", - "create-emotion-server": "10.0.14", + "create-emotion-server": "10.0.27", "dtslint": "^0.3.0" }, "author": "Kye Hohenberger", @@ -42,4 +42,4 @@ "./dist/create-emotion.cjs.js": "./dist/create-emotion.browser.cjs.js", "./dist/create-emotion.esm.js": "./dist/create-emotion.browser.esm.js" } -} \ No newline at end of file +} diff --git a/packages/css/CHANGELOG.md b/packages/css/CHANGELOG.md index 1ce7a87150..185e48d2ba 100644 --- a/packages/css/CHANGELOG.md +++ b/packages/css/CHANGELOG.md @@ -1,5 +1,15 @@ # @emotion/css +## 10.0.27 + +### Patch Changes + +- [`4c62ae9`](https://github.com/emotion-js/emotion/commit/4c62ae9447959d438928e1a26f76f1487983c968) [#1698](https://github.com/emotion-js/emotion/pull/1698) Thanks [@Andarist](https://github.com/Andarist)! - Add LICENSE file +- Updated dependencies [[`4c62ae9`](https://github.com/emotion-js/emotion/commit/4c62ae9447959d438928e1a26f76f1487983c968)]: + - babel-plugin-emotion@10.0.27 + - @emotion/serialize@0.11.15 + - @emotion/utils@0.11.3 + ## 10.0.22 ### Patch Changes diff --git a/packages/css/package.json b/packages/css/package.json index fd40159e48..92f784418b 100644 --- a/packages/css/package.json +++ b/packages/css/package.json @@ -1,6 +1,6 @@ { "name": "@emotion/css", - "version": "10.0.22", + "version": "10.0.27", "description": "a function to serialize css and object styless", "main": "dist/css.cjs.js", "module": "dist/css.esm.js", @@ -11,9 +11,9 @@ "test:typescript": "dtslint types" }, "dependencies": { - "@emotion/serialize": "^0.11.12", - "@emotion/utils": "0.11.2", - "babel-plugin-emotion": "^10.0.22" + "@emotion/serialize": "^0.11.15", + "@emotion/utils": "0.11.3", + "babel-plugin-emotion": "^10.0.27" }, "devDependencies": { "dtslint": "^0.3.0" diff --git a/packages/emotion-server/CHANGELOG.md b/packages/emotion-server/CHANGELOG.md index fdd7ee7f46..3ef13646fe 100644 --- a/packages/emotion-server/CHANGELOG.md +++ b/packages/emotion-server/CHANGELOG.md @@ -1,5 +1,15 @@ # emotion-server +## 10.0.27 + +### Patch Changes + +- [`4c62ae9`](https://github.com/emotion-js/emotion/commit/4c62ae9447959d438928e1a26f76f1487983c968) [#1698](https://github.com/emotion-js/emotion/pull/1698) Thanks [@Andarist](https://github.com/Andarist)! - Add LICENSE file +- Updated dependencies [[`4c62ae9`](https://github.com/emotion-js/emotion/commit/4c62ae9447959d438928e1a26f76f1487983c968)]: + - babel-plugin-emotion@10.0.27 + - create-emotion-server@10.0.27 + - emotion@10.0.27 + ## 10.0.17 ### Patch Changes diff --git a/packages/emotion-server/package.json b/packages/emotion-server/package.json index 10000e3b22..6f42998d3d 100644 --- a/packages/emotion-server/package.json +++ b/packages/emotion-server/package.json @@ -1,6 +1,6 @@ { "name": "emotion-server", - "version": "10.0.17", + "version": "10.0.27", "description": "Extract and inline critical css with emotion for server side rendering.", "main": "dist/emotion-server.cjs.js", "types": "types/index.d.ts", @@ -13,16 +13,16 @@ "test:typescript": "dtslint types" }, "dependencies": { - "create-emotion-server": "10.0.14" + "create-emotion-server": "10.0.27" }, "peerDependencies": { - "emotion": "^10.0.17" + "emotion": "^10.0.27" }, "devDependencies": { "@types/node": "^10.11.4", - "babel-plugin-emotion": "^10.0.17", + "babel-plugin-emotion": "^10.0.27", "dtslint": "^0.3.0", - "emotion": "^10.0.17" + "emotion": "^10.0.27" }, "author": "Kye Hohenberger", "homepage": "https://emotion.sh", @@ -43,4 +43,4 @@ "browser": { "./dist/emotion-server.cjs.js": "./dist/emotion-server.browser.cjs.js" } -} \ No newline at end of file +} diff --git a/packages/emotion-theming/CHANGELOG.md b/packages/emotion-theming/CHANGELOG.md index d1fc011637..e1ec775488 100644 --- a/packages/emotion-theming/CHANGELOG.md +++ b/packages/emotion-theming/CHANGELOG.md @@ -1,5 +1,15 @@ # emotion-theming +## 10.0.27 + +### Patch Changes + +- [`4c62ae9`](https://github.com/emotion-js/emotion/commit/4c62ae9447959d438928e1a26f76f1487983c968) [#1698](https://github.com/emotion-js/emotion/pull/1698) Thanks [@Andarist](https://github.com/Andarist)! - Add LICENSE file +- Updated dependencies [[`4c62ae9`](https://github.com/emotion-js/emotion/commit/4c62ae9447959d438928e1a26f76f1487983c968)]: + - @emotion/core@10.0.27 + - @emotion/styled@10.0.27 + - @emotion/weak-memoize@0.2.5 + ## 10.0.19 ### Patch Changes diff --git a/packages/emotion-theming/package.json b/packages/emotion-theming/package.json index 0b30d18a0d..236bf31775 100644 --- a/packages/emotion-theming/package.json +++ b/packages/emotion-theming/package.json @@ -1,6 +1,6 @@ { "name": "emotion-theming", - "version": "10.0.19", + "version": "10.0.27", "description": "A CSS-in-JS theming solution, inspired by styled-components", "main": "dist/emotion-theming.cjs.js", "module": "dist/emotion-theming.esm.js", @@ -32,19 +32,19 @@ }, "homepage": "https://emotion.sh", "devDependencies": { - "@emotion/core": "^10.0.17", - "@emotion/styled": "^10.0.17", + "@emotion/core": "^10.0.27", + "@emotion/styled": "^10.0.27", "@types/react": "^16.8.20", "dtslint": "^0.3.0", "react": "^16.5.2" }, "dependencies": { "@babel/runtime": "^7.5.5", - "@emotion/weak-memoize": "0.2.4", + "@emotion/weak-memoize": "0.2.5", "hoist-non-react-statics": "^3.3.0" }, "peerDependencies": { - "@emotion/core": "^10.0.17", + "@emotion/core": "^10.0.27", "react": ">=16.3.0" }, "umd:main": "dist/emotion-theming.umd.min.js", @@ -55,4 +55,4 @@ "preconstruct": { "umdName": "emotionTheming" } -} \ No newline at end of file +} diff --git a/packages/emotion/CHANGELOG.md b/packages/emotion/CHANGELOG.md index 35c98268ee..6060ce5754 100644 --- a/packages/emotion/CHANGELOG.md +++ b/packages/emotion/CHANGELOG.md @@ -1,5 +1,15 @@ # emotion +## 10.0.27 + +### Patch Changes + +- [`4c62ae9`](https://github.com/emotion-js/emotion/commit/4c62ae9447959d438928e1a26f76f1487983c968) [#1698](https://github.com/emotion-js/emotion/pull/1698) Thanks [@Andarist](https://github.com/Andarist)! - Add LICENSE file +- Updated dependencies [[`4c62ae9`](https://github.com/emotion-js/emotion/commit/4c62ae9447959d438928e1a26f76f1487983c968)]: + - babel-plugin-emotion@10.0.27 + - create-emotion@10.0.27 + - @emotion/stylis@0.8.5 + ## 10.0.23 ### Patch Changes diff --git a/packages/emotion/package.json b/packages/emotion/package.json index 7929029aef..e84231d78c 100644 --- a/packages/emotion/package.json +++ b/packages/emotion/package.json @@ -1,6 +1,6 @@ { "name": "emotion", - "version": "10.0.23", + "version": "10.0.27", "description": "The Next Generation of CSS-in-JS.", "main": "dist/emotion.cjs.js", "module": "dist/emotion.esm.js", @@ -17,11 +17,11 @@ "test:typescript": "dtslint types" }, "dependencies": { - "babel-plugin-emotion": "^10.0.23", - "create-emotion": "^10.0.14" + "babel-plugin-emotion": "^10.0.27", + "create-emotion": "^10.0.27" }, "devDependencies": { - "@emotion/stylis": "0.8.4", + "@emotion/stylis": "0.8.5", "babel-plugin-transform-define": "^1.3.0", "dtslint": "^0.3.0", "stylis": "3.5.4", diff --git a/packages/eslint-plugin-emotion/CHANGELOG.md b/packages/eslint-plugin-emotion/CHANGELOG.md index ead4c6a230..032e6fe844 100644 --- a/packages/eslint-plugin-emotion/CHANGELOG.md +++ b/packages/eslint-plugin-emotion/CHANGELOG.md @@ -1,5 +1,11 @@ # eslint-plugin-emotion +## 10.0.27 + +### Patch Changes + +- [`4c62ae9`](https://github.com/emotion-js/emotion/commit/4c62ae9447959d438928e1a26f76f1487983c968) [#1698](https://github.com/emotion-js/emotion/pull/1698) Thanks [@Andarist](https://github.com/Andarist)! - Add LICENSE file + ## 10.0.14 ### Patch Changes diff --git a/packages/eslint-plugin-emotion/package.json b/packages/eslint-plugin-emotion/package.json index ca14073497..486279ef60 100644 --- a/packages/eslint-plugin-emotion/package.json +++ b/packages/eslint-plugin-emotion/package.json @@ -1,6 +1,6 @@ { "name": "eslint-plugin-emotion", - "version": "10.0.14", + "version": "10.0.27", "description": "ESLint rules for emotion", "keywords": [ "eslint", @@ -14,4 +14,4 @@ "node": ">=6" }, "license": "ISC" -} \ No newline at end of file +} diff --git a/packages/hash/CHANGELOG.md b/packages/hash/CHANGELOG.md index 6cdb2bc941..5e223db742 100644 --- a/packages/hash/CHANGELOG.md +++ b/packages/hash/CHANGELOG.md @@ -1,5 +1,11 @@ # @emotion/hash +## 0.7.4 + +### Patch Changes + +- [`4c62ae9`](https://github.com/emotion-js/emotion/commit/4c62ae9447959d438928e1a26f76f1487983c968) [#1698](https://github.com/emotion-js/emotion/pull/1698) Thanks [@Andarist](https://github.com/Andarist)! - Add LICENSE file + ## 0.7.3 ### Patch Changes diff --git a/packages/hash/package.json b/packages/hash/package.json index 1402a0b150..dfcb881d5d 100644 --- a/packages/hash/package.json +++ b/packages/hash/package.json @@ -1,6 +1,6 @@ { "name": "@emotion/hash", - "version": "0.7.3", + "version": "0.7.4", "description": "A MurmurHash2 implementation", "main": "dist/hash.cjs.js", "module": "dist/hash.esm.js", @@ -25,4 +25,4 @@ "./dist/hash.cjs.js": "./dist/hash.browser.cjs.js", "./dist/hash.esm.js": "./dist/hash.browser.esm.js" } -} \ No newline at end of file +} diff --git a/packages/is-prop-valid/CHANGELOG.md b/packages/is-prop-valid/CHANGELOG.md index a6b379e0f8..33e63963c5 100644 --- a/packages/is-prop-valid/CHANGELOG.md +++ b/packages/is-prop-valid/CHANGELOG.md @@ -1,5 +1,13 @@ # @emotion/is-prop-valid +## 0.8.6 + +### Patch Changes + +- [`4c62ae9`](https://github.com/emotion-js/emotion/commit/4c62ae9447959d438928e1a26f76f1487983c968) [#1698](https://github.com/emotion-js/emotion/pull/1698) Thanks [@Andarist](https://github.com/Andarist)! - Add LICENSE file +- Updated dependencies [[`4c62ae9`](https://github.com/emotion-js/emotion/commit/4c62ae9447959d438928e1a26f76f1487983c968)]: + - @emotion/memoize@0.7.4 + ## 0.8.5 ### Patch Changes diff --git a/packages/is-prop-valid/package.json b/packages/is-prop-valid/package.json index 0c2ed5344c..10329ffa4b 100644 --- a/packages/is-prop-valid/package.json +++ b/packages/is-prop-valid/package.json @@ -1,6 +1,6 @@ { "name": "@emotion/is-prop-valid", - "version": "0.8.5", + "version": "0.8.6", "description": "A function to check whether a prop is valid for HTML and SVG elements", "main": "dist/is-prop-valid.cjs.js", "module": "dist/is-prop-valid.esm.js", @@ -14,7 +14,7 @@ "access": "public" }, "dependencies": { - "@emotion/memoize": "0.7.3" + "@emotion/memoize": "0.7.4" }, "devDependencies": { "dtslint": "^0.3.0" diff --git a/packages/jest-emotion/CHANGELOG.md b/packages/jest-emotion/CHANGELOG.md index 6ec27590f6..20d1ea6b63 100644 --- a/packages/jest-emotion/CHANGELOG.md +++ b/packages/jest-emotion/CHANGELOG.md @@ -1,5 +1,14 @@ # jest-emotion +## 10.0.27 + +### Patch Changes + +- [`4c62ae9`](https://github.com/emotion-js/emotion/commit/4c62ae9447959d438928e1a26f76f1487983c968) [#1698](https://github.com/emotion-js/emotion/pull/1698) Thanks [@Andarist](https://github.com/Andarist)! - Add LICENSE file +- Updated dependencies [[`4c62ae9`](https://github.com/emotion-js/emotion/commit/4c62ae9447959d438928e1a26f76f1487983c968)]: + - @emotion/core@10.0.27 + - emotion@10.0.27 + ## 10.0.26 ### Patch Changes diff --git a/packages/jest-emotion/package.json b/packages/jest-emotion/package.json index 7601cb7379..ca95f0a0d7 100644 --- a/packages/jest-emotion/package.json +++ b/packages/jest-emotion/package.json @@ -1,6 +1,6 @@ { "name": "jest-emotion", - "version": "10.0.26", + "version": "10.0.27", "description": "Jest utilities for emotion", "main": "dist/jest-emotion.cjs.js", "types": "types/index.d.ts", @@ -20,9 +20,9 @@ "css": "^2.2.1" }, "devDependencies": { - "@emotion/core": "^10.0.17", + "@emotion/core": "^10.0.27", "dtslint": "^0.3.0", - "emotion": "^10.0.17", + "emotion": "^10.0.27", "enzyme-to-json": "^3.2.1", "preact": "^8.2.9", "preact-render-to-json": "^3.6.6", diff --git a/packages/memoize/CHANGELOG.md b/packages/memoize/CHANGELOG.md index 0ef7c2316e..860bb3cc2b 100644 --- a/packages/memoize/CHANGELOG.md +++ b/packages/memoize/CHANGELOG.md @@ -1,5 +1,11 @@ # @emotion/memoize +## 0.7.4 + +### Patch Changes + +- [`4c62ae9`](https://github.com/emotion-js/emotion/commit/4c62ae9447959d438928e1a26f76f1487983c968) [#1698](https://github.com/emotion-js/emotion/pull/1698) Thanks [@Andarist](https://github.com/Andarist)! - Add LICENSE file + ## 0.7.3 ### Patch Changes diff --git a/packages/memoize/package.json b/packages/memoize/package.json index 46708f0e52..768455d45f 100644 --- a/packages/memoize/package.json +++ b/packages/memoize/package.json @@ -1,6 +1,6 @@ { "name": "@emotion/memoize", - "version": "0.7.3", + "version": "0.7.4", "description": "emotion's memoize utility", "main": "dist/memoize.cjs.js", "module": "dist/memoize.esm.js", @@ -25,4 +25,4 @@ "./dist/memoize.cjs.js": "./dist/memoize.browser.cjs.js", "./dist/memoize.esm.js": "./dist/memoize.browser.esm.js" } -} \ No newline at end of file +} diff --git a/packages/native/CHANGELOG.md b/packages/native/CHANGELOG.md index 75b1407e19..2cc6a9beff 100644 --- a/packages/native/CHANGELOG.md +++ b/packages/native/CHANGELOG.md @@ -1,5 +1,14 @@ # @emotion/native +## 10.0.27 + +### Patch Changes + +- [`4c62ae9`](https://github.com/emotion-js/emotion/commit/4c62ae9447959d438928e1a26f76f1487983c968) [#1698](https://github.com/emotion-js/emotion/pull/1698) Thanks [@Andarist](https://github.com/Andarist)! - Add LICENSE file +- Updated dependencies [[`4c62ae9`](https://github.com/emotion-js/emotion/commit/4c62ae9447959d438928e1a26f76f1487983c968)]: + - emotion-theming@10.0.27 + - @emotion/primitives-core@10.0.27 + ## 10.0.22 ### Patch Changes diff --git a/packages/native/package.json b/packages/native/package.json index 4d156dedac..0c29fa2655 100644 --- a/packages/native/package.json +++ b/packages/native/package.json @@ -1,6 +1,6 @@ { "name": "@emotion/native", - "version": "10.0.22", + "version": "10.0.27", "description": "Style and render React Native components using emotion", "main": "dist/native.cjs.js", "module": "dist/native.esm.js", @@ -9,12 +9,12 @@ "dist" ], "devDependencies": { - "emotion-theming": "^10.0.14", + "emotion-theming": "^10.0.27", "react": "^16.5.2", "react-native": "^0.57.0" }, "dependencies": { - "@emotion/primitives-core": "10.0.22" + "@emotion/primitives-core": "10.0.27" }, "peerDependencies": { "react-native": ">=0.14.0 <1" diff --git a/packages/primitives-core/CHANGELOG.md b/packages/primitives-core/CHANGELOG.md index eab7efa738..bebc17cd98 100644 --- a/packages/primitives-core/CHANGELOG.md +++ b/packages/primitives-core/CHANGELOG.md @@ -1,5 +1,13 @@ # @emotion/primitives-core +## 10.0.27 + +### Patch Changes + +- [`4c62ae9`](https://github.com/emotion-js/emotion/commit/4c62ae9447959d438928e1a26f76f1487983c968) [#1698](https://github.com/emotion-js/emotion/pull/1698) Thanks [@Andarist](https://github.com/Andarist)! - Add LICENSE file +- Updated dependencies [[`4c62ae9`](https://github.com/emotion-js/emotion/commit/4c62ae9447959d438928e1a26f76f1487983c968)]: + - @emotion/core@10.0.27 + ## 10.0.22 ### Patch Changes diff --git a/packages/primitives-core/package.json b/packages/primitives-core/package.json index b793cdbb2e..eaa8c94f52 100644 --- a/packages/primitives-core/package.json +++ b/packages/primitives-core/package.json @@ -1,6 +1,6 @@ { "name": "@emotion/primitives-core", - "version": "10.0.22", + "version": "10.0.27", "description": "Shared utilities for emotion primitives and native", "main": "dist/primitives-core.cjs.js", "module": "dist/primitives-core.esm.js", @@ -13,11 +13,11 @@ "css-to-react-native": "^2.2.1" }, "peerDependencies": { - "@emotion/core": "^10.0.22", + "@emotion/core": "^10.0.27", "react": ">=16.3.0" }, "devDependencies": { - "@emotion/core": "^10.0.22", + "@emotion/core": "^10.0.27", "react": "^16.5.2" }, "homepage": "https://emotion.sh", diff --git a/packages/primitives/CHANGELOG.md b/packages/primitives/CHANGELOG.md index 6b4a2b990f..f362d802cc 100644 --- a/packages/primitives/CHANGELOG.md +++ b/packages/primitives/CHANGELOG.md @@ -1,5 +1,16 @@ # @emotion/primitives +## 10.0.27 + +### Patch Changes + +- [`4c62ae9`](https://github.com/emotion-js/emotion/commit/4c62ae9447959d438928e1a26f76f1487983c968) [#1698](https://github.com/emotion-js/emotion/pull/1698) Thanks [@Andarist](https://github.com/Andarist)! - Add LICENSE file +- Updated dependencies [[`4c62ae9`](https://github.com/emotion-js/emotion/commit/4c62ae9447959d438928e1a26f76f1487983c968)]: + - babel-plugin-emotion@10.0.27 + - emotion-theming@10.0.27 + - @emotion/is-prop-valid@0.8.6 + - @emotion/primitives-core@10.0.27 + ## 10.0.24 ### Patch Changes diff --git a/packages/primitives/package.json b/packages/primitives/package.json index 262a067cee..3d03d43b46 100644 --- a/packages/primitives/package.json +++ b/packages/primitives/package.json @@ -1,6 +1,6 @@ { "name": "@emotion/primitives", - "version": "10.0.24", + "version": "10.0.27", "main": "dist/primitives.cjs.js", "module": "dist/primitives.esm.js", "files": [ @@ -8,16 +8,16 @@ "dist" ], "dependencies": { - "@emotion/is-prop-valid": "0.8.5", - "@emotion/primitives-core": "10.0.22", - "babel-plugin-emotion": "^10.0.23" + "@emotion/is-prop-valid": "0.8.6", + "@emotion/primitives-core": "10.0.27", + "babel-plugin-emotion": "^10.0.27" }, "peerDependencies": { "react": ">=16.3.0", "react-primitives": "^0.7.0" }, "devDependencies": { - "emotion-theming": "^10.0.19", + "emotion-theming": "^10.0.27", "enzyme": "^3.7.0", "enzyme-adapter-react-16": "^1.6.0", "react": "^16.5.2", diff --git a/packages/serialize/CHANGELOG.md b/packages/serialize/CHANGELOG.md index e8687f0e1c..7f7f625b14 100644 --- a/packages/serialize/CHANGELOG.md +++ b/packages/serialize/CHANGELOG.md @@ -1,5 +1,16 @@ # @emotion/serialize +## 0.11.15 + +### Patch Changes + +- [`4c62ae9`](https://github.com/emotion-js/emotion/commit/4c62ae9447959d438928e1a26f76f1487983c968) [#1698](https://github.com/emotion-js/emotion/pull/1698) Thanks [@Andarist](https://github.com/Andarist)! - Add LICENSE file +- Updated dependencies [[`4c62ae9`](https://github.com/emotion-js/emotion/commit/4c62ae9447959d438928e1a26f76f1487983c968)]: + - @emotion/hash@0.7.4 + - @emotion/memoize@0.7.4 + - @emotion/unitless@0.7.5 + - @emotion/utils@0.11.3 + ## 0.11.14 ### Patch Changes diff --git a/packages/serialize/package.json b/packages/serialize/package.json index 79caebecc7..b8d3a8a95b 100644 --- a/packages/serialize/package.json +++ b/packages/serialize/package.json @@ -1,6 +1,6 @@ { "name": "@emotion/serialize", - "version": "0.11.14", + "version": "0.11.15", "description": "serialization utils for emotion", "main": "dist/serialize.cjs.js", "module": "dist/serialize.esm.js", @@ -14,10 +14,10 @@ "test:typescript": "dtslint types" }, "dependencies": { - "@emotion/hash": "0.7.3", - "@emotion/memoize": "0.7.3", - "@emotion/unitless": "0.7.4", - "@emotion/utils": "0.11.2", + "@emotion/hash": "0.7.4", + "@emotion/memoize": "0.7.4", + "@emotion/unitless": "0.7.5", + "@emotion/utils": "0.11.3", "csstype": "^2.5.7" }, "devDependencies": { diff --git a/packages/sheet/CHANGELOG.md b/packages/sheet/CHANGELOG.md index 16101c7c55..26a5c6cd03 100644 --- a/packages/sheet/CHANGELOG.md +++ b/packages/sheet/CHANGELOG.md @@ -1,5 +1,11 @@ # @emotion/sheet +## 0.9.4 + +### Patch Changes + +- [`4c62ae9`](https://github.com/emotion-js/emotion/commit/4c62ae9447959d438928e1a26f76f1487983c968) [#1698](https://github.com/emotion-js/emotion/pull/1698) Thanks [@Andarist](https://github.com/Andarist)! - Add LICENSE file + ## 0.9.3 ### Patch Changes diff --git a/packages/sheet/package.json b/packages/sheet/package.json index 6c64b31cd8..6156451fb5 100644 --- a/packages/sheet/package.json +++ b/packages/sheet/package.json @@ -1,6 +1,6 @@ { "name": "@emotion/sheet", - "version": "0.9.3", + "version": "0.9.4", "description": "emotion's stylesheet", "main": "dist/sheet.cjs.js", "module": "dist/sheet.esm.js", @@ -25,4 +25,4 @@ "devDependencies": { "dtslint": "^0.3.0" } -} \ No newline at end of file +} diff --git a/packages/styled-base/CHANGELOG.md b/packages/styled-base/CHANGELOG.md index 5aaaa0908f..7887433869 100644 --- a/packages/styled-base/CHANGELOG.md +++ b/packages/styled-base/CHANGELOG.md @@ -1,5 +1,16 @@ # @emotion/styled-base +## 10.0.27 + +### Patch Changes + +- [`4c62ae9`](https://github.com/emotion-js/emotion/commit/4c62ae9447959d438928e1a26f76f1487983c968) [#1698](https://github.com/emotion-js/emotion/pull/1698) Thanks [@Andarist](https://github.com/Andarist)! - Add LICENSE file +- Updated dependencies [[`4c62ae9`](https://github.com/emotion-js/emotion/commit/4c62ae9447959d438928e1a26f76f1487983c968)]: + - @emotion/core@10.0.27 + - @emotion/is-prop-valid@0.8.6 + - @emotion/serialize@0.11.15 + - @emotion/utils@0.11.3 + ## 10.0.24 ### Patch Changes diff --git a/packages/styled-base/package.json b/packages/styled-base/package.json index b1f663a9fa..0527329fe2 100644 --- a/packages/styled-base/package.json +++ b/packages/styled-base/package.json @@ -1,6 +1,6 @@ { "name": "@emotion/styled-base", - "version": "10.0.24", + "version": "10.0.27", "description": "base styled API for emotion", "main": "dist/styled-base.cjs.js", "module": "dist/styled-base.esm.js", @@ -16,18 +16,18 @@ }, "dependencies": { "@babel/runtime": "^7.5.5", - "@emotion/is-prop-valid": "0.8.5", - "@emotion/serialize": "^0.11.14", - "@emotion/utils": "0.11.2" + "@emotion/is-prop-valid": "0.8.6", + "@emotion/serialize": "^0.11.15", + "@emotion/utils": "0.11.3" }, "devDependencies": { - "@emotion/core": "^10.0.22", + "@emotion/core": "^10.0.27", "@types/react": "^16.8.20", "dtslint": "^0.3.0", "react": "^16.5.2" }, "peerDependencies": { - "@emotion/core": "^10.0.22", + "@emotion/core": "^10.0.27", "react": ">=16.3.0" }, "publishConfig": { diff --git a/packages/styled/CHANGELOG.md b/packages/styled/CHANGELOG.md index 158ae2e406..d2b1c1779f 100644 --- a/packages/styled/CHANGELOG.md +++ b/packages/styled/CHANGELOG.md @@ -1,5 +1,15 @@ # @emotion/styled +## 10.0.27 + +### Patch Changes + +- [`4c62ae9`](https://github.com/emotion-js/emotion/commit/4c62ae9447959d438928e1a26f76f1487983c968) [#1698](https://github.com/emotion-js/emotion/pull/1698) Thanks [@Andarist](https://github.com/Andarist)! - Add LICENSE file +- Updated dependencies [[`4c62ae9`](https://github.com/emotion-js/emotion/commit/4c62ae9447959d438928e1a26f76f1487983c968)]: + - babel-plugin-emotion@10.0.27 + - @emotion/core@10.0.27 + - @emotion/styled-base@10.0.27 + ## 10.0.23 ### Patch Changes diff --git a/packages/styled/package.json b/packages/styled/package.json index 9cc55c9a71..2d2e788d9d 100644 --- a/packages/styled/package.json +++ b/packages/styled/package.json @@ -1,6 +1,6 @@ { "name": "@emotion/styled", - "version": "10.0.23", + "version": "10.0.27", "description": "styled API for emotion", "main": "dist/styled.cjs.js", "module": "dist/styled.esm.js", @@ -11,16 +11,16 @@ "test:typescript": "dtslint types" }, "dependencies": { - "@emotion/styled-base": "^10.0.23", - "babel-plugin-emotion": "^10.0.23" + "@emotion/styled-base": "^10.0.27", + "babel-plugin-emotion": "^10.0.27" }, "devDependencies": { - "@emotion/core": "^10.0.22", + "@emotion/core": "^10.0.27", "dtslint": "^0.3.0", "react": "^16.5.2" }, "peerDependencies": { - "@emotion/core": "^10.0.22", + "@emotion/core": "^10.0.27", "react": ">=16.3.0" }, "publishConfig": { diff --git a/packages/stylis/CHANGELOG.md b/packages/stylis/CHANGELOG.md index 1e048f1206..d6378a3748 100644 --- a/packages/stylis/CHANGELOG.md +++ b/packages/stylis/CHANGELOG.md @@ -1,5 +1,11 @@ # @emotion/stylis +## 0.8.5 + +### Patch Changes + +- [`4c62ae9`](https://github.com/emotion-js/emotion/commit/4c62ae9447959d438928e1a26f76f1487983c968) [#1698](https://github.com/emotion-js/emotion/pull/1698) Thanks [@Andarist](https://github.com/Andarist)! - Add LICENSE file + ## 0.8.4 ### Patch Changes diff --git a/packages/stylis/package.json b/packages/stylis/package.json index 76a059655b..1fe8319621 100644 --- a/packages/stylis/package.json +++ b/packages/stylis/package.json @@ -1,6 +1,6 @@ { "name": "@emotion/stylis", - "version": "0.8.4", + "version": "0.8.5", "description": "A custom build of Stylis", "main": "dist/stylis.cjs.js", "module": "dist/stylis.esm.js", @@ -29,4 +29,4 @@ "./dist/stylis.cjs.js": "./dist/stylis.browser.cjs.js", "./dist/stylis.esm.js": "./dist/stylis.browser.esm.js" } -} \ No newline at end of file +} diff --git a/packages/unitless/CHANGELOG.md b/packages/unitless/CHANGELOG.md index 81972bed91..71b2eff220 100644 --- a/packages/unitless/CHANGELOG.md +++ b/packages/unitless/CHANGELOG.md @@ -1,5 +1,11 @@ # @emotion/unitless +## 0.7.5 + +### Patch Changes + +- [`4c62ae9`](https://github.com/emotion-js/emotion/commit/4c62ae9447959d438928e1a26f76f1487983c968) [#1698](https://github.com/emotion-js/emotion/pull/1698) Thanks [@Andarist](https://github.com/Andarist)! - Add LICENSE file + ## 0.7.4 ### Patch Changes diff --git a/packages/unitless/package.json b/packages/unitless/package.json index c1ff720155..60082a20ca 100644 --- a/packages/unitless/package.json +++ b/packages/unitless/package.json @@ -1,6 +1,6 @@ { "name": "@emotion/unitless", - "version": "0.7.4", + "version": "0.7.5", "description": "An object of css properties that don't accept values with units", "main": "dist/unitless.cjs.js", "module": "dist/unitless.esm.js", @@ -17,4 +17,4 @@ "./dist/unitless.cjs.js": "./dist/unitless.browser.cjs.js", "./dist/unitless.esm.js": "./dist/unitless.browser.esm.js" } -} \ No newline at end of file +} diff --git a/packages/utils/CHANGELOG.md b/packages/utils/CHANGELOG.md index 4745ff2465..c17fa40ba1 100644 --- a/packages/utils/CHANGELOG.md +++ b/packages/utils/CHANGELOG.md @@ -1,5 +1,11 @@ # @emotion/utils +## 0.11.3 + +### Patch Changes + +- [`4c62ae9`](https://github.com/emotion-js/emotion/commit/4c62ae9447959d438928e1a26f76f1487983c968) [#1698](https://github.com/emotion-js/emotion/pull/1698) Thanks [@Andarist](https://github.com/Andarist)! - Add LICENSE file + ## 0.11.2 ### Patch Changes diff --git a/packages/utils/package.json b/packages/utils/package.json index aac4df006a..459942d96d 100644 --- a/packages/utils/package.json +++ b/packages/utils/package.json @@ -1,6 +1,6 @@ { "name": "@emotion/utils", - "version": "0.11.2", + "version": "0.11.3", "description": "internal utils for emotion", "main": "dist/utils.cjs.js", "module": "dist/utils.esm.js", @@ -25,4 +25,4 @@ "devDependencies": { "dtslint": "^0.3.0" } -} \ No newline at end of file +} diff --git a/packages/weak-memoize/CHANGELOG.md b/packages/weak-memoize/CHANGELOG.md index 56de8a529b..45c1da64a7 100644 --- a/packages/weak-memoize/CHANGELOG.md +++ b/packages/weak-memoize/CHANGELOG.md @@ -1,5 +1,11 @@ # @emotion/weak-memoize +## 0.2.5 + +### Patch Changes + +- [`4c62ae9`](https://github.com/emotion-js/emotion/commit/4c62ae9447959d438928e1a26f76f1487983c968) [#1698](https://github.com/emotion-js/emotion/pull/1698) Thanks [@Andarist](https://github.com/Andarist)! - Add LICENSE file + ## 0.2.4 ### Patch Changes diff --git a/packages/weak-memoize/package.json b/packages/weak-memoize/package.json index b3f4bdeeac..1de384f772 100644 --- a/packages/weak-memoize/package.json +++ b/packages/weak-memoize/package.json @@ -1,6 +1,6 @@ { "name": "@emotion/weak-memoize", - "version": "0.2.4", + "version": "0.2.5", "description": "A memoization function that uses a WeakMap", "main": "dist/weak-memoize.cjs.js", "module": "dist/weak-memoize.esm.js", @@ -25,4 +25,4 @@ "./dist/weak-memoize.cjs.js": "./dist/weak-memoize.browser.cjs.js", "./dist/weak-memoize.esm.js": "./dist/weak-memoize.browser.esm.js" } -} \ No newline at end of file +} From 117c6e42687cdcb773153f7400c5a430f228aa73 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mateusz=20Burzy=C5=84ski?= Date: Tue, 31 Dec 2019 05:34:29 +0100 Subject: [PATCH 03/12] Update .changeset/README.md to current default template from changesets (#1704) --- .changeset/README.md | 38 +++++--------------------------------- 1 file changed, 5 insertions(+), 33 deletions(-) diff --git a/.changeset/README.md b/.changeset/README.md index 26f218eda3..4f3b76b096 100644 --- a/.changeset/README.md +++ b/.changeset/README.md @@ -1,36 +1,8 @@ # Changesets -Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works with `bolt` to help you release components from a mono-repository. You can find the full documentation for it [here](https://www.npmjs.com/package/@changesets/cli) +Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works +with multi-package repos, or single-package repos to help you version and publish your code. You can +find the full documentation for it [in our repository](https://github.com/changesets/changesets) -To help you get started though, here are some things you should know about this folder: - -## Changesets are automatically generated - -Changesets are generated by the `yarn changeset` or `npx changeset` command. As long as you are following a changeset release flow, you shouldn't have any problems. - -## Each changeset is its own folder - -We use hashes by default for these folder names to avoid collisions when generating them, but there's no harm that will come from renaming them. - -## Changesets are automatically removed - -When `changeset bump` or equivalent command is run, all the changeset folders are removed. This is so we only ever use a changeset once. This makes this a very bad place to store any other information. - -## Changesets come in two parts - -You should treat these parts quite differently: - -- `changes.md` is a file you should feel free to edit as much as you want. It will be prepended to your changelog when you next run your version command. -- `changes.json` is a file that includes information about releases, what should be versioned by the version command. We strongly recommend against editing this directly, as you may make a new changeset that puts your bolt repository into an invalid state. - -## I want to edit the information in a `changes.json` - how do I do it safely? - -The best option is to make a new changeset using the changeset command, copy over the `changes.md`, then delete the old changeset. - -## Can I rename the folder for my changeset? - -Absolutely! We need unique hashes to make changesets play nicely with git, but changing your folder from our hash to your own name isn't going to cause any problems. - -## Can I manually delete changesets? - -You can, but you should be aware this will remove the intent to release communicated by the changeset, and should be done with caution. +We have a quick list of common questions to get you started engaging with this project in +[our documentation](https://github.com/changesets/changesets/blob/master/docs/common-questions.md) From d0b2a94ab9d5648667447dbd78e7a2e3e93de42a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mateusz=20Burzy=C5=84ski?= Date: Wed, 15 Jan 2020 12:34:12 +0100 Subject: [PATCH 04/12] Fixed label extraction from the stack traces in FireFox and Safari (#1714) --- .changeset/twelve-rocks-visit.md | 5 +++++ packages/core/src/jsx.js | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 .changeset/twelve-rocks-visit.md diff --git a/.changeset/twelve-rocks-visit.md b/.changeset/twelve-rocks-visit.md new file mode 100644 index 0000000000..f96b0c190f --- /dev/null +++ b/.changeset/twelve-rocks-visit.md @@ -0,0 +1,5 @@ +--- +'@emotion/core': patch +--- + +Fixed label extraction from the stack traces in FireFox and Safari. We have failed to match a label in Emotion wrappers like Theme UI which caused SSR mismatches in mentioned browsers. This has affected only development builds. diff --git a/packages/core/src/jsx.js b/packages/core/src/jsx.js index 8a014f2c66..1e3ceeeff1 100644 --- a/packages/core/src/jsx.js +++ b/packages/core/src/jsx.js @@ -158,7 +158,7 @@ export const jsx: typeof React.createElement = function( ) if (!match) { // safari and firefox - match = error.stack.match(/^.*\n([A-Z][A-Za-z$]+)@/) + match = error.stack.match(/.*\n([A-Z][A-Za-z$]+)@/) } if (match) { newProps[labelPropName] = sanitizeIdentifier(match[1]) From 6b093f2693faadd74a6dc19e120c8b6f420ade5e Mon Sep 17 00:00:00 2001 From: Martin Jujou Date: Sat, 1 Feb 2020 07:41:10 +1100 Subject: [PATCH 05/12] Update in the wild list (#1737) We have been using emotion for a while now at Domain group (Australia's best Property site !!) Thought it would be good to add to "In the wild" list --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index f5933c8ca7..a6b2d34242 100644 --- a/README.md +++ b/README.md @@ -102,6 +102,7 @@ Look here 👉 _[emotion babel plugin feature table and documentation](https://g - [zefenify.com](https://zefenify.com/about.html) - [sentry.io](https://sentry.io) - [comparett.com](https://comparett.com) +- [Domain.com.au](https://www.domain.com.au) ## Contributors From 13e61995bcb6fb8dbfdc4b0fc8dfa5ecb90f6150 Mon Sep 17 00:00:00 2001 From: Dmitry Zherebko Date: Fri, 31 Jan 2020 22:42:23 +0200 Subject: [PATCH 06/12] Update README.md (#1747) We have been using emotion for our product ui around 2 years. Thanks for awesome library Co-authored-by: Mitchell Hamilton --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index a6b2d34242..5ecc468de7 100644 --- a/README.md +++ b/README.md @@ -103,6 +103,7 @@ Look here 👉 _[emotion babel plugin feature table and documentation](https://g - [sentry.io](https://sentry.io) - [comparett.com](https://comparett.com) - [Domain.com.au](https://www.domain.com.au) +- [cyberhaven.com](https://cyberhaven.com) ## Contributors From 92c111c78d0300f5fadea95acdc7f40f24fe2fdc Mon Sep 17 00:00:00 2001 From: Minh Duc Nguyen <43942957+minhduc-nguyen@users.noreply.github.com> Date: Wed, 12 Feb 2020 18:09:09 +1100 Subject: [PATCH 07/12] Add CommercialRealEstate.com.au to list (#1758) --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 5ecc468de7..567425f929 100644 --- a/README.md +++ b/README.md @@ -104,6 +104,7 @@ Look here 👉 _[emotion babel plugin feature table and documentation](https://g - [comparett.com](https://comparett.com) - [Domain.com.au](https://www.domain.com.au) - [cyberhaven.com](https://cyberhaven.com) +- [CommercialRealEstate.com.au](https://www.commercialrealestate.com.au) ## Contributors From 2f608a2e038d9a3c21dc506fc19c6786b24a4bec Mon Sep 17 00:00:00 2001 From: Csaba Palfi Date: Sat, 15 Feb 2020 10:59:21 +0000 Subject: [PATCH 08/12] Fix circuit-ui github and Storybook link (#1763) --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 567425f929..3078dcc72c 100644 --- a/README.md +++ b/README.md @@ -71,7 +71,7 @@ Look here 👉 _[emotion babel plugin feature table and documentation](https://g - [emotion website](site) [[Demo Here](https://emotion.sh)] - [next-hnpwa-guide-kit](https://github.com/tkh44/next-hnpwa-guide-kit) [[Demo Here](https://hnpwa.life)] - [reactivesearch](https://github.com/appbaseio/reactivesearch), a react UI library for Elasticsearch [[Website](https://opensource.appbase.io/reactivesearch/)] -- [circuit-ui](https://github.com/sumup/circuit-ui), a react component library built at SumUp [[Storybook](https://sumup.github.io/circuit-ui/)] +- [circuit-ui](https://github.com/sumup-oss/circuit-ui), a react component library built at SumUp [[Storybook](https://circuit.sumup.com/?path=/story/introduction-welcome--page)] - **open a PR and add yours!** ### Ecosystem From 4dfe55811a25bf66306aee46f7f0d6c909004c42 Mon Sep 17 00:00:00 2001 From: Norbert de Langen Date: Wed, 26 Feb 2020 21:43:38 +0100 Subject: [PATCH 09/12] Do not duplicate target and label properties (#1731) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * ADD test * FIX babel visitor to never duplicate properties we want to add && FIX snapshot * CLEANUP snapshot (after removing react dependency in fixture) * ADD changeset * FIX error is test * Update .changeset/breezy-tools-reflect.md Co-Authored-By: Mateusz Burzyński * simplify the extra babel-plugin injection * CHANGE to use knownProperties array * CLEANUP fixture of unneeded assignment && FIX snapshot * FIX review comments ADD back the const declaration CHANGE getKnownProperties to accept only 1 arguments * Avoid adding #__PURE__ comment unnecessarily * Use set instead of an array to keep knownProperties + handle more property types * fix tests Co-authored-by: Mateusz Burzyński --- .changeset/breezy-tools-reflect.md | 5 +++ .../__fixtures__/core-with-component.js | 6 ++++ .../__tests__/__snapshots__/index.js.snap | 34 +++++++++++++++++++ .../babel-plugin-emotion/__tests__/index.js | 4 ++- .../babel-plugin-emotion/src/css-macro.js | 8 ++--- .../babel-plugin-emotion/src/emotion-macro.js | 2 +- .../babel-plugin-emotion/src/styled-macro.js | 2 +- .../src/utils/get-styled-options.js | 33 +++++++++++++----- .../utils/transform-expression-with-styles.js | 12 ++----- 9 files changed, 80 insertions(+), 26 deletions(-) create mode 100644 .changeset/breezy-tools-reflect.md create mode 100644 packages/babel-plugin-emotion/__tests__/__fixtures__/core-with-component.js diff --git a/.changeset/breezy-tools-reflect.md b/.changeset/breezy-tools-reflect.md new file mode 100644 index 0000000000..b9facfc23f --- /dev/null +++ b/.changeset/breezy-tools-reflect.md @@ -0,0 +1,5 @@ +--- +'babel-plugin-emotion': patch +--- + +Fixed an issue with adding `label` & `target` options to `styled`-related calls when those properties were already set, causing those properties to be duplicated. This could have happened for example when transpiling already transpiled code or when providing those options manually (latter being less likely). diff --git a/packages/babel-plugin-emotion/__tests__/__fixtures__/core-with-component.js b/packages/babel-plugin-emotion/__tests__/__fixtures__/core-with-component.js new file mode 100644 index 0000000000..9985981ae0 --- /dev/null +++ b/packages/babel-plugin-emotion/__tests__/__fixtures__/core-with-component.js @@ -0,0 +1,6 @@ +// @flow +import styled from '@emotion/styled' + +const MyComponent = styled.div({ color: 'hotpink' }) + +const OtherComponent = MyComponent.withComponent('section') diff --git a/packages/babel-plugin-emotion/__tests__/__snapshots__/index.js.snap b/packages/babel-plugin-emotion/__tests__/__snapshots__/index.js.snap index f47a48294a..7bddbcf407 100644 --- a/packages/babel-plugin-emotion/__tests__/__snapshots__/index.js.snap +++ b/packages/babel-plugin-emotion/__tests__/__snapshots__/index.js.snap @@ -1,5 +1,39 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP +exports[`@emotion/babel-plugin-core core-with-component 1`] = ` +"// @flow +import styled from '@emotion/styled' + +const MyComponent = styled.div({ color: 'hotpink' }) + +const OtherComponent = MyComponent.withComponent('section') + + + ↓ ↓ ↓ ↓ ↓ ↓ + +import _styled from \\"@emotion/styled-base\\"; + +function _EMOTION_STRINGIFIED_CSS_ERROR__() { return \\"You have tried to stringify object returned from \`css\` function. It isn't supposed to be used directly (e.g. as value of the \`className\` prop), but rather handed to emotion so it can handle it (e.g. as value of \`css\` prop).\\"; } + +const MyComponent = _styled(\\"div\\", { + target: \\"ema3wqd0\\", + label: \\"MyComponent\\" +})(process.env.NODE_ENV === \\"production\\" ? { + name: \\"1lrxbo5\\", + styles: \\"color:hotpink;\\" +} : { + name: \\"1lrxbo5\\", + styles: \\"color:hotpink;\\", + map: \\"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImNvcmUtd2l0aC1jb21wb25lbnQuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBR29CIiwiZmlsZSI6ImNvcmUtd2l0aC1jb21wb25lbnQuanMiLCJzb3VyY2VzQ29udGVudCI6WyIvLyBAZmxvd1xuaW1wb3J0IHN0eWxlZCBmcm9tICdAZW1vdGlvbi9zdHlsZWQnXG5cbmNvbnN0IE15Q29tcG9uZW50ID0gc3R5bGVkLmRpdih7IGNvbG9yOiAnaG90cGluaycgfSlcblxuY29uc3QgT3RoZXJDb21wb25lbnQgPSBNeUNvbXBvbmVudC53aXRoQ29tcG9uZW50KCdzZWN0aW9uJylcbiJdfQ== */\\", + toString: _EMOTION_STRINGIFIED_CSS_ERROR__ +}); + +const OtherComponent = MyComponent.withComponent('section', { + target: \\"ema3wqd1\\", + label: \\"OtherComponent\\" +});" +`; + exports[`@emotion/babel-plugin-core core-with-css-import 1`] = ` "/** @jsx jsx */ import { jsx, css } from '@emotion/core' diff --git a/packages/babel-plugin-emotion/__tests__/index.js b/packages/babel-plugin-emotion/__tests__/index.js index 21bcf48e78..3a75e5d793 100644 --- a/packages/babel-plugin-emotion/__tests__/index.js +++ b/packages/babel-plugin-emotion/__tests__/index.js @@ -2,5 +2,7 @@ import babelTester from 'babel-tester' import plugin from 'babel-plugin-emotion' babelTester('@emotion/babel-plugin-core', __dirname, { - plugins: [plugin] + // we add a duplicate of our own plugin + // users may run babel twice, and our plugin should be smart enough to not duplicate fields + plugins: [plugin, [plugin, undefined, 'emotion-copy']] }) diff --git a/packages/babel-plugin-emotion/src/css-macro.js b/packages/babel-plugin-emotion/src/css-macro.js index 9a74016d34..476b646750 100644 --- a/packages/babel-plugin-emotion/src/css-macro.js +++ b/packages/babel-plugin-emotion/src/css-macro.js @@ -14,7 +14,7 @@ export const transformCssCallExpression = ({ path: *, sourceMap?: string }) => { - let { node, isPure } = transformExpressionWithStyles({ + let node = transformExpressionWithStyles({ babel, state, path, @@ -23,10 +23,8 @@ export const transformCssCallExpression = ({ }) if (node) { path.replaceWith(node) - if (isPure) { - path.hoist() - } - } else { + path.hoist() + } else if (path.isCallExpression()) { path.addComment('leading', '#__PURE__') } } diff --git a/packages/babel-plugin-emotion/src/emotion-macro.js b/packages/babel-plugin-emotion/src/emotion-macro.js index a82c7df900..fe53db59d5 100644 --- a/packages/babel-plugin-emotion/src/emotion-macro.js +++ b/packages/babel-plugin-emotion/src/emotion-macro.js @@ -28,7 +28,7 @@ export let createEmotionMacro = (instancePath: string) => if (isPure) { path.addComment('leading', '#__PURE__') } - let { node } = transformExpressionWithStyles({ + let node = transformExpressionWithStyles({ babel, state, path, diff --git a/packages/babel-plugin-emotion/src/styled-macro.js b/packages/babel-plugin-emotion/src/styled-macro.js index a1d4ca7c55..be3e5be96b 100644 --- a/packages/babel-plugin-emotion/src/styled-macro.js +++ b/packages/babel-plugin-emotion/src/styled-macro.js @@ -77,7 +77,7 @@ export let createStyledMacro = ({ } if (reference.parentPath && reference.parentPath.parentPath) { const styledCallPath = reference.parentPath.parentPath - let { node } = transformExpressionWithStyles({ + let node = transformExpressionWithStyles({ path: styledCallPath, state, babel, diff --git a/packages/babel-plugin-emotion/src/utils/get-styled-options.js b/packages/babel-plugin-emotion/src/utils/get-styled-options.js index 8a4e1f1ad2..e76a7fa795 100644 --- a/packages/babel-plugin-emotion/src/utils/get-styled-options.js +++ b/packages/babel-plugin-emotion/src/utils/get-styled-options.js @@ -2,22 +2,39 @@ import { getLabelFromPath } from './label' import { getTargetClassName } from './get-target-class-name' +const getKnownProperties = (t: *, node: *) => + new Set( + node.properties + .filter(n => t.isObjectProperty(n) && !n.computed) + .map(n => (t.isIdentifier(n.key) ? n.key.name : n.key.value)) + ) + export let getStyledOptions = (t: *, path: *, state: *) => { - let properties = [ - t.objectProperty( - t.identifier('target'), - t.stringLiteral(getTargetClassName(state, t)) + let args = path.node.arguments + let optionsArgument = args.length >= 2 ? args[1] : null + + let properties = [] + let knownProperties = + optionsArgument && t.isObjectExpression(optionsArgument) + ? getKnownProperties(t, optionsArgument) + : new Set() + + if (!knownProperties.has('target')) { + properties.push( + t.objectProperty( + t.identifier('target'), + t.stringLiteral(getTargetClassName(state, t)) + ) ) - ] + } + let label = getLabelFromPath(path, state, t) - if (label) { + if (label && !knownProperties.has('label')) { properties.push( t.objectProperty(t.identifier('label'), t.stringLiteral(label)) ) } - let args = path.node.arguments - let optionsArgument = args.length >= 2 ? args[1] : null if (optionsArgument) { if (!t.isObjectExpression(optionsArgument)) { return t.callExpression(state.file.addHelper('extends'), [ diff --git a/packages/babel-plugin-emotion/src/utils/transform-expression-with-styles.js b/packages/babel-plugin-emotion/src/utils/transform-expression-with-styles.js index 412c8dc733..339ca8dd7c 100644 --- a/packages/babel-plugin-emotion/src/utils/transform-expression-with-styles.js +++ b/packages/babel-plugin-emotion/src/utils/transform-expression-with-styles.js @@ -42,7 +42,7 @@ export let transformExpressionWithStyles = ({ path: *, shouldLabel: boolean, sourceMap?: string -}): { node?: *, isPure: boolean } => { +}): * => { let t = babel.types if (t.isTaggedTemplateExpression(path)) { const expressions = getExpressionsFromTemplateLiteral(path.node.quasi, t) @@ -64,12 +64,7 @@ export let transformExpressionWithStyles = ({ } } - let isPure = true - path.get('arguments').forEach(node => { - if (!node.isPure()) { - isPure = false - } if (t.isObjectExpression(node)) { node.replaceWith(simplifyObject(node.node, t)) } @@ -125,7 +120,7 @@ export let transformExpressionWithStyles = ({ node = createSourceMapConditional(t, prodNode, devNode) } - return { node, isPure: true } + return node } if (sourceMap) { let lastIndex = path.node.arguments.length - 1 @@ -162,8 +157,5 @@ export let transformExpressionWithStyles = ({ path.node.arguments.push(sourceMapConditional) } } - - return { node: undefined, isPure } } - return { node: undefined, isPure: false } } From 12141c54318c0738b60bf755e033cf6e12238a02 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ben=20Z=C3=B6rb?= Date: Thu, 27 Feb 2020 00:11:37 +0100 Subject: [PATCH 10/12] Add inert to the list of valid props (#1736) Co-authored-by: Mitchell Hamilton --- .changeset/six-cows-tie.md | 5 +++++ packages/is-prop-valid/src/props.js | 2 ++ 2 files changed, 7 insertions(+) create mode 100644 .changeset/six-cows-tie.md diff --git a/.changeset/six-cows-tie.md b/.changeset/six-cows-tie.md new file mode 100644 index 0000000000..8bae3f2e07 --- /dev/null +++ b/.changeset/six-cows-tie.md @@ -0,0 +1,5 @@ +--- +'@emotion/is-prop-valid': patch +--- + +Adds inert to the list of allowed props diff --git a/packages/is-prop-valid/src/props.js b/packages/is-prop-valid/src/props.js index 1c5e2f10ff..dddb416736 100644 --- a/packages/is-prop-valid/src/props.js +++ b/packages/is-prop-valid/src/props.js @@ -184,6 +184,8 @@ const props = { autoSave: true, // color is for Safari mask-icon link color: true, + // https://html.spec.whatwg.org/multipage/interaction.html#inert + inert: true, // itemProp, itemScope, itemType are for // Microdata support. See http://schema.org/docs/gs.html itemProp: true, From af07afbe5a887be82f72a12fd6cd1673a32f5263 Mon Sep 17 00:00:00 2001 From: Mansour Kheffache Date: Thu, 27 Feb 2020 18:19:35 +0100 Subject: [PATCH 11/12] Push source maps & labels to cooked/raw arrays in TS-transpiled tagged template expressions with interpolations (#1761) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * check for strings length before performing check * Fix detecting template expressions with interpolations transpiled by TS * Add changeset * update snapshots * tweak changeset Co-authored-by: Mateusz Burzyński --- .changeset/olive-papayas-flow.md | 5 ++ .../css-requires-options.js.snap | 24 ++++++++++ .../__tests__/__snapshots__/css.js.snap | 41 +++++++++++++++-- ...el-transpiled-by-ts-with-interpolations.js | 14 ++++++ .../__fixtures__/label-transpiled-by-ts.js | 2 +- .../css-macro/__snapshots__/index.js.snap | 41 +++++++++++++++-- .../__tests__/css-requires-options.js | 25 +++++++++- ...ss-transpiled-by-ts-with-interpolations.js | 14 ++++++ .../__fixtures__/css-transpiled-by-ts.js | 1 - .../source-maps/__snapshots__/index.js.snap | 37 ++++++++++++++- .../babel-plugin-emotion/src/utils/checks.js | 27 ----------- .../babel-plugin-emotion/src/utils/strings.js | 27 +++++------ .../utils/transform-expression-with-styles.js | 46 +++++++++++-------- .../src/utils/ts-output-utils.js | 25 ++++++++++ 14 files changed, 260 insertions(+), 69 deletions(-) create mode 100644 .changeset/olive-papayas-flow.md create mode 100644 packages/babel-plugin-emotion/__tests__/css-macro/__fixtures__/label-transpiled-by-ts-with-interpolations.js create mode 100644 packages/babel-plugin-emotion/__tests__/source-maps/__fixtures__/css-transpiled-by-ts-with-interpolations.js delete mode 100644 packages/babel-plugin-emotion/src/utils/checks.js create mode 100644 packages/babel-plugin-emotion/src/utils/ts-output-utils.js diff --git a/.changeset/olive-papayas-flow.md b/.changeset/olive-papayas-flow.md new file mode 100644 index 0000000000..42345ee71a --- /dev/null +++ b/.changeset/olive-papayas-flow.md @@ -0,0 +1,5 @@ +--- +'babel-plugin-emotion': patch +--- + +Push source maps & labels to cooked/raw arrays in TS-transpiled tagged template expressions containing interpolations. This is a case not covered previously by [#1538](https://github.com/emotion-js/emotion/pull/1538). diff --git a/packages/babel-plugin-emotion/__tests__/__snapshots__/css-requires-options.js.snap b/packages/babel-plugin-emotion/__tests__/__snapshots__/css-requires-options.js.snap index 5a776b4aab..cb73f2007b 100644 --- a/packages/babel-plugin-emotion/__tests__/__snapshots__/css-requires-options.js.snap +++ b/packages/babel-plugin-emotion/__tests__/__snapshots__/css-requires-options.js.snap @@ -112,11 +112,24 @@ let cls = /*#__PURE__*/_css(process.env.NODE_ENV === 'production' ? { });" `; +exports[`babel css inline babel 6 label on code transpiled by TS (with interpolations) 1`] = ` +"import _css from '@emotion/css'; + +import { __makeTemplateObject } from 'tslib'; + +import { hoverStyles } from './styles'; + +var templateObject_1; + +const someVar = /*#__PURE__*/_css(templateObject_1 || (templateObject_1 = __makeTemplateObject(['\\\\n color: hotpink;\\\\n;label:someVar;'], ['\\\\n color: hotpink;\\\\n;label:someVar;'])), hoverStyles);" +`; + exports[`babel css inline babel 6 label on code transpiled by TS 1`] = ` "import _css from '@emotion/css'; import { __makeTemplateObject } from 'tslib'; + var templateObject_1; const someVar = /*#__PURE__*/_css(templateObject_1 || (templateObject_1 = __makeTemplateObject(['\\\\n color: hotpink;\\\\n;label:someVar;'], ['\\\\n color: hotpink;\\\\n;label:someVar;'])));" @@ -245,6 +258,17 @@ _css(process.env.NODE_ENV === \\"production\\" ? { });" `; +exports[`babel css inline babel 7 label on code transpiled by TS (with interpolations) 1`] = ` +"import _css from \\"@emotion/css\\"; +import { __makeTemplateObject } from 'tslib'; +import { hoverStyles } from './styles'; +var templateObject_1; + +const someVar = +/*#__PURE__*/ +_css(templateObject_1 || (templateObject_1 = __makeTemplateObject([\\"\\\\n color: hotpink;\\\\n;label:someVar;\\"], [\\"\\\\n color: hotpink;\\\\n;label:someVar;\\"])), hoverStyles);" +`; + exports[`babel css inline babel 7 label on code transpiled by TS 1`] = ` "import _css from \\"@emotion/css\\"; import { __makeTemplateObject } from 'tslib'; diff --git a/packages/babel-plugin-emotion/__tests__/__snapshots__/css.js.snap b/packages/babel-plugin-emotion/__tests__/__snapshots__/css.js.snap index 093afb41f2..334bb3139f 100644 --- a/packages/babel-plugin-emotion/__tests__/__snapshots__/css.js.snap +++ b/packages/babel-plugin-emotion/__tests__/__snapshots__/css.js.snap @@ -440,8 +440,8 @@ const thing = { `; exports[`@emotion/babel-plugin-core css label-transpiled-by-ts 1`] = ` -"import css from '@emotion/css' -import { __makeTemplateObject } from 'tslib' +"import { __makeTemplateObject } from 'tslib' +import css from '@emotion/css' var templateObject_1 @@ -457,12 +457,47 @@ const someVar = css( ↓ ↓ ↓ ↓ ↓ ↓ import _css from \\"@emotion/css\\"; + +var _emotionSourceMap = process.env.NODE_ENV === \\"production\\" ? \\"\\" : \\"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImxhYmVsLXRyYW5zcGlsZWQtYnktdHMuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBS2dCIiwiZmlsZSI6ImxhYmVsLXRyYW5zcGlsZWQtYnktdHMuanMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBfX21ha2VUZW1wbGF0ZU9iamVjdCB9IGZyb20gJ3RzbGliJ1xuaW1wb3J0IGNzcyBmcm9tICdAZW1vdGlvbi9jc3MnXG5cbnZhciB0ZW1wbGF0ZU9iamVjdF8xXG5cbmNvbnN0IHNvbWVWYXIgPSBjc3MoXG4gIHRlbXBsYXRlT2JqZWN0XzEgfHxcbiAgICAodGVtcGxhdGVPYmplY3RfMSA9IF9fbWFrZVRlbXBsYXRlT2JqZWN0KFxuICAgICAgWydcXG4gIGNvbG9yOiBob3RwaW5rO1xcbiddLFxuICAgICAgWydcXG4gIGNvbG9yOiBob3RwaW5rO1xcbiddXG4gICAgKSlcbilcbiJdfQ== */\\"; + +import { __makeTemplateObject } from 'tslib'; +var templateObject_1; + +const someVar = +/*#__PURE__*/ +_css(templateObject_1 || (templateObject_1 = __makeTemplateObject([\\"\\\\n color: hotpink;\\\\n;label:someVar;\\" + _emotionSourceMap], [\\"\\\\n color: hotpink;\\\\n;label:someVar;\\" + _emotionSourceMap])));" +`; + +exports[`@emotion/babel-plugin-core css label-transpiled-by-ts-with-interpolations 1`] = ` +"import { __makeTemplateObject } from 'tslib' +import css from '@emotion/css' +import { hoverStyles } from './styles' + +var templateObject_1 + +const someVar = css( + templateObject_1 || + (templateObject_1 = __makeTemplateObject( + ['\\\\n color: hotpink;\\\\n'], + ['\\\\n color: hotpink;\\\\n'] + )), + hoverStyles +) + + + ↓ ↓ ↓ ↓ ↓ ↓ + +import _css from \\"@emotion/css\\"; + +var _emotionSourceMap = process.env.NODE_ENV === \\"production\\" ? \\"\\" : \\"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImxhYmVsLXRyYW5zcGlsZWQtYnktdHMtd2l0aC1pbnRlcnBvbGF0aW9ucy5qcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFNZ0IiLCJmaWxlIjoibGFiZWwtdHJhbnNwaWxlZC1ieS10cy13aXRoLWludGVycG9sYXRpb25zLmpzIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgX19tYWtlVGVtcGxhdGVPYmplY3QgfSBmcm9tICd0c2xpYidcbmltcG9ydCBjc3MgZnJvbSAnQGVtb3Rpb24vY3NzJ1xuaW1wb3J0IHsgaG92ZXJTdHlsZXMgfSBmcm9tICcuL3N0eWxlcydcblxudmFyIHRlbXBsYXRlT2JqZWN0XzFcblxuY29uc3Qgc29tZVZhciA9IGNzcyhcbiAgdGVtcGxhdGVPYmplY3RfMSB8fFxuICAgICh0ZW1wbGF0ZU9iamVjdF8xID0gX19tYWtlVGVtcGxhdGVPYmplY3QoXG4gICAgICBbJ1xcbiAgY29sb3I6IGhvdHBpbms7XFxuJ10sXG4gICAgICBbJ1xcbiAgY29sb3I6IGhvdHBpbms7XFxuJ11cbiAgICApKSxcbiAgaG92ZXJTdHlsZXNcbilcbiJdfQ== */\\"; + import { __makeTemplateObject } from 'tslib'; +import { hoverStyles } from './styles'; var templateObject_1; const someVar = /*#__PURE__*/ -_css(templateObject_1 || (templateObject_1 = __makeTemplateObject([\\"\\\\n color: hotpink;\\\\n;label:someVar;\\" + (process.env.NODE_ENV === \\"production\\" ? \\"\\" : \\"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImxhYmVsLXRyYW5zcGlsZWQtYnktdHMuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBS2dCIiwiZmlsZSI6ImxhYmVsLXRyYW5zcGlsZWQtYnktdHMuanMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgY3NzIGZyb20gJ0BlbW90aW9uL2NzcydcbmltcG9ydCB7IF9fbWFrZVRlbXBsYXRlT2JqZWN0IH0gZnJvbSAndHNsaWInXG5cbnZhciB0ZW1wbGF0ZU9iamVjdF8xXG5cbmNvbnN0IHNvbWVWYXIgPSBjc3MoXG4gIHRlbXBsYXRlT2JqZWN0XzEgfHxcbiAgICAodGVtcGxhdGVPYmplY3RfMSA9IF9fbWFrZVRlbXBsYXRlT2JqZWN0KFxuICAgICAgWydcXG4gIGNvbG9yOiBob3RwaW5rO1xcbiddLFxuICAgICAgWydcXG4gIGNvbG9yOiBob3RwaW5rO1xcbiddXG4gICAgKSlcbilcbiJdfQ== */\\")], [\\"\\\\n color: hotpink;\\\\n;label:someVar;\\" + (process.env.NODE_ENV === \\"production\\" ? \\"\\" : \\"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImxhYmVsLXRyYW5zcGlsZWQtYnktdHMuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBS2dCIiwiZmlsZSI6ImxhYmVsLXRyYW5zcGlsZWQtYnktdHMuanMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgY3NzIGZyb20gJ0BlbW90aW9uL2NzcydcbmltcG9ydCB7IF9fbWFrZVRlbXBsYXRlT2JqZWN0IH0gZnJvbSAndHNsaWInXG5cbnZhciB0ZW1wbGF0ZU9iamVjdF8xXG5cbmNvbnN0IHNvbWVWYXIgPSBjc3MoXG4gIHRlbXBsYXRlT2JqZWN0XzEgfHxcbiAgICAodGVtcGxhdGVPYmplY3RfMSA9IF9fbWFrZVRlbXBsYXRlT2JqZWN0KFxuICAgICAgWydcXG4gIGNvbG9yOiBob3RwaW5rO1xcbiddLFxuICAgICAgWydcXG4gIGNvbG9yOiBob3RwaW5rO1xcbiddXG4gICAgKSlcbilcbiJdfQ== */\\")])));" +_css(templateObject_1 || (templateObject_1 = __makeTemplateObject([\\"\\\\n color: hotpink;\\\\n;label:someVar;\\" + _emotionSourceMap], [\\"\\\\n color: hotpink;\\\\n;label:someVar;\\" + _emotionSourceMap])), hoverStyles);" `; exports[`@emotion/babel-plugin-core css multiple-calls 1`] = ` diff --git a/packages/babel-plugin-emotion/__tests__/css-macro/__fixtures__/label-transpiled-by-ts-with-interpolations.js b/packages/babel-plugin-emotion/__tests__/css-macro/__fixtures__/label-transpiled-by-ts-with-interpolations.js new file mode 100644 index 0000000000..b7b7c83343 --- /dev/null +++ b/packages/babel-plugin-emotion/__tests__/css-macro/__fixtures__/label-transpiled-by-ts-with-interpolations.js @@ -0,0 +1,14 @@ +import { __makeTemplateObject } from 'tslib' +import css from '@emotion/css/macro' +import { hoverStyles } from './styles' + +var templateObject_1 + +const someVar = css( + templateObject_1 || + (templateObject_1 = __makeTemplateObject( + ['\n color: hotpink;\n'], + ['\n color: hotpink;\n'] + )), + hoverStyles +) diff --git a/packages/babel-plugin-emotion/__tests__/css-macro/__fixtures__/label-transpiled-by-ts.js b/packages/babel-plugin-emotion/__tests__/css-macro/__fixtures__/label-transpiled-by-ts.js index 63372f1cbd..38040e252a 100644 --- a/packages/babel-plugin-emotion/__tests__/css-macro/__fixtures__/label-transpiled-by-ts.js +++ b/packages/babel-plugin-emotion/__tests__/css-macro/__fixtures__/label-transpiled-by-ts.js @@ -1,5 +1,5 @@ -import css from '@emotion/css/macro' import { __makeTemplateObject } from 'tslib' +import css from '@emotion/css/macro' var templateObject_1 diff --git a/packages/babel-plugin-emotion/__tests__/css-macro/__snapshots__/index.js.snap b/packages/babel-plugin-emotion/__tests__/css-macro/__snapshots__/index.js.snap index 787fd0e558..70e0b903c1 100644 --- a/packages/babel-plugin-emotion/__tests__/css-macro/__snapshots__/index.js.snap +++ b/packages/babel-plugin-emotion/__tests__/css-macro/__snapshots__/index.js.snap @@ -440,8 +440,8 @@ const thing = { `; exports[`@emotion/css/macro label-transpiled-by-ts 1`] = ` -"import css from '@emotion/css/macro' -import { __makeTemplateObject } from 'tslib' +"import { __makeTemplateObject } from 'tslib' +import css from '@emotion/css/macro' var templateObject_1 @@ -457,12 +457,47 @@ const someVar = css( ↓ ↓ ↓ ↓ ↓ ↓ import _css from \\"@emotion/css\\"; + +var _emotionSourceMap = process.env.NODE_ENV === \\"production\\" ? \\"\\" : \\"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImxhYmVsLXRyYW5zcGlsZWQtYnktdHMuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBS2dCIiwiZmlsZSI6ImxhYmVsLXRyYW5zcGlsZWQtYnktdHMuanMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBfX21ha2VUZW1wbGF0ZU9iamVjdCB9IGZyb20gJ3RzbGliJ1xuaW1wb3J0IGNzcyBmcm9tICdAZW1vdGlvbi9jc3MvbWFjcm8nXG5cbnZhciB0ZW1wbGF0ZU9iamVjdF8xXG5cbmNvbnN0IHNvbWVWYXIgPSBjc3MoXG4gIHRlbXBsYXRlT2JqZWN0XzEgfHxcbiAgICAodGVtcGxhdGVPYmplY3RfMSA9IF9fbWFrZVRlbXBsYXRlT2JqZWN0KFxuICAgICAgWydcXG4gIGNvbG9yOiBob3RwaW5rO1xcbiddLFxuICAgICAgWydcXG4gIGNvbG9yOiBob3RwaW5rO1xcbiddXG4gICAgKSlcbilcbiJdfQ== */\\"; + +import { __makeTemplateObject } from 'tslib'; +var templateObject_1; + +const someVar = +/*#__PURE__*/ +_css(templateObject_1 || (templateObject_1 = __makeTemplateObject([\\"\\\\n color: hotpink;\\\\n;label:someVar;\\" + _emotionSourceMap], [\\"\\\\n color: hotpink;\\\\n;label:someVar;\\" + _emotionSourceMap])));" +`; + +exports[`@emotion/css/macro label-transpiled-by-ts-with-interpolations 1`] = ` +"import { __makeTemplateObject } from 'tslib' +import css from '@emotion/css/macro' +import { hoverStyles } from './styles' + +var templateObject_1 + +const someVar = css( + templateObject_1 || + (templateObject_1 = __makeTemplateObject( + ['\\\\n color: hotpink;\\\\n'], + ['\\\\n color: hotpink;\\\\n'] + )), + hoverStyles +) + + + ↓ ↓ ↓ ↓ ↓ ↓ + +import _css from \\"@emotion/css\\"; + +var _emotionSourceMap = process.env.NODE_ENV === \\"production\\" ? \\"\\" : \\"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImxhYmVsLXRyYW5zcGlsZWQtYnktdHMtd2l0aC1pbnRlcnBvbGF0aW9ucy5qcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFNZ0IiLCJmaWxlIjoibGFiZWwtdHJhbnNwaWxlZC1ieS10cy13aXRoLWludGVycG9sYXRpb25zLmpzIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgX19tYWtlVGVtcGxhdGVPYmplY3QgfSBmcm9tICd0c2xpYidcbmltcG9ydCBjc3MgZnJvbSAnQGVtb3Rpb24vY3NzL21hY3JvJ1xuaW1wb3J0IHsgaG92ZXJTdHlsZXMgfSBmcm9tICcuL3N0eWxlcydcblxudmFyIHRlbXBsYXRlT2JqZWN0XzFcblxuY29uc3Qgc29tZVZhciA9IGNzcyhcbiAgdGVtcGxhdGVPYmplY3RfMSB8fFxuICAgICh0ZW1wbGF0ZU9iamVjdF8xID0gX19tYWtlVGVtcGxhdGVPYmplY3QoXG4gICAgICBbJ1xcbiAgY29sb3I6IGhvdHBpbms7XFxuJ10sXG4gICAgICBbJ1xcbiAgY29sb3I6IGhvdHBpbms7XFxuJ11cbiAgICApKSxcbiAgaG92ZXJTdHlsZXNcbilcbiJdfQ== */\\"; + import { __makeTemplateObject } from 'tslib'; +import { hoverStyles } from './styles'; var templateObject_1; const someVar = /*#__PURE__*/ -_css(templateObject_1 || (templateObject_1 = __makeTemplateObject([\\"\\\\n color: hotpink;\\\\n;label:someVar;\\" + (process.env.NODE_ENV === \\"production\\" ? \\"\\" : \\"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImxhYmVsLXRyYW5zcGlsZWQtYnktdHMuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBS2dCIiwiZmlsZSI6ImxhYmVsLXRyYW5zcGlsZWQtYnktdHMuanMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgY3NzIGZyb20gJ0BlbW90aW9uL2Nzcy9tYWNybydcbmltcG9ydCB7IF9fbWFrZVRlbXBsYXRlT2JqZWN0IH0gZnJvbSAndHNsaWInXG5cbnZhciB0ZW1wbGF0ZU9iamVjdF8xXG5cbmNvbnN0IHNvbWVWYXIgPSBjc3MoXG4gIHRlbXBsYXRlT2JqZWN0XzEgfHxcbiAgICAodGVtcGxhdGVPYmplY3RfMSA9IF9fbWFrZVRlbXBsYXRlT2JqZWN0KFxuICAgICAgWydcXG4gIGNvbG9yOiBob3RwaW5rO1xcbiddLFxuICAgICAgWydcXG4gIGNvbG9yOiBob3RwaW5rO1xcbiddXG4gICAgKSlcbilcbiJdfQ== */\\")], [\\"\\\\n color: hotpink;\\\\n;label:someVar;\\" + (process.env.NODE_ENV === \\"production\\" ? \\"\\" : \\"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImxhYmVsLXRyYW5zcGlsZWQtYnktdHMuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBS2dCIiwiZmlsZSI6ImxhYmVsLXRyYW5zcGlsZWQtYnktdHMuanMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgY3NzIGZyb20gJ0BlbW90aW9uL2Nzcy9tYWNybydcbmltcG9ydCB7IF9fbWFrZVRlbXBsYXRlT2JqZWN0IH0gZnJvbSAndHNsaWInXG5cbnZhciB0ZW1wbGF0ZU9iamVjdF8xXG5cbmNvbnN0IHNvbWVWYXIgPSBjc3MoXG4gIHRlbXBsYXRlT2JqZWN0XzEgfHxcbiAgICAodGVtcGxhdGVPYmplY3RfMSA9IF9fbWFrZVRlbXBsYXRlT2JqZWN0KFxuICAgICAgWydcXG4gIGNvbG9yOiBob3RwaW5rO1xcbiddLFxuICAgICAgWydcXG4gIGNvbG9yOiBob3RwaW5rO1xcbiddXG4gICAgKSlcbilcbiJdfQ== */\\")])));" +_css(templateObject_1 || (templateObject_1 = __makeTemplateObject([\\"\\\\n color: hotpink;\\\\n;label:someVar;\\" + _emotionSourceMap], [\\"\\\\n color: hotpink;\\\\n;label:someVar;\\" + _emotionSourceMap])), hoverStyles);" `; exports[`@emotion/css/macro multiple-calls 1`] = ` diff --git a/packages/babel-plugin-emotion/__tests__/css-requires-options.js b/packages/babel-plugin-emotion/__tests__/css-requires-options.js index 894f4b3561..7fea7d28dd 100644 --- a/packages/babel-plugin-emotion/__tests__/css-requires-options.js +++ b/packages/babel-plugin-emotion/__tests__/css-requires-options.js @@ -54,7 +54,6 @@ const inline = { 'label on code transpiled by TS': { code: ` import { __makeTemplateObject } from 'tslib' - import css from '@emotion/css' var templateObject_1 @@ -74,6 +73,30 @@ const inline = { filename: __filename }, + 'label on code transpiled by TS (with interpolations) ': { + code: ` + import { __makeTemplateObject } from 'tslib' + import css from '@emotion/css' + import { hoverStyles } from './styles' + + var templateObject_1 + + const someVar = css( + templateObject_1 || + (templateObject_1 = __makeTemplateObject( + ['\\n color: hotpink;\\n'], + ['\\n color: hotpink;\\n'] + )), + hoverStyles + ) + `, + opts: { + autoLabel: true, + sourceMap: false + }, + filename: __filename + }, + 'custom instance': { code: ` import {css as lol} from 'my-emotion-instance' diff --git a/packages/babel-plugin-emotion/__tests__/source-maps/__fixtures__/css-transpiled-by-ts-with-interpolations.js b/packages/babel-plugin-emotion/__tests__/source-maps/__fixtures__/css-transpiled-by-ts-with-interpolations.js new file mode 100644 index 0000000000..2db71cb37b --- /dev/null +++ b/packages/babel-plugin-emotion/__tests__/source-maps/__fixtures__/css-transpiled-by-ts-with-interpolations.js @@ -0,0 +1,14 @@ +import { __makeTemplateObject } from 'tslib' +import css from '@emotion/css' +import { hoverStyles } from './styles' + +var templateObject_1 + +css( + templateObject_1 || + (templateObject_1 = __makeTemplateObject( + ['\n color: hotpink;\n'], + ['\n color: hotpink;\n'] + )), + hoverStyles +) diff --git a/packages/babel-plugin-emotion/__tests__/source-maps/__fixtures__/css-transpiled-by-ts.js b/packages/babel-plugin-emotion/__tests__/source-maps/__fixtures__/css-transpiled-by-ts.js index 115a5cf173..00bccc9ad9 100644 --- a/packages/babel-plugin-emotion/__tests__/source-maps/__fixtures__/css-transpiled-by-ts.js +++ b/packages/babel-plugin-emotion/__tests__/source-maps/__fixtures__/css-transpiled-by-ts.js @@ -1,5 +1,4 @@ import { __makeTemplateObject } from 'tslib' - import css from '@emotion/css' var templateObject_1 diff --git a/packages/babel-plugin-emotion/__tests__/source-maps/__snapshots__/index.js.snap b/packages/babel-plugin-emotion/__tests__/source-maps/__snapshots__/index.js.snap index 0ff8ca51bd..950abad45c 100644 --- a/packages/babel-plugin-emotion/__tests__/source-maps/__snapshots__/index.js.snap +++ b/packages/babel-plugin-emotion/__tests__/source-maps/__snapshots__/index.js.snap @@ -105,7 +105,6 @@ process.env.NODE_ENV === \\"production\\" ? { exports[`source maps css-transpiled-by-ts 1`] = ` "import { __makeTemplateObject } from 'tslib' - import css from '@emotion/css' var templateObject_1 @@ -122,11 +121,45 @@ css( ↓ ↓ ↓ ↓ ↓ ↓ import _css from \\"@emotion/css\\"; + +var _emotionSourceMap = process.env.NODE_ENV === \\"production\\" ? \\"\\" : \\"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNvdXJjZS1tYXAudGVzdC5qcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFLQSIsImZpbGUiOiJzb3VyY2UtbWFwLnRlc3QuanMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBfX21ha2VUZW1wbGF0ZU9iamVjdCB9IGZyb20gJ3RzbGliJ1xuaW1wb3J0IGNzcyBmcm9tICdAZW1vdGlvbi9jc3MnXG5cbnZhciB0ZW1wbGF0ZU9iamVjdF8xXG5cbmNzcyhcbiAgdGVtcGxhdGVPYmplY3RfMSB8fFxuICAgICh0ZW1wbGF0ZU9iamVjdF8xID0gX19tYWtlVGVtcGxhdGVPYmplY3QoXG4gICAgICBbJ1xcbiAgY29sb3I6IGhvdHBpbms7XFxuJ10sXG4gICAgICBbJ1xcbiAgY29sb3I6IGhvdHBpbms7XFxuJ11cbiAgICApKVxuKVxuIl19 */\\"; + +import { __makeTemplateObject } from 'tslib'; +var templateObject_1; + +/*#__PURE__*/ +_css(templateObject_1 || (templateObject_1 = __makeTemplateObject(['\\\\n color: hotpink;\\\\n' + _emotionSourceMap], ['\\\\n color: hotpink;\\\\n' + _emotionSourceMap])));" +`; + +exports[`source maps css-transpiled-by-ts-with-interpolations 1`] = ` +"import { __makeTemplateObject } from 'tslib' +import css from '@emotion/css' +import { hoverStyles } from './styles' + +var templateObject_1 + +css( + templateObject_1 || + (templateObject_1 = __makeTemplateObject( + ['\\\\n color: hotpink;\\\\n'], + ['\\\\n color: hotpink;\\\\n'] + )), + hoverStyles +) + + + ↓ ↓ ↓ ↓ ↓ ↓ + +import _css from \\"@emotion/css\\"; + +var _emotionSourceMap = process.env.NODE_ENV === \\"production\\" ? \\"\\" : \\"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNvdXJjZS1tYXAudGVzdC5qcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFNQSIsImZpbGUiOiJzb3VyY2UtbWFwLnRlc3QuanMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBfX21ha2VUZW1wbGF0ZU9iamVjdCB9IGZyb20gJ3RzbGliJ1xuaW1wb3J0IGNzcyBmcm9tICdAZW1vdGlvbi9jc3MnXG5pbXBvcnQgeyBob3ZlclN0eWxlcyB9IGZyb20gJy4vc3R5bGVzJ1xuXG52YXIgdGVtcGxhdGVPYmplY3RfMVxuXG5jc3MoXG4gIHRlbXBsYXRlT2JqZWN0XzEgfHxcbiAgICAodGVtcGxhdGVPYmplY3RfMSA9IF9fbWFrZVRlbXBsYXRlT2JqZWN0KFxuICAgICAgWydcXG4gIGNvbG9yOiBob3RwaW5rO1xcbiddLFxuICAgICAgWydcXG4gIGNvbG9yOiBob3RwaW5rO1xcbiddXG4gICAgKSksXG4gIGhvdmVyU3R5bGVzXG4pXG4iXX0= */\\"; + import { __makeTemplateObject } from 'tslib'; +import { hoverStyles } from './styles'; var templateObject_1; /*#__PURE__*/ -_css(templateObject_1 || (templateObject_1 = __makeTemplateObject(['\\\\n color: hotpink;\\\\n' + (process.env.NODE_ENV === \\"production\\" ? \\"\\" : \\"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNvdXJjZS1tYXAudGVzdC5qcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFNQSIsImZpbGUiOiJzb3VyY2UtbWFwLnRlc3QuanMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBfX21ha2VUZW1wbGF0ZU9iamVjdCB9IGZyb20gJ3RzbGliJ1xuXG5pbXBvcnQgY3NzIGZyb20gJ0BlbW90aW9uL2NzcydcblxudmFyIHRlbXBsYXRlT2JqZWN0XzFcblxuY3NzKFxuICB0ZW1wbGF0ZU9iamVjdF8xIHx8XG4gICAgKHRlbXBsYXRlT2JqZWN0XzEgPSBfX21ha2VUZW1wbGF0ZU9iamVjdChcbiAgICAgIFsnXFxuICBjb2xvcjogaG90cGluaztcXG4nXSxcbiAgICAgIFsnXFxuICBjb2xvcjogaG90cGluaztcXG4nXVxuICAgICkpXG4pXG4iXX0= */\\")], ['\\\\n color: hotpink;\\\\n' + (process.env.NODE_ENV === \\"production\\" ? \\"\\" : \\"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNvdXJjZS1tYXAudGVzdC5qcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFNQSIsImZpbGUiOiJzb3VyY2UtbWFwLnRlc3QuanMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBfX21ha2VUZW1wbGF0ZU9iamVjdCB9IGZyb20gJ3RzbGliJ1xuXG5pbXBvcnQgY3NzIGZyb20gJ0BlbW90aW9uL2NzcydcblxudmFyIHRlbXBsYXRlT2JqZWN0XzFcblxuY3NzKFxuICB0ZW1wbGF0ZU9iamVjdF8xIHx8XG4gICAgKHRlbXBsYXRlT2JqZWN0XzEgPSBfX21ha2VUZW1wbGF0ZU9iamVjdChcbiAgICAgIFsnXFxuICBjb2xvcjogaG90cGluaztcXG4nXSxcbiAgICAgIFsnXFxuICBjb2xvcjogaG90cGluaztcXG4nXVxuICAgICkpXG4pXG4iXX0= */\\")])));" +_css(templateObject_1 || (templateObject_1 = __makeTemplateObject(['\\\\n color: hotpink;\\\\n' + _emotionSourceMap], ['\\\\n color: hotpink;\\\\n' + _emotionSourceMap])), hoverStyles);" `; exports[`source maps styled-object 1`] = ` diff --git a/packages/babel-plugin-emotion/src/utils/checks.js b/packages/babel-plugin-emotion/src/utils/checks.js deleted file mode 100644 index 07fcc3d122..0000000000 --- a/packages/babel-plugin-emotion/src/utils/checks.js +++ /dev/null @@ -1,27 +0,0 @@ -// @flow - -export function isTaggedTemplateExpressionTranspiledByTypeScript(path: *) { - if (path.node.arguments.length !== 1) { - return false - } - - const argPath = path.get('arguments')[0] - - return ( - argPath.isLogicalExpression() && - argPath.get('left').isIdentifier() && - argPath.node.left.name.includes('templateObject') && - argPath.get('right').isAssignmentExpression() && - argPath - .get('right') - .get('right') - .isCallExpression() && - argPath - .get('right') - .get('right') - .get('callee') - .isIdentifier() && - argPath.node.right.right.callee.name.includes('makeTemplateObject') && - argPath.node.right.right.arguments.length === 2 - ) -} diff --git a/packages/babel-plugin-emotion/src/utils/strings.js b/packages/babel-plugin-emotion/src/utils/strings.js index 5775edc05a..b5ed0454c1 100644 --- a/packages/babel-plugin-emotion/src/utils/strings.js +++ b/packages/babel-plugin-emotion/src/utils/strings.js @@ -1,5 +1,5 @@ // @flow -import { isTaggedTemplateExpressionTranspiledByTypeScript } from './checks' +import { getTypeScriptMakeTemplateObjectPath } from './ts-output-utils' export const appendStringToArguments = (path: *, string: string, t: *) => { if (!string) { @@ -8,19 +8,20 @@ export const appendStringToArguments = (path: *, string: string, t: *) => { const args = path.node.arguments if (t.isStringLiteral(args[args.length - 1])) { args[args.length - 1].value += string - } else if (isTaggedTemplateExpressionTranspiledByTypeScript(path)) { - const makeTemplateObjectCallPath = path - .get('arguments')[0] - .get('right') - .get('right') - - makeTemplateObjectCallPath.get('arguments').forEach(argPath => { - const elements = argPath.get('elements') - const lastElement = elements[elements.length - 1] - lastElement.replaceWith(t.stringLiteral(lastElement.node.value + string)) - }) } else { - args.push(t.stringLiteral(string)) + const makeTemplateObjectCallPath = getTypeScriptMakeTemplateObjectPath(path) + + if (makeTemplateObjectCallPath) { + makeTemplateObjectCallPath.get('arguments').forEach(argPath => { + const elements = argPath.get('elements') + const lastElement = elements[elements.length - 1] + lastElement.replaceWith( + t.stringLiteral(lastElement.node.value + string) + ) + }) + } else { + args.push(t.stringLiteral(string)) + } } } diff --git a/packages/babel-plugin-emotion/src/utils/transform-expression-with-styles.js b/packages/babel-plugin-emotion/src/utils/transform-expression-with-styles.js index 339ca8dd7c..65300858de 100644 --- a/packages/babel-plugin-emotion/src/utils/transform-expression-with-styles.js +++ b/packages/babel-plugin-emotion/src/utils/transform-expression-with-styles.js @@ -6,7 +6,7 @@ import { getLabelFromPath } from './label' import { getSourceMap } from './source-maps' import { simplifyObject } from './object-to-string' import { appendStringToArguments, joinStringLiterals } from './strings' -import { isTaggedTemplateExpressionTranspiledByTypeScript } from './checks' +import { getTypeScriptMakeTemplateObjectPath } from './ts-output-utils' const CSS_OBJECT_STRINGIFIED_ERROR = "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)." @@ -136,25 +136,35 @@ export let transformExpressionWithStyles = ({ last, sourceMapConditional ) - } else if (isTaggedTemplateExpressionTranspiledByTypeScript(path)) { - const makeTemplateObjectCallPath = path - .get('arguments')[0] - .get('right') - .get('right') + } else { + const makeTemplateObjectCallPath = getTypeScriptMakeTemplateObjectPath( + path + ) - makeTemplateObjectCallPath.get('arguments').forEach(argPath => { - const elements = argPath.get('elements') - const lastElement = elements[elements.length - 1] - lastElement.replaceWith( - t.binaryExpression( - '+', - lastElement.node, - cloneNode(t, sourceMapConditional) - ) + if (makeTemplateObjectCallPath) { + const sourceMapId = state.file.scope.generateUidIdentifier( + 'emotionSourceMap' ) - }) - } else { - path.node.arguments.push(sourceMapConditional) + const sourceMapDeclaration = t.variableDeclaration('var', [ + t.variableDeclarator(sourceMapId, sourceMapConditional) + ]) + sourceMapDeclaration._compact = true + state.file.path.unshiftContainer('body', [sourceMapDeclaration]) + + makeTemplateObjectCallPath.get('arguments').forEach(argPath => { + const elements = argPath.get('elements') + const lastElement = elements[elements.length - 1] + lastElement.replaceWith( + t.binaryExpression( + '+', + lastElement.node, + cloneNode(t, sourceMapId) + ) + ) + }) + } else { + path.node.arguments.push(sourceMapConditional) + } } } } diff --git a/packages/babel-plugin-emotion/src/utils/ts-output-utils.js b/packages/babel-plugin-emotion/src/utils/ts-output-utils.js new file mode 100644 index 0000000000..b4d537c779 --- /dev/null +++ b/packages/babel-plugin-emotion/src/utils/ts-output-utils.js @@ -0,0 +1,25 @@ +// @flow + +// this only works correctly in modules, but we don't run on scripts anyway, so it's fine +// the difference is that in modules template objects are being cached per call site +export function getTypeScriptMakeTemplateObjectPath(path: *) { + if (path.node.arguments.length === 0) { + return null + } + + const firstArgPath = path.get('arguments')[0] + + if ( + firstArgPath.isLogicalExpression() && + firstArgPath.get('left').isIdentifier() && + firstArgPath.get('right').isAssignmentExpression() && + firstArgPath.get('right.right').isCallExpression() && + firstArgPath.get('right.right.callee').isIdentifier() && + firstArgPath.node.right.right.callee.name.includes('makeTemplateObject') && + firstArgPath.node.right.right.arguments.length === 2 + ) { + return firstArgPath.get('right.right') + } + + return null +} From 4a7673af4834a25e65af5c336adf9314dad2580a Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Thu, 27 Feb 2020 18:43:42 +0100 Subject: [PATCH 12/12] ci(changeset): generate PR with changelog & version updates (#1723) --- .changeset/breezy-tools-reflect.md | 5 ----- .changeset/olive-papayas-flow.md | 5 ----- .changeset/six-cows-tie.md | 5 ----- .changeset/twelve-rocks-visit.md | 5 ----- packages/babel-plugin-emotion/CHANGELOG.md | 8 ++++++++ packages/babel-plugin-emotion/package.json | 2 +- packages/core/CHANGELOG.md | 6 ++++++ packages/core/package.json | 2 +- packages/is-prop-valid/CHANGELOG.md | 6 ++++++ packages/is-prop-valid/package.json | 2 +- packages/primitives/CHANGELOG.md | 8 ++++++++ packages/primitives/package.json | 6 +++--- packages/styled-base/CHANGELOG.md | 8 ++++++++ packages/styled-base/package.json | 8 ++++---- 14 files changed, 46 insertions(+), 30 deletions(-) delete mode 100644 .changeset/breezy-tools-reflect.md delete mode 100644 .changeset/olive-papayas-flow.md delete mode 100644 .changeset/six-cows-tie.md delete mode 100644 .changeset/twelve-rocks-visit.md diff --git a/.changeset/breezy-tools-reflect.md b/.changeset/breezy-tools-reflect.md deleted file mode 100644 index b9facfc23f..0000000000 --- a/.changeset/breezy-tools-reflect.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'babel-plugin-emotion': patch ---- - -Fixed an issue with adding `label` & `target` options to `styled`-related calls when those properties were already set, causing those properties to be duplicated. This could have happened for example when transpiling already transpiled code or when providing those options manually (latter being less likely). diff --git a/.changeset/olive-papayas-flow.md b/.changeset/olive-papayas-flow.md deleted file mode 100644 index 42345ee71a..0000000000 --- a/.changeset/olive-papayas-flow.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'babel-plugin-emotion': patch ---- - -Push source maps & labels to cooked/raw arrays in TS-transpiled tagged template expressions containing interpolations. This is a case not covered previously by [#1538](https://github.com/emotion-js/emotion/pull/1538). diff --git a/.changeset/six-cows-tie.md b/.changeset/six-cows-tie.md deleted file mode 100644 index 8bae3f2e07..0000000000 --- a/.changeset/six-cows-tie.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@emotion/is-prop-valid': patch ---- - -Adds inert to the list of allowed props diff --git a/.changeset/twelve-rocks-visit.md b/.changeset/twelve-rocks-visit.md deleted file mode 100644 index f96b0c190f..0000000000 --- a/.changeset/twelve-rocks-visit.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@emotion/core': patch ---- - -Fixed label extraction from the stack traces in FireFox and Safari. We have failed to match a label in Emotion wrappers like Theme UI which caused SSR mismatches in mentioned browsers. This has affected only development builds. diff --git a/packages/babel-plugin-emotion/CHANGELOG.md b/packages/babel-plugin-emotion/CHANGELOG.md index a836fc02f7..0370079dfe 100644 --- a/packages/babel-plugin-emotion/CHANGELOG.md +++ b/packages/babel-plugin-emotion/CHANGELOG.md @@ -1,5 +1,13 @@ # babel-plugin-emotion +## 10.0.28 + +### Patch Changes + +- [`4dfe558`](https://github.com/emotion-js/emotion/commit/4dfe55811a25bf66306aee46f7f0d6c909004c42) [#1731](https://github.com/emotion-js/emotion/pull/1731) Thanks [@ndelangen](https://github.com/ndelangen)! - Fixed an issue with adding `label` & `target` options to `styled`-related calls when those properties were already set, causing those properties to be duplicated. This could have happened for example when transpiling already transpiled code or when providing those options manually (latter being less likely). + +* [`af07afb`](https://github.com/emotion-js/emotion/commit/af07afbe5a887be82f72a12fd6cd1673a32f5263) [#1761](https://github.com/emotion-js/emotion/pull/1761) Thanks [@mansourkheffache](https://github.com/mansourkheffache)! - Push source maps & labels to cooked/raw arrays in TS-transpiled tagged template expressions containing interpolations. This is a case not covered previously by [#1538](https://github.com/emotion-js/emotion/pull/1538). + ## 10.0.27 ### Patch Changes diff --git a/packages/babel-plugin-emotion/package.json b/packages/babel-plugin-emotion/package.json index 1d8f440c97..2784d55156 100644 --- a/packages/babel-plugin-emotion/package.json +++ b/packages/babel-plugin-emotion/package.json @@ -1,6 +1,6 @@ { "name": "babel-plugin-emotion", - "version": "10.0.27", + "version": "10.0.28", "description": "A recommended babel preprocessing plugin for emotion, The Next Generation of CSS-in-JS.", "main": "dist/babel-plugin-emotion.cjs.js", "module": "dist/babel-plugin-emotion.esm.js", diff --git a/packages/core/CHANGELOG.md b/packages/core/CHANGELOG.md index eef83e4659..0d6b4eb03c 100644 --- a/packages/core/CHANGELOG.md +++ b/packages/core/CHANGELOG.md @@ -1,5 +1,11 @@ # @emotion/core +## 10.0.28 + +### Patch Changes + +- [`d0b2a94`](https://github.com/emotion-js/emotion/commit/d0b2a94ab9d5648667447dbd78e7a2e3e93de42a) [#1714](https://github.com/emotion-js/emotion/pull/1714) Thanks [@Andarist](https://github.com/Andarist)! - Fixed label extraction from the stack traces in FireFox and Safari. We have failed to match a label in Emotion wrappers like Theme UI which caused SSR mismatches in mentioned browsers. This has affected only development builds. + ## 10.0.27 ### Patch Changes diff --git a/packages/core/package.json b/packages/core/package.json index 35ef01ad92..51767d2bbb 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -1,6 +1,6 @@ { "name": "@emotion/core", - "version": "10.0.27", + "version": "10.0.28", "main": "dist/core.cjs.js", "module": "dist/core.esm.js", "browser": { diff --git a/packages/is-prop-valid/CHANGELOG.md b/packages/is-prop-valid/CHANGELOG.md index 33e63963c5..e07443eb9d 100644 --- a/packages/is-prop-valid/CHANGELOG.md +++ b/packages/is-prop-valid/CHANGELOG.md @@ -1,5 +1,11 @@ # @emotion/is-prop-valid +## 0.8.7 + +### Patch Changes + +- [`12141c5`](https://github.com/emotion-js/emotion/commit/12141c54318c0738b60bf755e033cf6e12238a02) [#1736](https://github.com/emotion-js/emotion/pull/1736) Thanks [@bezoerb](https://github.com/bezoerb)! - Adds inert to the list of allowed props + ## 0.8.6 ### Patch Changes diff --git a/packages/is-prop-valid/package.json b/packages/is-prop-valid/package.json index 10329ffa4b..c02d897151 100644 --- a/packages/is-prop-valid/package.json +++ b/packages/is-prop-valid/package.json @@ -1,6 +1,6 @@ { "name": "@emotion/is-prop-valid", - "version": "0.8.6", + "version": "0.8.7", "description": "A function to check whether a prop is valid for HTML and SVG elements", "main": "dist/is-prop-valid.cjs.js", "module": "dist/is-prop-valid.esm.js", diff --git a/packages/primitives/CHANGELOG.md b/packages/primitives/CHANGELOG.md index f362d802cc..a0797981bd 100644 --- a/packages/primitives/CHANGELOG.md +++ b/packages/primitives/CHANGELOG.md @@ -1,5 +1,13 @@ # @emotion/primitives +## 10.0.28 + +### Patch Changes + +- Updated dependencies [[`4dfe558`](https://github.com/emotion-js/emotion/commit/4dfe55811a25bf66306aee46f7f0d6c909004c42), [`af07afb`](https://github.com/emotion-js/emotion/commit/af07afbe5a887be82f72a12fd6cd1673a32f5263), [`12141c5`](https://github.com/emotion-js/emotion/commit/12141c54318c0738b60bf755e033cf6e12238a02)]: + - babel-plugin-emotion@10.0.28 + - @emotion/is-prop-valid@0.8.7 + ## 10.0.27 ### Patch Changes diff --git a/packages/primitives/package.json b/packages/primitives/package.json index 3d03d43b46..9a76c5de74 100644 --- a/packages/primitives/package.json +++ b/packages/primitives/package.json @@ -1,6 +1,6 @@ { "name": "@emotion/primitives", - "version": "10.0.27", + "version": "10.0.28", "main": "dist/primitives.cjs.js", "module": "dist/primitives.esm.js", "files": [ @@ -8,9 +8,9 @@ "dist" ], "dependencies": { - "@emotion/is-prop-valid": "0.8.6", + "@emotion/is-prop-valid": "0.8.7", "@emotion/primitives-core": "10.0.27", - "babel-plugin-emotion": "^10.0.27" + "babel-plugin-emotion": "^10.0.28" }, "peerDependencies": { "react": ">=16.3.0", diff --git a/packages/styled-base/CHANGELOG.md b/packages/styled-base/CHANGELOG.md index 7887433869..3f91c5df2d 100644 --- a/packages/styled-base/CHANGELOG.md +++ b/packages/styled-base/CHANGELOG.md @@ -1,5 +1,13 @@ # @emotion/styled-base +## 10.0.28 + +### Patch Changes + +- Updated dependencies [[`12141c5`](https://github.com/emotion-js/emotion/commit/12141c54318c0738b60bf755e033cf6e12238a02), [`d0b2a94`](https://github.com/emotion-js/emotion/commit/d0b2a94ab9d5648667447dbd78e7a2e3e93de42a)]: + - @emotion/is-prop-valid@0.8.7 + - @emotion/core@10.0.28 + ## 10.0.27 ### Patch Changes diff --git a/packages/styled-base/package.json b/packages/styled-base/package.json index 0527329fe2..fd1b1f7d75 100644 --- a/packages/styled-base/package.json +++ b/packages/styled-base/package.json @@ -1,6 +1,6 @@ { "name": "@emotion/styled-base", - "version": "10.0.27", + "version": "10.0.28", "description": "base styled API for emotion", "main": "dist/styled-base.cjs.js", "module": "dist/styled-base.esm.js", @@ -16,18 +16,18 @@ }, "dependencies": { "@babel/runtime": "^7.5.5", - "@emotion/is-prop-valid": "0.8.6", + "@emotion/is-prop-valid": "0.8.7", "@emotion/serialize": "^0.11.15", "@emotion/utils": "0.11.3" }, "devDependencies": { - "@emotion/core": "^10.0.27", + "@emotion/core": "^10.0.28", "@types/react": "^16.8.20", "dtslint": "^0.3.0", "react": "^16.5.2" }, "peerDependencies": { - "@emotion/core": "^10.0.27", + "@emotion/core": "^10.0.28", "react": ">=16.3.0" }, "publishConfig": {