Commit Graph

3179 Commits

Author SHA1 Message Date
Evan Jacobs
d744b38242 Update packages/styled-components/src/utils/isPlainObject.js
Co-authored-by: Jason Miller <developit@users.noreply.github.com>
2021-01-21 19:49:43 -05:00
Phil Pluckthun
8b007158ef Readd component warning test to flatten.test.js 2021-01-08 20:45:56 +00:00
Phil Pluckthun
ffbb8aa529 Remove obsolete checks from native.test.js and primitives.test.js 2021-01-08 15:41:13 +00:00
Phil Pluckthun
1b5498e38d Reinstante flatten.js warning by replacing isElement 2021-01-08 15:35:03 +00:00
Phil Pluckthun
12cd76922f Loosen constructWithOptions check 2021-01-08 15:10:21 +00:00
Phil Pluckthun
5cf1111981 Add test for elements in isPlainObject and fix up check 2021-01-08 15:09:38 +00:00
Phil Pluckthun
5fcbc778a9 Remove obsolete tests 2021-01-08 14:55:33 +00:00
Phil Pluckthun
8eabf605d8 Replace all usages of react-is 2021-01-08 14:52:02 +00:00
Phil Pluckthun
b6aa46e3a9 Remove react-is package and from rollup.config.js 2021-01-08 14:41:20 +00:00
Evan Jacobs
1dbb82cf6b fix copy [skip ci] 2020-10-30 11:05:00 -04:00
Evan Jacobs
2b85e9f798 5.2.1 v5.2.1 2020-10-30 11:03:10 -04:00
Evan Jacobs
683b668d92 v5.2.1 2020-10-30 11:02:53 -04:00
Evan Jacobs
710717a958 Merge pull request #3308 from Lazyuki/fix-toHaveStyle
fix styles not being added when using toHaveStyle()
2020-10-30 10:50:47 -04:00
Yuki Ito
cd3070b183 fix styles not being added when using toHaveStyle() 2020-10-12 20:29:59 -04:00
hero
0c029557d8 Enable new style rules can be inserted in the middle of existing sheet when rendering on client after rehydrate (#3233) 2020-10-02 16:19:01 -04:00
Trevor Lohrbeer
26827b644a fix: Allow DISABLE_SPEEDY to be set to false (#3289)
* fix: Allow `DISABLE_SPEEDY` to be set to `false`

The old initialization of `DISABLE_SPEEDY` meant that the only way it could be set to a falsey value was if `NODE_ENV` was set to `production` and no other setting was set. Setting `SC_DISABLE_SPEEDY` or the environment variables to false would be overridden by `NODE_ENV`.

The new initialization ensures that if one of these options is set, it’s value is respected.

This change should only affect the computed value of `DISABLE_SPEEDY` if one of the settings has the value `false` or `’false’`. Otherwise it should have the same truthy or falsey value.

Since the expected behavior of setting one of the configuration variables to `false` is to have `DISABLE_SPEEDY` set to false, this should be a fix and not a breaking change.

* test: Add tests for setting `DISABLE_SPEEDY` to `false`

* fix: Ensure `DISABLE_SPEEDY` boolean type

Technically not needed, but makes the tests pass when passing in the string values of `’false’` without needing to modify the compare values. And is a bit cleaner to have it as a boolean type.

* fix: Inline `process.env` references

Per [this comment](https://github.com/styled-components/styled-components/pull/3289#issuecomment-699171576)

* docs: Add changelog entry
2020-09-30 22:21:03 +01:00
Evan Jacobs
e0286a105c Merge pull request #3285 from strozw/fix-benchmark
Fix module resolve error in benchmarks package
2020-09-29 11:25:10 -04:00
Evan Jacobs
9c77f2d34d Merge pull request #3294 from shannonrothe/master
fix: wording in `src/packages/styled-components/base.js` warning
2020-09-29 11:23:06 -04:00
Shannon Rothe
c3e9da12f8 Fix wording src/packages/styled-components/base.js 2020-09-28 13:04:18 +10:00
strozw
b9f534144e update yarn.lock 2020-09-25 10:44:09 +09:00
strozw
80611faed0 change to using self styled-components 2020-09-25 10:23:17 +09:00
strozw
7e780a9e0f fix module resolve error 2020-09-24 09:38:34 +09:00
Evan Jacobs
c5c610e88c Merge pull request #3248 from styled-components/memo-if-static
update flow, rework types for StyledComponent model
2020-09-22 13:38:26 -04:00
Evan Jacobs
b8645706b2 Merge pull request #3271 from strozw/fix-sandbox-undefined-error
Fix sandbox error displaying "__SERVER__ is not defined"
2020-09-15 09:56:25 -04:00
strozw
6272fb2391 fix __SERVER__ is not defined 2020-09-14 10:34:31 +09:00
Niclas Lindgren
df94ac4132 Fix regex breaking on IE in hyphenateStyleName (#3267) 2020-09-08 11:32:50 +01:00
Evan Jacobs
4d459d4a89 v5.2.0 v5.2.0 2020-09-04 09:16:23 -04:00
Evan Jacobs
d4b9ee8a3c v5.2.0-test.12 2020-09-02 11:46:47 -04:00
Will Heslam
dd6b3028f9 speed up hyphenating style names (#3251)
by:
1. avoiding work if not needed
2. lower casing individual upper case characters instead of entire strings
2020-09-02 11:46:01 -04:00
Will Heslam
792e41d809 fix static styles wrapping dynamic styles being wrongly identified as static (#3250) 2020-09-02 11:27:55 -04:00
Evan Jacobs
df65868e62 run workflow on push and pull_request (#3252)
* run workflow on push and pull_request

* try this instead
2020-09-02 11:12:15 -04:00
Evan Jacobs
dee6c04ce2 fix build & some tweaks 2020-08-31 20:58:49 -04:00
Evan Jacobs
ee3cc0e24c update flow 2020-08-31 20:25:39 -04:00
Evan Jacobs
5f6942f0b1 v5.2.0-test.11 2020-08-31 17:10:42 -04:00
Evan Jacobs
4351e2b6da adjust minification mechanism 2020-08-31 17:10:02 -04:00
Evan Jacobs
a6b14070c4 adjust bundlewatch action config (#3243) v5.2.0-test.10 2020-08-30 19:17:33 -04:00
Evan Jacobs
106e5bbcf5 use github actions (#3242)
* use github actions

* remove travis

* fix step name

* do less work

* switch to bundlewatch

* set proper branch

* fix repo name env variable

* try running on branch instead
2020-08-30 16:38:43 -04:00
Evan Jacobs
71c0fb8bc9 Merge pull request #3239 from styled-components/include-version-in-haser
misc updates
2020-08-30 14:49:53 -04:00
Evan Jacobs
0f4c55f891 nicer snapshots 2020-08-30 14:11:21 -04:00
Evan Jacobs
9e073e3140 nicer inline snapshots for HTML 2020-08-30 13:16:31 -04:00
Evan Jacobs
c8f11532e6 add test to codify cGS injection order as part of the API 2020-08-30 13:06:01 -04:00
Evan Jacobs
55427174b0 switch tests to getRenderedCSS 2020-08-30 13:05:55 -04:00
Evan Jacobs
26d3dc5d9e add changelog entry for cGS behavioral modification 2020-08-30 12:46:45 -04:00
Evan Jacobs
6b0d0c5d90 v5.2.0-test.10 2020-08-30 12:27:00 -04:00
Evan Jacobs
70792e8726 preallocate global styles on cGS instantiation
Fixes #2993
2020-08-30 12:25:54 -04:00
Evan Jacobs
e6ed8a94f8 v5.2.0-test.9 2020-08-30 11:42:26 -04:00
Evan Jacobs
d85d99ad49 fix some dev warnings being accidentally removed by the minifier 2020-08-30 11:40:02 -04:00
Evan Jacobs
f12b943658 use __SERVER__ magic string 2020-08-29 22:21:10 -04:00
Evan Jacobs
b1f263234d v5.2.0-test.8 2020-08-29 22:17:54 -04:00
Evan Jacobs
f5582d9784 use yarn feature to alias npm-trunk version of styled-components 2020-08-29 22:17:15 -04:00