ampproject / ampstart

AMP Start source code and templates .
https://ampstart.com/
Apache License 2.0
419 stars 152 forks source link

Update dependency css-tree to v1.0.0-alpha9 #828

Closed renovate-bot closed 4 years ago

renovate-bot commented 6 years ago

This PR contains the following updates:

Package Type Update Change
css-tree dependencies patch 1.0.0-alpha19 -> 1.0.0-alpha9
css-tree devDependencies patch 1.0.0-alpha19 -> 1.0.0-alpha9

Release Notes

csstree/csstree ### [`v1.0.0-alpha9`](https://togithub.com/csstree/csstree/blob/master/CHANGELOG.md#​100-alpha9-December-21-2016) [Compare Source](https://togithub.com/csstree/csstree/compare/v1.0.0-alpha8...v1.0.0-alpha9) - Fixed `` generic according to specs that allow a `` equals to zero to be used as valid value ([#​30](https://togithub.com/csstree/csstree/issues/30)) ### [`v1.0.0-alpha8`](https://togithub.com/csstree/csstree/blob/master/CHANGELOG.md#​100-alpha8-November-11-2016) [Compare Source](https://togithub.com/csstree/csstree/compare/v1.0.0-alpha7...v1.0.0-alpha8) - Fixed `Scanner#skip()` issue method when cursor is moving to the end of source - Simplified `Progid` node - Changed behaviour for bad selector processing, now parsing fails instead of selector ignoring - Fixed `` generic syntax - Added `q` unit for `` generic syntax - Refactored syntax parser (performance) - Reduced startup time by implementing lazy syntax parsing (default syntax doesn't parse on module load) - Updated syntax dictionaries and used [`mdn/data`](https://togithub.com/mdn/data) instead of `Template:CSSData` - Renamed `syntax.stringify()` method to `syntax.translate()` - Simplified generic syntax functions, those functions receive a single AST node for checking and should return `true` or `false` - Added exception for values that contains `var()`, those values are always valid for now - Added more tests and increase code coverage to `98.5%` ### [`v1.0.0-alpha7`](https://togithub.com/csstree/csstree/blob/master/CHANGELOG.md#​100-alpha7-October-7-2016) [Compare Source](https://togithub.com/csstree/csstree/compare/v1.0.0-alpha6...v1.0.0-alpha7) - Added support for explicit descendant combinator (`>>`) - Implemented `Type` and `Universal` type nodes - Improved `Number` parsing by including sign and exponent ([#​26](https://togithub.com/csstree/csstree/issues/26)) - Parse `before`, `after`, `first-letter` and `first-line` pseudos with single colon as `PseudoElement` - Changed `FunctionalPseudo` node type to `PseudoClass` - Fixed attribute selector name parsing (namespace edge cases) - Fixed location calculation for specified offset when `eof` is reached - Added more non-standard colors ([#​25](https://togithub.com/csstree/csstree/issues/25)) - Removed obsolete `Syntax#getAll()` method - Fixed various edge cases, code clean up and performance improvements ### [`v1.0.0-alpha6`](https://togithub.com/csstree/csstree/blob/master/CHANGELOG.md#​100-alpha6-September-23-2016) [Compare Source](https://togithub.com/csstree/csstree/compare/0bab7747eb936f91804d2fafb58b240f08b34413...v1.0.0-alpha6) - More accurate positions for syntax mismatch errors - Added [`apple`](https://webkit.org/blog/3709/using-the-system-font-in-web-content/) specific font keywords ([#​20](https://togithub.com/csstree/csstree/issues/20)) - Changed `Property` node stucture from object to string - Renamed `Ruleset` node type to `Rule` - Removed `Argument` node type - Fixed `Dimension` and `Percentage` position computation - Fixed bad selector parsing (temporary solution) - Fixed location computation for CSS with very long lines that may lead to really long parsing with `positions:true` (even freeze) - Fixed `line` and `column` computation for `SyntaxMatch` error - Improved performance of parsing and translation. Now CSSTree is under 10ms in [PostCSS benchmark](https://togithub.com/postcss/benchmark). ### [`v1.0.0-alpha5`](https://togithub.com/csstree/csstree/compare/8d4fbb0d57bd849da5c33c272637b3ed1aac817e...0bab7747eb936f91804d2fafb58b240f08b34413) [Compare Source](https://togithub.com/csstree/csstree/compare/8d4fbb0d57bd849da5c33c272637b3ed1aac817e...0bab7747eb936f91804d2fafb58b240f08b34413) ### [`v1.0.0-alpha4`](https://togithub.com/csstree/csstree/compare/44c3f1e862db5e3136d98761f03c12d3abe82cfa...8d4fbb0d57bd849da5c33c272637b3ed1aac817e) [Compare Source](https://togithub.com/csstree/csstree/compare/44c3f1e862db5e3136d98761f03c12d3abe82cfa...8d4fbb0d57bd849da5c33c272637b3ed1aac817e) ### [`v1.0.0-alpha3`](https://togithub.com/csstree/csstree/compare/v1.0.0-alpha25...44c3f1e862db5e3136d98761f03c12d3abe82cfa) [Compare Source](https://togithub.com/csstree/csstree/compare/v1.0.0-alpha25...44c3f1e862db5e3136d98761f03c12d3abe82cfa) ### [`v1.0.0-alpha25`](https://togithub.com/csstree/csstree/blob/master/CHANGELOG.md#​100-alpha25-October-9-2017) [Compare Source](https://togithub.com/csstree/csstree/compare/v1.0.0-alpha24...v1.0.0-alpha25) - Parser - Added fallback node as argument to `onParseError()` handler - Fixed raw consuming in tolerant mode when selector is invalid (greedy consuming and redundant warnings) - Fixed exception in tolerant mode caused by unknown at-rule with unclosed block - Changed handling of semicolons: - Hanging semicolon inside declaration blocks raise an error or turns into a `Raw` node in tolerant mode instead of being ignored - Semicolon outside of declaration blocks opens a `Rule` node as part of selector instead of being ignored - Aligned `parseAtrulePrelude` behaviour to `parseRulePrelude` - Removed `Raw` node wraping into `AtrulePrelude` when `parseAtrulePrelude` is disabled - Removed error emitting when at-rule has a custom prelude customer but no prelude is found (it should be validated by a lexer later) - Generator - Fixed performance issue with `translateWithSourceMap()`, flattening the string (because of mixing building string and indexing into it) turned it into a quadratic algorithm (approximate numbers can be found in [the quiz created by this case](https://gist.github.com/lahmatiy/ea25d0e623d88ca9848384b5707d52d9)) - Added support for a single solidus hack for `property()` - Minor fixes for custom errors ### [`v1.0.0-alpha24`](https://togithub.com/csstree/csstree/blob/master/CHANGELOG.md#​100-alpha24-September-14-2017) [Compare Source](https://togithub.com/csstree/csstree/compare/v1.0.0-alpha23...v1.0.0-alpha24) - Improved CSSTree to be stable for standart build-in objects extension ([#​58](https://togithub.com/csstree/csstree/issues/58)) - Parser - Renamed rule's `selector` to `prelude`. The reasons: [spec names this part so](https://www.w3.org/TR/css-syntax-3/#qualified-rule), and this branch can contain not only a selector (`SelectorList`) but also a raw payload (`Raw`). What's changed: - Renamed `Rule.selector` to `Rule.prelude` - Renamed `parseSelector` parser option to `parseRulePrelude` - Removed option for selector parse in `SelectorList` - Lexer - Fixed undefined positions in a error when match a syntax to empty or white space only value - Improved `Lexer#checkStructure()` - Return a warning as an object with node reference and message - No exception on unknown node type, return a warning instead ### [`v1.0.0-alpha23`](https://togithub.com/csstree/csstree/blob/master/CHANGELOG.md#​100-alpha23-September-10-2017) [Compare Source](https://togithub.com/csstree/csstree/compare/v1.0.0-alpha22...v1.0.0-alpha23) - Fixed `Tokenizer#getRawLength()`'s false positive balance match to the end of input in some cases ([#​56](https://togithub.com/csstree/csstree/issues/56)) - Rename walker's entry point methods to be the same as CSSTree exposed methods (i.e. `walk()`, `walkUp()` etc) - Rename at-rule's `expression` to `prelude` (since [spec names it so](https://www.w3.org/TR/css-syntax-3/#at-rule)) - `AtruleExpression` node type → `AtrulePrelude` - `Atrule.expression` field → `Atrule.prelude` - `parseAtruleExpression` parser's option → `parseAtrulePrelude` - `atruleExpression` parse context → `atrulePrelude` - `atruleExpression` walk context reference → `atrulePrelude` ### [`v1.0.0-alpha22`](https://togithub.com/csstree/csstree/blob/master/CHANGELOG.md#​100-alpha22-September-8-2017) [Compare Source](https://togithub.com/csstree/csstree/compare/v1.0.0-alpha21...v1.0.0-alpha22) - Parser - Fixed exception on parsing of unclosed `{}-block` in tolerant mode - Added tolerant mode support for `DeclarationList` - Added standalone entry point, i.e. default parser can be used via `require('css-tree/lib/parser')` ([#​47](https://togithub.com/csstree/csstree/issues/47)) - Generator - Changed generator to produce `+n` when `AnPlusB.a` is `+1` to be "round-trip" with parser - Added standalone entry point, i.e. default generators can be used via `require('css-tree/lib/generator')` - Walker - Added standalone entry point, i.e. default walkers can be used via `require('css-tree/lib/walker')` ([#​47](https://togithub.com/csstree/csstree/issues/47)) - Lexer - Added `default` keyword to the list of invalid values for `` (since it reversed per [spec](https://www.w3.org/TR/css-values/#custom-idents)) - Convertors (`toPlainObject()` and `fromPlainObject()`) moved to `lib/convertor` (entry point is `require('css-tree/lib/convertor')`) ### [`v1.0.0-alpha21`](https://togithub.com/csstree/csstree/blob/master/CHANGELOG.md#​100-alpha21-September-5-2017) [Compare Source](https://togithub.com/csstree/csstree/compare/v1.0.0-alpha20...v1.0.0-alpha21) - Tokenizer - Added `Raw` token type - Improved tokenization of `url()` with raw as url to be more spec complient - Added `Tokenizer#balance` array computation on token layout - Added `Tokenizer#getRawLength()` to compute a raw length with respect of block balance - Added `Tokenizer#getTokenStart(offset)` method to get token start offset by token index - Added `idx` and `balance` fields to each token of `Tokenizer#dump()` method result - Parser - Added `onParseError` option - Reworked node parsers that consume a `Raw` node to use a new approach. Since now a `Raw` node builds in `parser#Raw()` function only - Changed semantic of `parser#Raw()`, it takes 5 parameters now (it might to be changed in future) - Changed `parser#tolerantParse()` to pass a start token index to fallback function instead of source offset - Fixed `AtruleExpression` consuming in tolerant mode - Atrule handler to convert an empty `AtruleExpression` node into `null` - Changed `AtruleExpression` handler to always return a node (before it could return a `null` in some cases) - Lexer - Fixed comma match node for `#` multiplier - Added reference name to `SyntaxReferenceError` - Additional fixes on custom errors - Reduced possible corruption of base config by `syntax.fork()` ### [`v1.0.0-alpha20`](https://togithub.com/csstree/csstree/blob/master/CHANGELOG.md#​100-alpha20-August-28-2017) [Compare Source](https://togithub.com/csstree/csstree/compare/f48e93cc2e3639d3297e48121f4e0621555229d9...v1.0.0-alpha20) - Tokenizer - Added `Atrule` token type (`` per spec) - Added `Function` token type (`` per spec) - Added `Url` token type - Replaced `Tokenizer#getTypes()` method with `Tokenizer#dump()` to get all tokens as an array - Renamed `Tokenizer.TYPE.Whitespace` to `Tokenizer.TYPE.WhiteSpace` - Renamed `Tokenizer.findWhitespaceEnd()` to `Tokenizer.findWhiteSpaceEnd()` - Parser - Added initial implementation of tollerant mode (turn on by passing `tolerant: true` option). In this mode parse errors are never occour and any invalid part of CSS turns into a `Raw` node. Current safe points: `Atrule`, `AtruleExpression`, `Rule`, `Selector` and `Declaration`. Feature is experimental and further improvements are planned. - Changed `Atrule.expression` to contain a `AtruleExpression` node or `null` only (other node types is wrapping into a `AtruleExpression` node) - Renamed `AttributeSelector.operator` to `AttributeSelector.matcher` - Generator - `translate()` method is now can take a function as second argument, that recieves every generated chunk. When no function is passed, default handler is used, it concats all the chunks and method returns a string. - Lexer - Used [mdn/data](https://togithub.com/mdn/data) package as source of lexer's grammar instead of local dictionaries - Added `x` unit to `` generic type - Improved match tree: - Omited Group (sequences) match nodes - Omited empty match nodes (for terms with `zero or more` multipliers) - Added `ASTNode` node type to contain a reference to AST node - Fixed node duplication (uncompleted match were added to tree) - Added AST node reference in match nodes - Added comma match node by `#` multiplier - Grammar - Changed `translate()` function to get a handler as third argument (optional). That handler recieves result of node traslation and can be used for decoration purposes. See [example](https://togithub.com/csstree/docs/blob/04c65af44477b5ea05feb373482898122b2a4528/docs/syntax.html#L619-L627) - Added `SyntaxParseError` to grammar export - Reworked group and multipliers representation in syntax tree: - Replaced `Sequence` for `Group` node type (`Sequence` node type removed) - Added `explicit` boolean property for `Group` - Only groups can have a multiplier now (other node types is wrapping into a single term implicit group when multiplier is applied) - Renamed `nonEmpty` Group's property to `disallowEmpty` - Added optimisation for syntax tree by dropping redundant root `Group` when it contains a single `Group` term (return this `Group` as a result) - Changed lexer's match functionality - Changed `Lexer#matchProperty()` and `Lexer#matchType()` to return an object instead of match tree. A match tree stores in `matched` field when AST is matched to grammar successfully, otherwise an error in `error` field. The result object also has some methods to test AST node against a match tree: `getTrace()`, `isType()`, `isProperty()` and `isKeyword()` - Added `Lexer#matchDeclaration()` method - Removed `Lexer#lastMatchError` (error stores in match result object in `error` field) - Added initial implementation of search for AST segments (new lexer methods: `Lexer#findValueSegments()`, `Lexer#findDeclarationValueSegments()` and `Lexer#findAllSegments`) - Implemented `SyntaxReferenceError` for unknown property and type references - Renamed field in resulting object of `property()` function: `variable` → `custom` - Fixed issue with readonly properties (e.g. `line` and `column`) of `Error` and exception on attempt to write in iOS Safari ### [`v1.0.0-alpha2`](https://togithub.com/csstree/csstree/blob/master/CHANGELOG.md#​100-alpha25-October-9-2017) [Compare Source](https://togithub.com/csstree/csstree/compare/v1.0.0-alpha19...f48e93cc2e3639d3297e48121f4e0621555229d9) - Parser - Added fallback node as argument to `onParseError()` handler - Fixed raw consuming in tolerant mode when selector is invalid (greedy consuming and redundant warnings) - Fixed exception in tolerant mode caused by unknown at-rule with unclosed block - Changed handling of semicolons: - Hanging semicolon inside declaration blocks raise an error or turns into a `Raw` node in tolerant mode instead of being ignored - Semicolon outside of declaration blocks opens a `Rule` node as part of selector instead of being ignored - Aligned `parseAtrulePrelude` behaviour to `parseRulePrelude` - Removed `Raw` node wraping into `AtrulePrelude` when `parseAtrulePrelude` is disabled - Removed error emitting when at-rule has a custom prelude customer but no prelude is found (it should be validated by a lexer later) - Generator - Fixed performance issue with `translateWithSourceMap()`, flattening the string (because of mixing building string and indexing into it) turned it into a quadratic algorithm (approximate numbers can be found in [the quiz created by this case](https://gist.github.com/lahmatiy/ea25d0e623d88ca9848384b5707d52d9)) - Added support for a single solidus hack for `property()` - Minor fixes for custom errors

Renovate configuration

:date: Schedule: At any time (no schedule defined).

:vertical_traffic_light: Automerge: Disabled by config. Please merge this manually once you are satisfied.

:recycle: Rebasing: Whenever PR becomes conflicted, or if you modify the PR title to begin with "rebase!".

:no_bell: Ignore: Close this PR and you won't be reminded about these updates again.



Newsflash: Renovate has joined WhiteSource, and is now free for all use. Learn more or view updated terms and privacy policies.

forking-renovate[bot] commented 4 years ago

Renovate Ignore Notification

As this PR has been closed unmerged, Renovate will now ignore this update (1.0.0-alpha9). You will still receive a PR once a newer version is released, so if you wish to permanently ignore this dependency, please add it to the ignoreDeps array of your renovate config.

If this PR was closed by mistake or you changed your mind, you can simply rename this PR and you will soon get a fresh replacement PR opened.