Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Add new style-value-parser package #743

Merged
merged 37 commits into from
Mar 11, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
df568ab
chore: Update Flow and type devs
nmn Oct 17, 2024
fadf543
chore: use a css tokenizer to try to speed up parser
nmn Feb 10, 2025
308ad2a
chore: start translating parser to consume tokens
nmn Feb 10, 2025
555c3cf
chore: implement more token-based parser and a test
nmn Feb 11, 2025
27381e3
chore: add a benchmark to compare parser implementations
nmn Feb 11, 2025
6eb8164
chore: delete empty file
nmn Feb 11, 2025
ebcade4
chore: add more tests. Next to fix them all
nmn Feb 11, 2025
19764f2
fix: bugs in the tokenparser core
nmn Feb 11, 2025
08beb5c
fix: many bugs. setOf is still broken
nmn Feb 11, 2025
a38aaa3
chore: improve token parser core a bit
nmn Feb 13, 2025
081ee9d
chore: core fixes and more tests
nmn Feb 13, 2025
95f1aae
chore: all known core bugs fixed
nmn Feb 13, 2025
dba80b2
chore: more parsers added
nmn Feb 13, 2025
80ec68e
chore: Completed <transform-function> css type
nmn Feb 14, 2025
427d1d5
chore: All but one core types implemented
nmn Feb 15, 2025
e54440e
chore: Added many more benchmarks
nmn Feb 15, 2025
30270f4
fix: avoid using .toSorted
nmn Feb 15, 2025
a4acd03
fix: work around typo signal
nmn Feb 15, 2025
0bcab5e
fix: call parsers parser not parse
nmn Feb 15, 2025
079b60c
feat: Added parser for most media queries
nmn Feb 18, 2025
832e71e
fix: Add support for single word media query rules
nmn Feb 21, 2025
5f0ee57
chore: Add support for parsing some ranges
nmn Feb 25, 2025
9851707
chore: recursive media query parser partially working
nmn Feb 27, 2025
361d605
chore: handles everything but or and , now (also calc)
nmn Feb 27, 2025
adc9e6a
fix: recursive media query parser finally works
nmn Feb 28, 2025
83b6e6e
fix: remove broken media query implementation.
nmn Feb 28, 2025
1236720
chore: move benchmarks
nmn Mar 1, 2025
7ef1668
fix flow errors in benchmark files
nmn Mar 1, 2025
966d911
chore: add minimal calc parser
nmn Mar 3, 2025
2187f31
tests for calc
nmn Mar 4, 2025
f36db44
calc parser fixes
nmn Mar 5, 2025
7ebc35a
calc parser complete other than nested functions
nmn Mar 6, 2025
a871b44
Ported over existin CSS properties to TokenParser
nmn Mar 7, 2025
f2a0a85
remove dependency on scripts
mellyeliu Mar 11, 2025
f037879
fix typos
mellyeliu Mar 11, 2025
a3a8a4d
fix: temp disable flow for TokenParser straggler
mellyeliu Mar 11, 2025
5e4e414
prettier
mellyeliu Mar 11, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .flowconfig
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ flow-typed
[lints]

[options]
enums=true
emoji=true
this_type_guards=true
casting_syntax=as
Expand All @@ -26,7 +27,9 @@ munge_underscores=true
suppress_type=$FlowFixMe
suppress_type=$FlowTODO
module.name_mapper='^@stylexjs\/shared$' -> '<PROJECT_ROOT>/packages/shared/src/index.js'
module.name_mapper='^@stylexjs\/shared\/lib\/\([a-zA-Z0-9_\-]+\)$' -> '<PROJECT_ROOT>/packages/shared/src/\1'
module.name_mapper='^@stylexjs\/shared\/lib\/\([a-zA-Z0-9_\/\-]+\)$' -> '<PROJECT_ROOT>/packages/shared/src/\1'
module.name_mapper='^@stylexjs\/style-value-parser$' -> '<PROJECT_ROOT>/packages/style-value-parser/src/index.js'
module.name_mapper='^@stylexjs\/style-value-parser\/lib\/\([a-zA-Z0-9_\/\-]+\)$' -> '<PROJECT_ROOT>/packages/style-value-parser/src/\1'
module.name_mapper='^@stylexjs/stylex$' -> '<PROJECT_ROOT>/packages/stylex/src/stylex.js'
module.name_mapper='^@stylexjs/stylex\/lib\/\([a-zA-Z0-9_\-]+\)$' -> '<PROJECT_ROOT>/packages/stylex/src/\1'
module.name_mapper='^@stylexjs/babel-plugin$' -> '<PROJECT_ROOT>/packages/babel-plugin/src/index.js'
Expand Down
Loading