postcss-normalize-unicode 5.0.0-rc.1 → 5.0.2

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/dist/index.js CHANGED
@@ -78,7 +78,7 @@ function pluginCreator() {
78
78
  postcssPlugin: 'postcss-normalize-unicode',
79
79
 
80
80
  prepare(result) {
81
- const cache = {};
81
+ const cache = new Map();
82
82
  const resultOpts = result.opts || {};
83
83
  const browsers = (0, _browserslist.default)(null, {
84
84
  stats: resultOpts.stats,
@@ -91,14 +91,14 @@ function pluginCreator() {
91
91
  css.walkDecls(/^unicode-range$/i, decl => {
92
92
  const value = decl.value;
93
93
 
94
- if (cache[value]) {
95
- decl.value = cache[value];
94
+ if (cache.has(value)) {
95
+ decl.value = cache.get(value);
96
96
  return;
97
97
  }
98
98
 
99
99
  const newValue = transform(value, isLegacy);
100
100
  decl.value = newValue;
101
- cache[value] = newValue;
101
+ cache.set(value, newValue);
102
102
  });
103
103
  }
104
104
 
package/package.json CHANGED
@@ -1,17 +1,12 @@
1
1
  {
2
2
  "name": "postcss-normalize-unicode",
3
- "version": "5.0.0-rc.1",
3
+ "version": "5.0.2",
4
4
  "description": "Normalize unicode-range descriptors, and can convert to wildcard ranges.",
5
5
  "main": "dist/index.js",
6
6
  "files": [
7
7
  "dist",
8
8
  "LICENSE-MIT"
9
9
  ],
10
- "scripts": {
11
- "prebuild": "del-cli dist",
12
- "build": "cross-env BABEL_ENV=publish babel src --config-file ../../babel.config.js --out-dir dist --ignore \"**/__tests__/\"",
13
- "prepublish": "yarn build"
14
- },
15
10
  "keywords": [
16
11
  "css",
17
12
  "postcss",
@@ -26,8 +21,8 @@
26
21
  },
27
22
  "repository": "cssnano/cssnano",
28
23
  "dependencies": {
29
- "browserslist": "^4.16.0",
30
- "postcss-value-parser": "^4.1.0"
24
+ "browserslist": "^4.16.6",
25
+ "postcss-value-parser": "^4.2.0"
31
26
  },
32
27
  "bugs": {
33
28
  "url": "https://github.com/cssnano/cssnano/issues"
@@ -36,10 +31,14 @@
36
31
  "node": "^10 || ^12 || >=14.0"
37
32
  },
38
33
  "devDependencies": {
39
- "postcss": "^8.2.1"
34
+ "postcss": "^8.2.15"
40
35
  },
41
36
  "peerDependencies": {
42
- "postcss": "^8.2.1"
37
+ "postcss": "^8.2.15"
38
+ },
39
+ "scripts": {
40
+ "prebuild": "rimraf dist",
41
+ "build": "babel src --config-file ../../babel.config.json --out-dir dist --ignore \"**/__tests__/\""
43
42
  },
44
- "gitHead": "114efb0092fff944dd4c8a28d184add24d8fde3e"
45
- }
43
+ "readme": "# [postcss][postcss]-normalize-unicode\n\n> Normalize unicode with PostCSS.\n\n## Install\n\nWith [npm](https://npmjs.org/package/postcss-normalize-unicode) do:\n\n```\nnpm install postcss-normalize-unicode --save\n```\n\n## Example\n\n### Input\n\n```css\n@font-face{\n font-family: test;\n unicode-range: u+2b00-2bff\n}\n```\n\n### Output\n\n```css\n@font-face{\n font-family: test;\n unicode-range: u+2b??\n}\n``` \n\n## Usage\n\nSee the [PostCSS documentation](https://github.com/postcss/postcss#usage) for\nexamples for your environment.\n\n## Contributors\n\nSee [CONTRIBUTORS.md](https://github.com/cssnano/cssnano/blob/master/CONTRIBUTORS.md).\n\n## License\n\nMIT © [Ben Briggs](http://beneb.info)\n\n[postcss]: https://github.com/postcss/postcss\n"
44
+ }
package/CHANGELOG.md DELETED
@@ -1,40 +0,0 @@
1
- # Change Log
2
-
3
- All notable changes to this project will be documented in this file.
4
- See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
-
6
- # [5.0.0-rc.1](https://github.com/cssnano/cssnano/compare/postcss-normalize-unicode@5.0.0-rc.0...postcss-normalize-unicode@5.0.0-rc.1) (2021-03-04)
7
-
8
- **Note:** Version bump only for package postcss-normalize-unicode
9
-
10
-
11
-
12
-
13
-
14
- # 5.0.0-rc.0 (2021-02-19)
15
-
16
-
17
- ### chore
18
-
19
- * minimum require version of node is 10.13 ([#871](https://github.com/cssnano/cssnano/issues/871)) ([28bda24](https://github.com/cssnano/cssnano/commit/28bda243e32ce3ba89b3c358a5f78727b3732f11))
20
-
21
-
22
- ### Features
23
-
24
- * migarete to PostCSS 8 ([#975](https://github.com/cssnano/cssnano/issues/975)) ([40b82dc](https://github.com/cssnano/cssnano/commit/40b82dca7f53ac02cd4fe62846dec79b898ccb49))
25
-
26
-
27
- ### BREAKING CHANGES
28
-
29
- * minimum supported `postcss` version is `8.2.1`
30
- * minimum require version of node is 10.13
31
-
32
-
33
-
34
- ## 4.1.1 (2018-09-24)
35
-
36
-
37
- ### Bug Fixes
38
-
39
- * postcss-normalize-unicode add browserslist to dependencies ([#577](https://github.com/cssnano/cssnano/issues/577)) ([39ec020](https://github.com/cssnano/cssnano/commit/39ec020d9d6fc6ed72bf8de6e856752726d4fb51))
40
- * **postcss-merge-longhand:** not mangle border output ([#555](https://github.com/cssnano/cssnano/issues/555)) ([9a70605](https://github.com/cssnano/cssnano/commit/9a706050b621e7795a9bf74eb7110b5c81804ffe)), closes [#553](https://github.com/cssnano/cssnano/issues/553) [#554](https://github.com/cssnano/cssnano/issues/554)