项目原始demo,不改动
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.
Repozitorijs ir arhivēts. Tam var aplūkot failus un to var klonēt, bet nevar iesūtīt jaunas izmaiņas, kā arī atvērt jaunas problēmas/izmaiņu pieprasījumus.

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157
  1. # 2.2.3
  2. * Resolves an issue where the parser would not reduce multiple spaces between an
  3. ampersand and another simple selector in lossy mode (thanks to @adam-26).
  4. # 2.2.2
  5. * No longer hangs on an unescaped semicolon; instead the parser will throw
  6. an exception for these cases.
  7. # 2.2.1
  8. * Allows a consumer to specify whitespace tokens when creating a new Node
  9. (thanks to @Semigradsky).
  10. # 2.2.0
  11. * Added a new option to normalize whitespace when parsing the selector string
  12. (thanks to @adam-26).
  13. # 2.1.1
  14. * Better unquoted value handling within attribute selectors
  15. (thanks to @evilebottnawi).
  16. # 2.1.0
  17. * Added: Use string constants for all node types & expose them on the main
  18. parser instance (thanks to @Aweary).
  19. # 2.0.0
  20. This release contains the following breaking changes:
  21. * Renamed all `eachInside` iterators to `walk`. For example, `eachTag` is now
  22. `walkTags`, and `eachInside` is now `walk`.
  23. * Renamed `Node#removeSelf()` to `Node#remove()`.
  24. * Renamed `Container#remove()` to `Container#removeChild()`.
  25. * Renamed `Node#raw` to `Node#raws` (thanks to @davidtheclark).
  26. * Now parses `&` as the *nesting* selector, rather than a *tag* selector.
  27. * Fixes misinterpretation of Sass interpolation (e.g. `#{foo}`) as an
  28. id selector (thanks to @davidtheclark).
  29. and;
  30. * Fixes parsing of attribute selectors with equals signs in them
  31. (e.g. `[data-attr="foo=bar"]`) (thanks to @montmanu).
  32. * Adds `quoted` and `raw.unquoted` properties to attribute nodes
  33. (thanks to @davidtheclark).
  34. # 1.3.3
  35. * Fixes an infinite loop on `)` and `]` tokens when they had no opening pairs.
  36. Now postcss-selector-parser will throw when it encounters these lone tokens.
  37. # 1.3.2
  38. * Now uses plain integers rather than `str.charCodeAt(0)` for compiled builds.
  39. # 1.3.1
  40. * Update flatten to v1.x (thanks to @shinnn).
  41. # 1.3.0
  42. * Adds a new node type, `String`, to fix a crash on selectors such as
  43. `foo:bar("test")`.
  44. # 1.2.1
  45. * Fixes a crash when the parser encountered a trailing combinator.
  46. # 1.2.0
  47. * A more descriptive error is thrown when the parser expects to find a
  48. pseudo-class/pseudo-element (thanks to @ashelley).
  49. * Adds support for line/column locations for selector nodes, as well as a
  50. `Node#sourceIndex` method (thanks to @davidtheclark).
  51. # 1.1.4
  52. * Fixes a crash when a selector started with a `>` combinator. The module will
  53. now no longer throw if a selector has a leading/trailing combinator node.
  54. # 1.1.3
  55. * Fixes a crash on `@` tokens.
  56. # 1.1.2
  57. * Fixes an infinite loop caused by using parentheses in a non-pseudo element
  58. context.
  59. # 1.1.1
  60. * Fixes a crash when a backslash ended a selector string.
  61. # 1.1.0
  62. * Adds support for replacing multiple nodes at once with `replaceWith`
  63. (thanks to @jonathantneal).
  64. * Parser no longer throws on sequential IDs and trailing commas, to support
  65. parsing of selector hacks.
  66. # 1.0.1
  67. * Fixes using `insertAfter` and `insertBefore` during iteration.
  68. # 1.0.0
  69. * Adds `clone` and `replaceWith` methods to nodes.
  70. * Adds `insertBefore` and `insertAfter` to containers.
  71. * Stabilises API.
  72. # 0.0.5
  73. * Fixes crash on extra whitespace inside a pseudo selector's parentheses.
  74. * Adds sort function to the container class.
  75. * Enables the parser to pass its input through without transforming.
  76. * Iteration-safe `each` and `eachInside`.
  77. # 0.0.4
  78. * Tidy up redundant duplication.
  79. * Fixes a bug where the parser would loop infinitely on universal selectors
  80. inside pseudo selectors.
  81. * Adds `length` getter and `eachInside`, `map`, `reduce` to the container class.
  82. * When a selector has been removed from the tree, the root node will no longer
  83. cast it to a string.
  84. * Adds node type iterators to the container class (e.g. `eachComment`).
  85. * Adds filter function to the container class.
  86. * Adds split function to the container class.
  87. * Create new node types by doing `parser.id(opts)` etc.
  88. * Adds support for pseudo classes anywhere in the selector.
  89. # 0.0.3
  90. * Adds `next` and `prev` to the node class.
  91. * Adds `first` and `last` getters to the container class.
  92. * Adds `every` and `some` iterators to the container class.
  93. * Add `empty` alias for `removeAll`.
  94. * Combinators are now types of node.
  95. * Fixes the at method so that it is not an alias for `index`.
  96. * Tidy up creation of new nodes in the parser.
  97. * Refactors how namespaces are handled for consistency & less redundant code.
  98. * Refactors AST to use `nodes` exclusively, and eliminates excessive nesting.
  99. * Fixes nested pseudo parsing.
  100. * Fixes whitespace parsing.
  101. # 0.0.2
  102. * Adds support for namespace selectors.
  103. * Adds support for selectors joined by escaped spaces - such as `.\31\ 0`.
  104. # 0.0.1
  105. * Initial release.