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

refactor(core): integrate new CSS selector parser (from Tokey) #1884

Merged
merged 46 commits into from
Oct 21, 2021

Commits on Jun 22, 2021

  1. refactor: processor use new selector parser

    - add `@tokey/css-selector-parser` dependency to core
    - only internal processor process effected
    - keep backwards compatibility with SRule
    - future intentions comments and removed export in selector-utils
    idoros committed Jun 22, 2021
    Configuration menu
    Copy the full SHA
    a436340 View commit details
    Browse the repository at this point in the history
  2. chore: deprecate SRule and SDecl

    - move to types / utils into deprecation folder
    - mark fields and related utils as deprecated with intention to remove
    - add alternative getStylableAstData/setStylableAstData
    - no breaking change - keep lib exports
    idoros committed Jun 22, 2021
    Configuration menu
    Copy the full SHA
    739d3fa View commit details
    Browse the repository at this point in the history

Commits on Jun 27, 2021

  1. refactor: transformer use new selector parser

    - there are probably breaking changes:
    - some exports are not exported anymore
    - ast return type from scopeSelector / resolveSelectorElements
    idoros committed Jun 27, 2021
    Configuration menu
    Copy the full SHA
    0280022 View commit details
    Browse the repository at this point in the history
  2. refactor: use nesting selector ast

    - transformer uses the new ast insterad of an & element
    - new scopeNestedSelector to replace previous scopeSelector
    - deprecated stylable-utils/scopeSelector
    - fix infinite loop issues when scoping selecotr contained an &
    idoros committed Jun 27, 2021
    Configuration menu
    Copy the full SHA
    a58ecc0 View commit details
    Browse the repository at this point in the history

Commits on Jun 28, 2021

  1. chore: deprecate selector-util matchSelectorTarget

    - move to deprecated folder
    - mark as deprecated on index export
    - kept tests until removed (moved to proper folder)
    idoros committed Jun 28, 2021
    Configuration menu
    Copy the full SHA
    e2fc0d4 View commit details
    Browse the repository at this point in the history

Commits on Jun 29, 2021

  1. chore: deprecate the rest of selector-utils

    - move current exported api to deprecation folder
    - mark as deprecated on index exports
    idoros committed Jun 29, 2021
    Configuration menu
    Copy the full SHA
    a822a81 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    e9edad5 View commit details
    Browse the repository at this point in the history
  3. fix: remove unused import

    idoros committed Jun 29, 2021
    Configuration menu
    Copy the full SHA
    02d3f74 View commit details
    Browse the repository at this point in the history

Commits on Jul 1, 2021

  1. refactor: deprecate some stylable utils

    - utils that used deprected stylable/selector utils
    - change all stylable utils to use non deprecated helpers
    - moved old tests to deprecated folder
    - new utils that work with new ast to replace deprecated utils
    - copied tests for new utils
    - changed scopeNestedSelector to return both ast & selector (immutable)
    idoros committed Jul 1, 2021
    Configuration menu
    Copy the full SHA
    23ccca2 View commit details
    Browse the repository at this point in the history

Commits on Jul 6, 2021

  1. refactor: parseSelector with cache replace astData

    - new util to parse and cache selectors (return readonly by default)
    - new util to figure out isSimpleSelector
    - remove setting of selectorAst/isSimpleSelector/selectorType on astData
    - remove all usages of selectorAst/isSimpleSelector/selectorType
    - change utils to specify they accept readonly if they don't mutate
    - add reverse map for scoped class names on meta
    idoros committed Jul 6, 2021
    Configuration menu
    Copy the full SHA
    dae06d4 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    1645f7c View commit details
    Browse the repository at this point in the history

Commits on Jul 13, 2021

  1. refactor: change deprecated usages in all packages

    - change parsing to tokey css selector parser
    idoros committed Jul 13, 2021
    Configuration menu
    Copy the full SHA
    203c105 View commit details
    Browse the repository at this point in the history
  2. test: validate non native functional selectors

    - add errors for selectors stylable doesn't support
    - exception for pseudo classes value() reference
    idoros committed Jul 13, 2021
    Configuration menu
    Copy the full SHA
    9716d01 View commit details
    Browse the repository at this point in the history
  3. refactor: SRule.stScopeSelector alternative

    - export getRuleScopeSelector(rule) as a backwards/forwards alternative
    - use getRuleScopeSelector internally
    idoros committed Jul 13, 2021
    Configuration menu
    Copy the full SHA
    44e6c6e View commit details
    Browse the repository at this point in the history
  4. refactor: deprecate SRule.mixins and meta.mixins

    - add deprecated warn on stylableMeta.mixins
    - add deprecation warn on SRule.mixins
    - still use SRule.mixins internally for now
    - removed unused stylable AST data
    - rename ignoreWarn to ignoreDeprecationWarn
    idoros committed Jul 13, 2021
    Configuration menu
    Copy the full SHA
    fae73b1 View commit details
    Browse the repository at this point in the history
  5. chore: add deprecation annotation

    - add to deprecated types and functions
    idoros committed Jul 13, 2021
    Configuration menu
    Copy the full SHA
    26e1a85 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    e921c7a View commit details
    Browse the repository at this point in the history

