Commit Graph

499 Commits

Author SHA1 Message Date
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
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
0f4c55f891 nicer snapshots 2020-08-30 14:11:21 -04:00
Evan Jacobs
1fde8f09ac run flow before push instead of per-commit to catch any regressions 2020-08-27 17:24:04 -04:00
Evan Jacobs
1f6c3bfcf6 follow current node LTS
The engines >= 8 thing hasn't been released yet, so this is not
considered a breaking change.
2020-08-27 17:24:04 -04:00
Michaël De Boey
25e48908b0 Add engines in package.json (#3201)
* Update package.json

* Update package.json

* Update package.json

* Update package.json
2020-08-27 07:26:54 -04:00
Evan Jacobs
c11750e464 upgrade wsrun, its buggy output has been annoying me 2019-11-07 16:19:19 -05:00
Evan Jacobs
590c9d6e91 peer dependency & globals adjustments for bundle size (#2588)
* add react-is to rollup globals now that it's a peerDep

(cherry picked from commit 84d973b3e1e8d16ba7529ed29966d7f0e90bcb19)

* move prop-types to peerDeps

brings our bundle size down a bit more

* upgrade rollup

* Revert "move prop-types to peerDeps"

This reverts commit 70fbda3e683a5bf7351dc450442e1812d38f7b3d.

* just remove the stylesheet manager proptypes since rollup isn't doing its job

when the TS types get updated intellisense will do its thing in
VSCode, so shouldn't be too big of a deal

* pull up changelog from 4.x
2019-11-07 16:02:34 -05:00
Evan Jacobs
7b32b43d67 update flow to 0.100 2019-11-07 16:02:33 -05:00
Evan Jacobs
62e35202cf generate the error map on workspace install for CI 2019-11-07 16:02:14 -05:00
Evan Jacobs
c66fb9d643 run all tests except integration ones for now
until jest-styled-components is updated to support v5
2019-11-07 16:02:13 -05:00
Evan Jacobs
b81c194c7d add top level benchmark command for easy running 2019-11-07 16:01:14 -05:00
Evan Jacobs
470ef331ec fix local setup I think 2019-11-07 16:01:13 -05:00
Evan Jacobs
d7100ca59c add a top level size command for ease of use 2019-11-07 16:00:34 -05:00
Phil Pluckthun
144b66101c Fix flowconfig location 2019-11-07 16:00:22 -05:00
Phil Pluckthun
a6dc34f945 Fix more configs after upgrade 2019-11-07 16:00:12 -05:00
Phil Pluckthun
1aaf68996a Upgrade babel to v7 2019-11-07 15:59:49 -05:00
Phil Pluckthun
ff771d5e66 Clean up package.json and remove lerna (for now?) 2019-11-07 15:59:33 -05:00
Jessica Franco
568dbd52fa Reimplement StyledComponent using hooks (#2390)
* Migrate Providers to use hooks

* Migrate createGlobalStyle to use hooks

* Minor refactor

* Fix integration tests

* Bump react version

* Add eslint-plugin-react-hooks

* Fist iteration of migrating StyledComponent

* Fix attrs

* Fix sandbox react error

Removes the "Hooks can only be called inside the body of a function component" error

* Temporary skip classNameUsageCheckInjector tests

* Bump eslint-plugin-react-hooks version

* Bump react-is dependency

* Move warnings to the component instance

* Update flow (needed for hook types)

* Refactor StyleSheetContext, fix some Flow errors

* WIP refactoring of StyledComponent

* More WIP

* More progress; flow passes!

* Fix test:web

* Remove useless refs from createGlobalStyle, fix effect, add more DebugValue

* Update react version in integration test
2019-11-07 15:58:35 -05:00
Danny Sanchez
80ca302cf3 try to handle React's streaming renderer yielding at inopportune times (#2413)
* Styled Components test interleaveWithNodeStream

Added a test for interleaveWithNodeStream.  The niche case where the
style tag gets interleaved into a textarea causes the style tag to be
rendered as text in the text area.

* when streaming try to inject outside the nearest element

this helps for some edge cases like <textarea> where the
element accepts children but has weird behavior for the children
compared to typical HTML elements

* remove enzyme stuff in favor of a simpler check

* changelog entry
2019-03-23 11:26:49 -05:00
Alan Souza
9d40b02869 Added postinstall script to build styled-components. (#2429)
Thanks!
2019-03-05 12:18:56 -06:00
Bhargav Ponnapalli
4aa2fdbb3b Move to a mono-repo structure
wip

Add gitignore and edit rollup config

Update gitignore

Wip

WIP

Get rid of older json files and use js files to extend across pkgs later

Make test:native work again, thanks to @SimenB

No haste and get integration test to work

Update husky

Update package.json

Update travis and appveyor

Add lint script

Update sandbox

Update yarn version

Move eslint into sc package

Remove unnecessary files

Update lint-staged

Update CONTRIBUTING.md

Update version in lerna.json

Update contributing

Update scripts

Update contributing

Update contributing

Update contributing.md and publish script

Update contributing

v4.1.4-alpha.0

Update package json

Update lerna version

v4.1.4-alpha.0

v4.1.4-alpha.1

Independent version for sandbox and styled-components

Yarn instead of npm

Add readme to styled-components package to show up on npm

Publish

 - styled-components@4.1.4-alpha.2

Update prepublisOnly and contributing

Update gitignore

Publish

 - styled-components@4.1.4-alpha.3

Test without readme

Remove readme

Publish

 - styled-components@4.1.4-alpha.4

Copy readme prepublishOnly

Publish

 - styled-components@4.1.4-alpha.5
2019-01-18 21:04:15 +05:30
Max Stoiber
8cf278bf4e v4.1.3 (#2290)
* Update changelog

* Upgrade babel plugin dep

* v4.1.3

* fix version # in changelog
2019-01-15 00:30:59 -06:00
gretzky
2d82900867 update memoize-one 2018-12-19 14:23:20 -05:00
luc
9999e904e5 add @babel/helper-module-imports to package.json 2018-12-13 20:38:05 +08:00
Mateusz Burzyński
d45ef9d0ed Update @emotion/is-prop-valid (#2251) 2018-12-04 15:45:53 -05:00
Evan Jacobs
a41dfd0537 v4.1.2 2018-11-28 15:42:31 -06:00
Evan Jacobs
c834d52df4 v4.1.1 2018-11-12 17:13:37 -06:00
Evan Jacobs
87d80b4e59 v4.1.0 2018-11-12 11:22:06 -06:00
Evan Jacobs
2aa683f3b2 stop emitting test-results.json
we don't use danger anymore, so it's generated needlessly
2018-11-12 10:59:43 -06:00
Viktor Havrylin
84d49e4003 Merge branch 'master' into add-px-to-unitless 2018-11-12 12:14:58 +02:00
Evan Jacobs
e9baf7200e minor devdependency upgrades 2018-11-12 01:17:46 -06:00
Evan Jacobs
262213defe remove last remaining __DEV__ code
it's not used
2018-11-10 18:48:02 -06:00
Evan Jacobs
ba34abe681 deprecate object-form attrs with functions as keys
See the changelog entry for more information on rationale.
2018-11-10 17:46:54 -06:00
Evan Jacobs
16b22792af add one more test variant, ignore test files from lint-staged 2018-11-10 12:48:37 -06:00
Evan Jacobs
49441eef3f don't do flow through eslint
it makes configuring IDEs a pain
2018-11-10 12:23:39 -06:00
Viktor Havrylin
2dd31f3471 rollback @emotion/is-prop-valid 2018-11-01 10:00:50 +02:00
Viktor Havrylin
512dfcce72 use @emotion/unitless 2018-11-01 09:34:40 +02:00
TomPradat
76ed984d45 Update package.json (#2178)
Fix #2175
2018-11-01 00:21:21 -05:00
Evan Jacobs
1d783f4116 v4.0.3 2018-10-30 11:57:34 -05:00
Evan Jacobs
5899e0fabb add supports-color dependency back
it's used in some of the postcss vendor files for react native
2018-10-29 17:45:30 -05:00
Evan Jacobs
12a8be40fc upgrade react-is, test against react 16.6 2018-10-25 00:15:12 -05:00
Evan Jacobs
356cfca1a6 v4.0.2 2018-10-18 00:25:27 -05:00
Evan Jacobs
8960b59997 v4.0.1 2018-10-17 18:31:51 -05:00
Evan Jacobs
0fccef123a add react-dom as a peerDep
bundlephobia can't process the library without it explicitly
marked
2018-10-15 15:30:04 -05:00
Evan Jacobs
7cb15f2ab7 v4.0.0 2018-10-15 11:56:20 -05:00
Evan Scott
d59ebbf0c0 Revert "update is-prop-valid"
Latest release broke support for uppercase aria/data attrs.

This reverts commit af75481eaf.
2018-10-13 10:36:59 -05:00
Evan Scott
af75481eaf update is-prop-valid 2018-10-13 10:09:24 -05:00
Evan Scott
9c974b2843 v4.0.0-beta.11.3 2018-10-10 13:08:57 -05:00