tailwindcss 1.9.5 → 1.9.6

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
@@ -9,6 +9,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
9
9
 
10
10
  - Nothing yet!
11
11
 
12
+ ## [1.9.6]
13
+
14
+ ### Changed
15
+
16
+ - The `presets` feature had unexpected behavior where a preset config without its own `presets` key would not extend the default config. ([#2662](https://github.com/tailwindlabs/tailwindcss/pull/2662))
17
+
18
+ If you were depending on this unexpected behavior, just add `presets: []` to your own preset to exclude the default configuration.
19
+
12
20
  ## [1.9.5]
13
21
 
14
22
  ### Fixed
@@ -1000,8 +1008,9 @@ No release notes
1000
1008
 
1001
1009
  - Everything!
1002
1010
 
1003
- [unreleased]: https://github.com/tailwindlabs/tailwindcss/compare/v1.9.5...HEAD
1004
- [1.9.5]: https://github.com/tailwindlabs/tailwindcss/compare/v1.9.3...v1.9.5
1011
+ [unreleased]: https://github.com/tailwindlabs/tailwindcss/compare/v1.9.6...HEAD
1012
+ [1.9.6]: https://github.com/tailwindlabs/tailwindcss/compare/v1.9.5...v1.9.6
1013
+ [1.9.5]: https://github.com/tailwindlabs/tailwindcss/compare/v1.9.4...v1.9.5
1005
1014
  [1.9.4]: https://github.com/tailwindlabs/tailwindcss/compare/v1.9.3...v1.9.4
1006
1015
  [1.9.3]: https://github.com/tailwindlabs/tailwindcss/compare/v1.9.2...v1.9.3
1007
1016
  [1.9.2]: https://github.com/tailwindlabs/tailwindcss/compare/v1.9.1...v1.9.2
@@ -27,9 +27,9 @@ var _lodash = require("lodash");
27
27
 
28
28
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
29
29
 
30
- function getAllConfigs(config, defaultPresets = [_defaultConfigStub.default]) {
31
- const configs = (0, _lodash.flatMap)([...(0, _lodash.get)(config, 'presets', defaultPresets)].reverse(), preset => {
32
- return getAllConfigs(preset, []);
30
+ function getAllConfigs(config) {
31
+ const configs = (0, _lodash.flatMap)([...(0, _lodash.get)(config, 'presets', [_defaultConfigStub.default])].reverse(), preset => {
32
+ return getAllConfigs(preset);
33
33
  });
34
34
  const features = {
35
35
  uniformColorPalette: _uniformColorPalette.default,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tailwindcss",
3
- "version": "1.9.5",
3
+ "version": "1.9.6",
4
4
  "description": "A utility-first CSS framework for rapidly building custom user interfaces.",
5
5
  "license": "MIT",
6
6
  "main": "lib/index.js",
@@ -8,6 +8,7 @@ module.exports = {
8
8
  prefix: '',
9
9
  important: false,
10
10
  separator: ':',
11
+ presets: [],
11
12
  theme: {
12
13
  screens: {
13
14
  sm: '640px',