Commits on Jul 14, 2021

  1. Configuration menu
    Copy the full SHA
    8e6a8ce View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    719739b View commit details
    Browse the repository at this point in the history

Commits on Jul 15, 2021

  1. Configuration menu
    Copy the full SHA
    e60f530 View commit details
    Browse the repository at this point in the history
  2. refactor(core): renames

    barak007 committed Jul 15, 2021
    Configuration menu
    Copy the full SHA
    b5ce4ab View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    581a727 View commit details
    Browse the repository at this point in the history

Commits on Jul 18, 2021

  1. chore: support escaping

    - breaking change for defining escaped state
    - breaking change for escaped classes in js
    idoros committed Jul 18, 2021
    Configuration menu
    Copy the full SHA
    283235b View commit details
    Browse the repository at this point in the history

Commits on Jul 19, 2021

  1. chore: cleanups

    idoros committed Jul 19, 2021
    Configuration menu
    Copy the full SHA
    7fe146c View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    143c3e4 View commit details
    Browse the repository at this point in the history
  3. refactor: validate state in transform pre scoping

    - remove reverse class map
    - deprecate validateStateDefinition
    - new validateRuleStateDefinition to replace validateStateDefinition
    idoros committed Jul 19, 2021
    Configuration menu
    Copy the full SHA
    f5021fc View commit details
    Browse the repository at this point in the history
  4. chore: upgrade to tokey selector parser 0.3.0

    - change AST names
    - removed unnecessary readonly casting
    idoros committed Jul 19, 2021
    Configuration menu
    Copy the full SHA
    f6711f3 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    176ecc4 View commit details
    Browse the repository at this point in the history

Commits on Aug 1, 2021

  1. fix: transform custom state param only as state

    - no selector transformation on the parameter itself
    - stop collecting reserved pseudo classes as -st-states
    - new warning when collecting reserved classes as states
    idoros committed Aug 1, 2021
    Configuration menu
    Copy the full SHA
    23ced6c View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    7a1c487 View commit details
    Browse the repository at this point in the history

Commits on Aug 10, 2021

  1. Configuration menu
    Copy the full SHA
    a9e579d View commit details
    Browse the repository at this point in the history
  2. fix: changes from master merge

    idoros committed Aug 10, 2021
    Configuration menu
    Copy the full SHA
    85a8b9f View commit details
    Browse the repository at this point in the history

Commits on Aug 16, 2021

  1. refactor: use readonly walk from tokey

    - replace 2 versions of selector walk with a single one from tokey
    - use immutable type versions from tokey
    - remove DeepReadOnlyAll type
    idoros committed Aug 16, 2021
    Configuration menu
    Copy the full SHA
    626f179 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    2044c4e View commit details
    Browse the repository at this point in the history
  3. chore: stop spreading inner selector

    - no change is done directly on it during transform
    idoros committed Aug 16, 2021
    Configuration menu
    Copy the full SHA
    7961203 View commit details
    Browse the repository at this point in the history
  4. chore: upgrade @Tokey pacakges

    - moved from toky to @Tokey
    - removed unused dependency in @stylable/rollup-plugin
    idoros committed Aug 16, 2021
    Configuration menu
    Copy the full SHA
    5c49314 View commit details
    Browse the repository at this point in the history

Commits on Aug 17, 2021

  1. Configuration menu
    Copy the full SHA
    347846d View commit details
    Browse the repository at this point in the history

Commits on Aug 24, 2021

  1. chore: add deprecated exports

    idoros committed Aug 24, 2021
    Configuration menu
    Copy the full SHA
    cf54124 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    d752f93 View commit details
    Browse the repository at this point in the history

Commits on Aug 29, 2021

  1. Configuration menu
    Copy the full SHA
    b271173 View commit details
    Browse the repository at this point in the history

Commits on Sep 9, 2021

  1. Configuration menu
    Copy the full SHA
    9f5f8cb View commit details
    Browse the repository at this point in the history

Commits on Sep 19, 2021

  1. Configuration menu
    Copy the full SHA
    421173f View commit details
    Browse the repository at this point in the history

Commits on Oct 4, 2021

  1. Configuration menu
    Copy the full SHA
    1b0d7c4 View commit details
    Browse the repository at this point in the history

Commits on Oct 5, 2021

  1. Configuration menu
    Copy the full SHA
    92264d2 View commit details
    Browse the repository at this point in the history

Commits on Oct 6, 2021

  1. Configuration menu
    Copy the full SHA
    d80da19 View commit details
    Browse the repository at this point in the history

Commits on Oct 21, 2021

  1. Configuration menu
    Copy the full SHA
    acece4e View commit details
    Browse the repository at this point in the history