Skip to content

Commit 3297048

Browse files
committed
Remove flow last occurence
1 parent c6a7bda commit 3297048

File tree

6 files changed

+41
-74
lines changed

6 files changed

+41
-74
lines changed

.github/workflows/continuous-integration.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
- run: yarn install --frozen-lockfile
2323
- run: yarn run test
2424
- run: yarn run lint
25-
- run: yarn run flow
25+
- run: yarn run tsc --noEmit
2626
- run: yarn run smoke cjs 15.6.2
2727
- run: yarn run smoke esm 15.6.2
2828
- run: yarn run smoke cjs 16.7.0

.npmignore

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
**/*.spec.js
2-
**/*.spec.js.flow
32

43
.github/
54
!dist/
@@ -9,7 +8,6 @@ tests/
98
.babelrc
109
.eslintignore
1110
.eslintrc.js
12-
.flowconfig
1311
.travis.yml
1412
.prettier
1513
.prettierignore

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,8 @@
8484
"react-is": "17.0.2"
8585
},
8686
"jest": {
87-
"setupFilesAfterEnv": ["<rootDir>tests/setupTests.ts"]
87+
"setupFilesAfterEnv": [
88+
"<rootDir>tests/setupTests.ts"
89+
]
8890
}
8991
}

rollup.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export default {
3131
presets: [
3232
'@babel/preset-env',
3333
'@babel/preset-react',
34-
'@babel/preset-flow',
34+
'@babel/preset-typescript',
3535
],
3636
}),
3737
resolve({

src/formatter/formatPropValue.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,6 @@ const formatPropValue = (
2222
return `"${escape(propValue)}"`;
2323
}
2424

25-
// > "Symbols (new in ECMAScript 2015, not yet supported in Flow)"
26-
// @see: https://flow.org/en/docs/types/primitives/
27-
// $FlowFixMe: Flow does not support Symbol
2825
if (typeof propValue === 'symbol') {
2926
const symbolDescription = propValue
3027
.valueOf()

yarn.lock

Lines changed: 36 additions & 66 deletions
Original file line numberDiff line numberDiff line change
@@ -2470,14 +2470,7 @@ anymatch@^2.0.0:
24702470
micromatch "^3.1.4"
24712471
normalize-path "^2.1.1"
24722472

2473-
anymatch@^3.0.1:
2474-
version "3.0.1"
2475-
resolved "https://registry.yarnpkg.com/anymatch/-/anymatch-3.0.1.tgz#a47b8a9e3c3f7f17420276e05ef39746ac1777df"
2476-
dependencies:
2477-
normalize-path "^3.0.0"
2478-
picomatch "^2.0.4"
2479-
2480-
anymatch@^3.0.3:
2473+
anymatch@^3.0.3, anymatch@~3.1.2:
24812474
version "3.1.2"
24822475
resolved "https://registry.yarnpkg.com/anymatch/-/anymatch-3.1.2.tgz#c0557c096af32f106198f4f4e2a383537e378716"
24832476
integrity sha512-P43ePfOAIupkguHUycrc4qJ9kz8ZiuOUijaETwX7THt0Y/GNK7v0aa8rY816xWjZ7rJdA5XdMcpVFTKMq+RvWg==
@@ -2638,10 +2631,6 @@ astral-regex@^2.0.0:
26382631
resolved "https://registry.yarnpkg.com/astral-regex/-/astral-regex-2.0.0.tgz#483143c567aeed4785759c0865786dc77d7d2e31"
26392632
integrity sha512-Z7tMw1ytTXt5jqMcOP+OQteU1VuNK9Y02uuJtKQ1Sv69jXQKKg5cibLwGJow8yzZP+eAc18EmLGPal0bp36rvQ==
26402633

2641-
async-each@^1.0.3:
2642-
version "1.0.3"
2643-
resolved "https://registry.yarnpkg.com/async-each/-/async-each-1.0.3.tgz#b727dbf87d7651602f06f4d4ac387f47d91b0cbf"
2644-
26452634
asynckit@^0.4.0:
26462635
version "0.4.0"
26472636
resolved "https://registry.yarnpkg.com/asynckit/-/asynckit-0.4.0.tgz#c79ed97f7f34cb8f2ba1bc9790bcc366474b4b79"
@@ -3040,7 +3029,7 @@ braces@^2.3.1:
30403029
split-string "^3.0.2"
30413030
to-regex "^3.0.1"
30423031

3043-
braces@^3.0.1, braces@^3.0.2, braces@~3.0.2:
3032+
braces@^3.0.1, braces@~3.0.2:
30443033
version "3.0.2"
30453034
resolved "https://registry.yarnpkg.com/braces/-/braces-3.0.2.tgz#3454e1a462ee8d599e236df336cd9ea4f8afe107"
30463035
integrity sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==
@@ -3261,11 +3250,7 @@ camelcase@^4.1.0:
32613250
version "4.1.0"
32623251
resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-4.1.0.tgz#d545635be1e33c542649c69173e5de6acfae34dd"
32633252

3264-
camelcase@^5.0.0:
3265-
version "5.0.0"
3266-
resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-5.0.0.tgz#03295527d58bd3cd4aa75363f35b2e8d97be2f42"
3267-
3268-
camelcase@^5.3.1:
3253+
camelcase@^5.0.0, camelcase@^5.3.1:
32693254
version "5.3.1"
32703255
resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-5.3.1.tgz#e3c9b31569e106811df242f715725a1f4c494320"
32713256
integrity sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==
@@ -3393,19 +3378,19 @@ cheerio@^1.0.0-rc.3:
33933378
parse5 "^3.0.1"
33943379

33953380
chokidar@^3.0.0:
3396-
version "3.0.0"
3397-
resolved "https://registry.yarnpkg.com/chokidar/-/chokidar-3.0.0.tgz#6b538f0fd6d5d31d5dd2b59e05426bec0f49aa40"
3381+
version "3.5.2"
3382+
resolved "https://registry.yarnpkg.com/chokidar/-/chokidar-3.5.2.tgz#dba3976fcadb016f66fd365021d91600d01c1e75"
3383+
integrity sha512-ekGhOnNVPgT77r4K/U3GDhu+FQ2S8TnK/s2KbIGXi0SZWuwkZ2QNyfWdZW+TVfn84DpEP7rLeCt2UI6bJ8GwbQ==
33983384
dependencies:
3399-
anymatch "^3.0.1"
3400-
async-each "^1.0.3"
3401-
braces "^3.0.2"
3402-
glob-parent "^5.0.0"
3403-
is-binary-path "^2.1.0"
3404-
is-glob "^4.0.1"
3405-
normalize-path "^3.0.0"
3406-
readdirp "^3.0.1"
3385+
anymatch "~3.1.2"
3386+
braces "~3.0.2"
3387+
glob-parent "~5.1.2"
3388+
is-binary-path "~2.1.0"
3389+
is-glob "~4.0.1"
3390+
normalize-path "~3.0.0"
3391+
readdirp "~3.6.0"
34073392
optionalDependencies:
3408-
fsevents "^2.0.6"
3393+
fsevents "~2.3.2"
34093394

34103395
chokidar@^3.4.0:
34113396
version "3.5.0"
@@ -5305,6 +5290,7 @@ fragment-cache@^0.2.1:
53055290
fs-extra@^8.1.0:
53065291
version "8.1.0"
53075292
resolved "https://registry.yarnpkg.com/fs-extra/-/fs-extra-8.1.0.tgz#49d43c45a88cd9677668cb7be1b46efdb8d2e1c0"
5293+
integrity sha512-yhlQgA6mnOJUKOsRUFsgJdQCvkKhcz8tlZG5HBQfReYZy46OwLcY+Zia0mtdHsOo9y/hP+CxMN0TU9QxoOtG4g==
53085294
dependencies:
53095295
graceful-fs "^4.2.0"
53105296
jsonfile "^4.0.0"
@@ -5340,10 +5326,6 @@ fsevents@^1.2.7:
53405326
nan "^2.12.1"
53415327
node-pre-gyp "^0.12.0"
53425328

5343-
fsevents@^2.0.6:
5344-
version "2.0.6"
5345-
resolved "https://registry.yarnpkg.com/fsevents/-/fsevents-2.0.6.tgz#87b19df0bfb4a1a51d7ddb51b01b5f3bedb40c33"
5346-
53475329
fsevents@^2.3.2, fsevents@~2.3.2:
53485330
version "2.3.2"
53495331
resolved "https://registry.yarnpkg.com/fsevents/-/fsevents-2.3.2.tgz#8a526f78b8fdf4623b709e0b975c52c24c02fd1a"
@@ -5415,11 +5397,7 @@ gensync@^1.0.0-beta.2:
54155397
resolved "https://registry.yarnpkg.com/gensync/-/gensync-1.0.0-beta.2.tgz#32a6ee76c3d7f52d46b2b1ae5d93fea8580a25e0"
54165398
integrity sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==
54175399

5418-
get-caller-file@^2.0.1:
5419-
version "2.0.1"
5420-
resolved "https://registry.yarnpkg.com/get-caller-file/-/get-caller-file-2.0.1.tgz#25835260d3a2b9665fcdbb08cb039a7bbf7011c0"
5421-
5422-
get-caller-file@^2.0.5:
5400+
get-caller-file@^2.0.1, get-caller-file@^2.0.5:
54235401
version "2.0.5"
54245402
resolved "https://registry.yarnpkg.com/get-caller-file/-/get-caller-file-2.0.5.tgz#4f94412a82db32f36e3b0b9741f8a97feb031f7e"
54255403
integrity sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==
@@ -5567,7 +5545,7 @@ glob-parent@^5.0.0:
55675545
dependencies:
55685546
is-glob "^4.0.1"
55695547

5570-
glob-parent@^5.1.2:
5548+
glob-parent@^5.1.2, glob-parent@~5.1.2:
55715549
version "5.1.2"
55725550
resolved "https://registry.yarnpkg.com/glob-parent/-/glob-parent-5.1.2.tgz#869832c58034fe68a4093c17dc15e8340d8401c4"
55735551
integrity sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==
@@ -5696,11 +5674,7 @@ graceful-fs@^4.1.15:
56965674
version "4.1.15"
56975675
resolved "https://registry.yarnpkg.com/graceful-fs/-/graceful-fs-4.1.15.tgz#ffb703e1066e8a0eeaa4c8b80ba9253eeefbfb00"
56985676

5699-
graceful-fs@^4.2.0:
5700-
version "4.2.0"
5701-
resolved "https://registry.yarnpkg.com/graceful-fs/-/graceful-fs-4.2.0.tgz#8d8fdc73977cb04104721cb53666c1ca64cd328b"
5702-
5703-
graceful-fs@^4.2.4:
5677+
graceful-fs@^4.2.0, graceful-fs@^4.2.4:
57045678
version "4.2.8"
57055679
resolved "https://registry.yarnpkg.com/graceful-fs/-/graceful-fs-4.2.8.tgz#e412b8d33f5e006593cbd3cee6df9f2cebbe802a"
57065680
integrity sha512-qkIilPUYcNhJpd33n0GBXTB1MMPp14TxEsEs0pTrsSVucApsYzW5V+Q8Qxhik6KU3evy+qkAAowTByymK0avdg==
@@ -6115,7 +6089,7 @@ is-bigint@^1.0.1:
61156089
dependencies:
61166090
has-bigints "^1.0.1"
61176091

6118-
is-binary-path@^2.1.0, is-binary-path@~2.1.0:
6092+
is-binary-path@~2.1.0:
61196093
version "2.1.0"
61206094
resolved "https://registry.yarnpkg.com/is-binary-path/-/is-binary-path-2.1.0.tgz#ea1f7f3b80f064236e83470f86c09c254fb45b09"
61216095
integrity sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==
@@ -7258,6 +7232,7 @@ [email protected]:
72587232
jsonfile@^4.0.0:
72597233
version "4.0.0"
72607234
resolved "https://registry.yarnpkg.com/jsonfile/-/jsonfile-4.0.0.tgz#8771aae0799b64076b76640fca058f9c10e33ecb"
7235+
integrity sha1-h3Gq4HmbZAdrdmQPygWPnBDjPss=
72617236
optionalDependencies:
72627237
graceful-fs "^4.1.6"
72637238

@@ -7286,10 +7261,9 @@ jsx-ast-utils@^3.1.0:
72867261
object.assign "^4.1.2"
72877262

72887263
kefir@^3.7.3:
7289-
version "3.7.4"
7290-
resolved "https://registry.yarnpkg.com/kefir/-/kefir-3.7.4.tgz#edc6192f686be611ac5c882426f74bf0ee287ef7"
7291-
dependencies:
7292-
symbol-observable "1.0.4"
7264+
version "3.8.8"
7265+
resolved "https://registry.yarnpkg.com/kefir/-/kefir-3.8.8.tgz#235932ddfbed422acebf5d7cba503035e9ea05c5"
7266+
integrity sha512-xWga7QCZsR2Wjy2vNL3Kq/irT+IwxwItEWycRRlT5yhqHZK2fmEhziP+LzcJBWSTAMranGKtGTQ6lFpyJS3+jA==
72937267

72947268
keyv@^3.0.0:
72957269
version "3.1.0"
@@ -9210,19 +9184,20 @@ readable-stream@~1.0.26, readable-stream@~1.0.26-4:
92109184
isarray "0.0.1"
92119185
string_decoder "~0.10.x"
92129186

9213-
readdirp@^3.0.1:
9214-
version "3.0.1"
9215-
resolved "https://registry.yarnpkg.com/readdirp/-/readdirp-3.0.1.tgz#14a8875883c5575c235579624a1e177cb0b1ec58"
9216-
dependencies:
9217-
picomatch "^2.0.4"
9218-
92199187
readdirp@~3.5.0:
92209188
version "3.5.0"
92219189
resolved "https://registry.yarnpkg.com/readdirp/-/readdirp-3.5.0.tgz#9ba74c019b15d365278d2e91bb8c48d7b4d42c9e"
92229190
integrity sha512-cMhu7c/8rdhkHXWsY+osBhfSy0JikwpHK/5+imo+LpeasTF8ouErHrlYkwT0++njiyuDvc7OFY5T3ukvZ8qmFQ==
92239191
dependencies:
92249192
picomatch "^2.2.1"
92259193

9194+
readdirp@~3.6.0:
9195+
version "3.6.0"
9196+
resolved "https://registry.yarnpkg.com/readdirp/-/readdirp-3.6.0.tgz#74a370bd857116e245b29cc97340cd431a02a6c7"
9197+
integrity sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==
9198+
dependencies:
9199+
picomatch "^2.2.1"
9200+
92269201
realpath-native@^1.1.0:
92279202
version "1.1.0"
92289203
resolved "https://registry.yarnpkg.com/realpath-native/-/realpath-native-1.1.0.tgz#2003294fea23fb0672f2476ebe22fcf498a2d65c"
@@ -9464,6 +9439,7 @@ require-main-filename@^1.0.1:
94649439
require-main-filename@^2.0.0:
94659440
version "2.0.0"
94669441
resolved "https://registry.yarnpkg.com/require-main-filename/-/require-main-filename-2.0.0.tgz#d0b329ecc7cc0f61649f62215be69af54aa8989b"
9442+
integrity sha512-NKN5kMDylKuldxYLSUfrbo5Tuzh4hd+2E8NPPX02mZtn1VuREQToYe/ZdlJy+J3uCpfaiGF05e7B8W0iXbQHmg==
94679443

94689444
resolve-cwd@^3.0.0:
94699445
version "3.0.0"
@@ -10394,10 +10370,6 @@ supports-hyperlinks@^2.0.0:
1039410370
has-flag "^4.0.0"
1039510371
supports-color "^7.0.0"
1039610372

10397-
10398-
version "1.0.4"
10399-
resolved "https://registry.yarnpkg.com/symbol-observable/-/symbol-observable-1.0.4.tgz#29bf615d4aa7121bdd898b22d4b3f9bc4e2aa03d"
10400-
1040110373
symbol-tree@^3.2.4:
1040210374
version "3.2.4"
1040310375
resolved "https://registry.yarnpkg.com/symbol-tree/-/symbol-tree-3.2.4.tgz#430637d248ba77e078883951fb9aa0eed7c63fa2"
@@ -10849,11 +10821,7 @@ unist-util-visit@^1.1.0:
1084910821
version "1.1.3"
1085010822
resolved "https://registry.yarnpkg.com/unist-util-visit/-/unist-util-visit-1.1.3.tgz#ec268e731b9d277a79a5b5aa0643990e405d600b"
1085110823

10852-
universalify@^0.1.0:
10853-
version "0.1.1"
10854-
resolved "https://registry.yarnpkg.com/universalify/-/universalify-0.1.1.tgz#fa71badd4437af4c148841e3b3b165f9e9e590b7"
10855-
10856-
universalify@^0.1.2:
10824+
universalify@^0.1.0, universalify@^0.1.2:
1085710825
version "0.1.2"
1085810826
resolved "https://registry.yarnpkg.com/universalify/-/universalify-0.1.2.tgz#b646f69be3942dabcecc9d6639c80dc105efaa66"
1085910827
integrity sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==
@@ -11088,6 +11056,7 @@ which-boxed-primitive@^1.0.2:
1108811056
which-module@^2.0.0:
1108911057
version "2.0.0"
1109011058
resolved "https://registry.yarnpkg.com/which-module/-/which-module-2.0.0.tgz#d9ef07dce77b9902b8a3a8fa4b31c3e3f7e6e87a"
11059+
integrity sha1-2e8H3Od7mQK4o6j6SzHD4/fm6Ho=
1109111060

1109211061
which@^1.2.9:
1109311062
version "1.3.0"
@@ -11216,8 +11185,9 @@ xtend@~3.0.0:
1121611185
resolved "https://registry.yarnpkg.com/xtend/-/xtend-3.0.0.tgz#5cce7407baf642cba7becda568111c493f59665a"
1121711186

1121811187
y18n@^4.0.0:
11219-
version "4.0.0"
11220-
resolved "https://registry.yarnpkg.com/y18n/-/y18n-4.0.0.tgz#95ef94f85ecc81d007c264e190a120f0a3c8566b"
11188+
version "4.0.3"
11189+
resolved "https://registry.yarnpkg.com/y18n/-/y18n-4.0.3.tgz#b5f259c82cd6e336921efd7bfd8bf560de9eeedf"
11190+
integrity sha512-JKhqTOwSrqNA1NY5lSztJ1GrBiUodLMmIZuLiDaMRJ+itFd+ABVE8XBjOvIWL+rSqNDC74LCSFmlb/U4UZ4hJQ==
1122111191

1122211192
y18n@^5.0.5:
1122311193
version "5.0.8"

0 commit comments

Comments
 (0)