tailwindcss 0.0.0-insiders.58bd301 → 0.0.0-insiders.5ea67b0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ Nothing yet!
11
+
12
+ ## [3.0.19] - 2022-02-07
13
+
10
14
  ### Fixed
11
15
 
12
16
  - Fix preflight border color fallback ([#7288](https://github.com/tailwindlabs/tailwindcss/pull/7288))
@@ -1843,7 +1847,8 @@ No release notes
1843
1847
 
1844
1848
  - Everything!
1845
1849
 
1846
- [unreleased]: https://github.com/tailwindlabs/tailwindcss/compare/v3.0.18...HEAD
1850
+ [unreleased]: https://github.com/tailwindlabs/tailwindcss/compare/v3.0.19...HEAD
1851
+ [3.0.19]: https://github.com/tailwindlabs/tailwindcss/compare/v3.0.18...v3.0.19
1847
1852
  [3.0.18]: https://github.com/tailwindlabs/tailwindcss/compare/v3.0.17...v3.0.18
1848
1853
  [3.0.17]: https://github.com/tailwindlabs/tailwindcss/compare/v3.0.16...v3.0.17
1849
1854
  [3.0.16]: https://github.com/tailwindlabs/tailwindcss/compare/v3.0.15...v3.0.16
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tailwindcss",
3
- "version": "0.0.0-insiders.58bd301",
3
+ "version": "0.0.0-insiders.5ea67b0",
4
4
  "description": "A utility-first CSS framework for rapidly building custom user interfaces.",
5
5
  "license": "MIT",
6
6
  "main": "lib/index.js",
@@ -50,7 +50,7 @@
50
50
  "eslint-plugin-prettier": "^4.0.0",
51
51
  "jest": "^27.4.7",
52
52
  "jest-diff": "^27.4.6",
53
- "postcss": "^8.4.5",
53
+ "postcss": "^8.4.6",
54
54
  "prettier": "^2.5.1",
55
55
  "rimraf": "^3.0.0"
56
56
  },
package/peers/index.js CHANGED
@@ -4407,11 +4407,13 @@ var require_parser = __commonJS({
4407
4407
  if (brackets.length > 0)
4408
4408
  this.unclosedBracket(bracket);
4409
4409
  if (end && colon) {
4410
- while (tokens.length) {
4411
- token = tokens[tokens.length - 1][0];
4412
- if (token !== "space" && token !== "comment")
4413
- break;
4414
- this.tokenizer.back(tokens.pop());
4410
+ if (!customProperty) {
4411
+ while (tokens.length) {
4412
+ token = tokens[tokens.length - 1][0];
4413
+ if (token !== "space" && token !== "comment")
4414
+ break;
4415
+ this.tokenizer.back(tokens.pop());
4416
+ }
4415
4417
  }
4416
4418
  this.decl(tokens, customProperty);
4417
4419
  } else {
@@ -4467,7 +4469,14 @@ var require_parser = __commonJS({
4467
4469
  node.raws.before += node.prop[0];
4468
4470
  node.prop = node.prop.slice(1);
4469
4471
  }
4470
- let firstSpaces = this.spacesAndCommentsFromStart(tokens);
4472
+ let firstSpaces = [];
4473
+ let next;
4474
+ while (tokens.length) {
4475
+ next = tokens[0][0];
4476
+ if (next !== "space" && next !== "comment")
4477
+ break;
4478
+ firstSpaces.push(tokens.shift());
4479
+ }
4471
4480
  this.precheckMissedSemicolon(tokens);
4472
4481
  for (let i = tokens.length - 1; i >= 0; i--) {
4473
4482
  token = tokens[i];
@@ -4499,12 +4508,11 @@ var require_parser = __commonJS({
4499
4508
  }
4500
4509
  }
4501
4510
  let hasWord = tokens.some((i) => i[0] !== "space" && i[0] !== "comment");
4502
- this.raw(node, "value", tokens);
4503
4511
  if (hasWord) {
4504
- node.raws.between += firstSpaces;
4505
- } else {
4506
- node.value = firstSpaces + node.value;
4512
+ node.raws.between += firstSpaces.map((i) => i[1]).join("");
4513
+ firstSpaces = [];
4507
4514
  }
4515
+ this.raw(node, "value", firstSpaces.concat(tokens), customProperty);
4508
4516
  if (node.value.includes(":") && !customProperty) {
4509
4517
  this.checkMissedSemicolon(tokens);
4510
4518
  }
@@ -4635,28 +4643,25 @@ var require_parser = __commonJS({
4635
4643
  if (node.type !== "comment")
4636
4644
  this.semicolon = false;
4637
4645
  }
4638
- raw(node, prop, tokens) {
4646
+ raw(node, prop, tokens, customProperty) {
4639
4647
  let token, type;
4640
4648
  let length = tokens.length;
4641
4649
  let value = "";
4642
4650
  let clean = true;
4643
4651
  let next, prev;
4644
- let pattern = /^([#.|])?(\w)+/i;
4645
4652
  for (let i = 0; i < length; i += 1) {
4646
4653
  token = tokens[i];
4647
4654
  type = token[0];
4648
- if (type === "comment" && node.type === "rule") {
4655
+ if (type === "space" && i === length - 1 && !customProperty) {
4656
+ clean = false;
4657
+ } else if (type === "comment") {
4649
4658
  prev = tokens[i - 1];
4650
4659
  next = tokens[i + 1];
4651
- if (prev[0] !== "space" && next[0] !== "space" && pattern.test(prev[1]) && pattern.test(next[1])) {
4660
+ if (prev && next && prev[0] !== "space" && next[0] !== "space") {
4652
4661
  value += token[1];
4653
4662
  } else {
4654
4663
  clean = false;
4655
4664
  }
4656
- continue;
4657
- }
4658
- if (type === "comment" || type === "space" && i === length - 1) {
4659
- clean = false;
4660
4665
  } else {
4661
4666
  value += token[1];
4662
4667
  }
@@ -5356,8 +5361,12 @@ var require_no_work_result = __commonJS({
5356
5361
  } catch (error) {
5357
5362
  this.error = error;
5358
5363
  }
5359
- this._root = root;
5360
- return root;
5364
+ if (this.error) {
5365
+ throw this.error;
5366
+ } else {
5367
+ this._root = root;
5368
+ return root;
5369
+ }
5361
5370
  }
5362
5371
  get messages() {
5363
5372
  return [];
@@ -5408,7 +5417,7 @@ var require_processor = __commonJS({
5408
5417
  var Root = require_root();
5409
5418
  var Processor = class {
5410
5419
  constructor(plugins = []) {
5411
- this.version = "8.4.5";
5420
+ this.version = "8.4.6";
5412
5421
  this.plugins = this.normalize(plugins);
5413
5422
  }
5414
5423
  use(plugin) {