Commit Graph

248 Commits

Author SHA1 Message Date
Phil Pluckthun
b6aa46e3a9 Remove react-is package and from rollup.config.js 2021-01-08 14:41:20 +00: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
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
9e073e3140 nicer inline snapshots for HTML 2020-08-30 13:16:31 -04:00
Evan Jacobs
f5582d9784 use yarn feature to alias npm-trunk version of styled-components 2020-08-29 22:17:15 -04:00
Evan Jacobs
fc203abe6a update eslint config 2020-08-27 17:24:04 -04:00
dependabot[bot]
1311e17ce9 Bump lodash from 4.17.10 to 4.17.19 (#3203)
Bumps [lodash](https://github.com/lodash/lodash) from 4.17.10 to 4.17.19.
- [Release notes](https://github.com/lodash/lodash/releases)
- [Commits](https://github.com/lodash/lodash/compare/4.17.10...4.17.19)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-07-29 11:01:16 -04:00
Evan Jacobs
4293579342 minor dep updates (#3091)
* minor dep updates

* move stuff out of dependencies that shouldn't be there
2020-04-07 00:41:06 -04:00
Evan Jacobs
a35d01e7fc update lockfile 2020-01-30 23:11:30 -05:00
Matt Lubner
092ebcfc42 Regenerate yarn.lock to update fsevents for node>=12 (#2990)
* Regenerate yarn.lock to update fsevents for node>=12

* Update snapshots to reflect minor differences in generated output
2020-01-26 23:17:09 +00:00
Evan Jacobs
dff9510b0b inline stylis-rule-sheet (#2940)
fixes #2874

(and saves some bytes)
2020-01-03 12:06:24 -05:00
Evan Jacobs
cd3ef89673 refactor stylis management (#2936)
* emit differentiated dynamic hashes for subtrees with different stylis plugins

* reorganize hashing files to avoid a cycle

* prehash the stylis plugin function bodies to make later hashing faster

* look for plugin.name in stylisPlugins for uniqueness

* throw an error instead of a dev-time warning if stylis plugins aren't named

minification can introduce the issue, so a dev warning isn't sufficient

* remove unused fallback code

* use stylis-plugin-rtl

* actually add the plugin

* just use phash

* cache djb2 seed
2019-12-29 22:35:55 -05:00
Evan Jacobs
7e11092c7a switch back to mainline hoist-non-react-statics (#2934)
should fix #2930
2019-12-23 11:27:01 -05:00
Evan Jacobs
062cfca5a9 fix building benchmarks 2019-11-07 16:29:15 -05:00
Evan Jacobs
c11750e464 upgrade wsrun, its buggy output has been annoying me 2019-11-07 16:19:19 -05:00
Evan Jacobs
4ee67293c6 inline mixinDeep util (#2846)
* inline mixinDeep util

This will ensure the ES6 syntax gets transpiled properly

* inline MIT license from mixin-deep
2019-11-07 16:02:59 -05:00
Ole-Martin Bratteng
a7d85e0235 Update css-to-react-native to v3.0.0 (#2811) 2019-11-07 16:02:58 -05:00
Evan Jacobs
7541c004f9 replace merge-anything with mixin-deep (#2838)
Saves ~130 bytes
2019-11-07 16:02:58 -05:00
Evan Jacobs
6621b581f1 pin merge-anything to 2.2.x
in later versions they added functionality we don't need that would
just be bloat
2019-11-07 16:02:57 -05:00
Evan Jacobs
d2df615579 update minor deps 2019-11-07 16:02:57 -05:00
Evan Jacobs
5b560e2851 use @emotion/stylis (#2640)
* use @emotion/stylis

Drops the bundle size by a fair amount... the downside is you
can't customize stylis options anymore but still can supply plugins.

This is desirable according to Sultan though as the config interface
will change with the next stylis major.

* reimplement "stylisOptions" as "disableVendorPrefixes"
2019-11-07 16:02:48 -05:00
Evan Jacobs
3484b8c6c1 update internally to later babel-plugin-styled-components 2019-11-07 16:02:47 -05:00
Evan Jacobs
3bc57b3a3a add @babel/traverse, update flowtypes 2019-11-07 16:02:46 -05:00
Evan Jacobs
a7b0b5d342 update prop validator 2019-11-07 16:02:42 -05:00
Evan Jacobs
880cd0600e fix #2613 2019-11-07 16:02:36 -05:00
Evan Jacobs
44e565bf5d update benchmark examples & rewrite a few with more idiomatic examples 2019-11-07 16:02:36 -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
7d0012779f implement defaultProps folding for v5 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
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
b4fb1f957d use shallowequal for equivalency checking instead (#2585)
* use shallowequal for equivalency checking instead

* fix yarn.lock
2019-11-07 16:02:13 -05:00
Evan Jacobs
67ba229daf allow dynamic creation & configuration of stylis per stylesheet (#2565)
* [WIP] allow dynamic creation & configuration of stylis per stylesheet

* middlewares -> plugins

* type the stringifier function

* add a test for customized stylis options

* fix impl

* move tests, add test for stylis-rtl plugin

* add comment on stylis context phase
2019-11-07 16:02:02 -05:00
Phil Pluckthun
a7c1e07e40 Revert benchmarks to vendored SC v4 2019-11-07 16:01:15 -05:00
Evan Jacobs
470ef331ec fix local setup I think 2019-11-07 16:01:13 -05:00
Phil Pluckthun
a2a5e2ded6 Add styled-components v4 to benchmarks 2019-11-07 16:01:13 -05:00
Evan Jacobs
0e92650078 update benchmark emotion example to v10 w/ styled syntax (#2525)
to match how we're doing things with styled-components
2019-11-07 16:00:35 -05:00
Phil Plückthun
930710c54b Fix benchmarks for canary (#2523)
* Move benchmarks to separate package and upgrade

* Add benchmarks to flow's ignored files

* Limit Sail build task to styled-components pkg
2019-11-07 16:00:34 -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
James K Nelson
d088d689fc fix css props when using babel macro with babel-plugin-styled-components 1.10.1 (#2633)
* fix macro on create-react-app

* add tests

* changelog entry

* fix linting error
2019-06-19 23:42:46 -05:00
Ajay Poshak
c369ad7fbf Bump version for @emotion/is-valid-props (#2617) 2019-06-12 12:44:44 -05:00
Evan Jacobs
b7d94195c9 implement folding of defaultProps (#2597)
* update flow stubs

* implement folding of defaultProps

specifically chose the merge-anything library because of its
default handling for non plain-object types (replace, not merge)

* changelog entry
2019-06-05 15:33:19 -05:00
Alexander Nanberg
cbcffa4f77 chore: upgrade sandbox dependencies 2019-01-24 13:56:34 +01: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