Skip to content

Commit 0ef7c4d

Browse files
committedSep 25, 2024··
update dependencies
1 parent 3de0622 commit 0ef7c4d

8 files changed

+139
-71
lines changed
 

‎CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changes to PostCSS Normalize
22

3+
### 13.0.1
4+
5+
- Maintenance release after updating dependencies
6+
37
### 13.0.0
48

59
- Pin versions of `@csstools/normalize.css` and `sanitize.css`

‎index.cjs

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ var _documentCurrentScript = typeof document !== 'undefined' ? document.currentS
99
const assign = (...objects) => Object.assign(...objects);
1010
const create = (...objects) => assign(Object.create(null), ...objects);
1111

12-
const require$1 = node_module.createRequire((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.src || new URL('index.cjs', document.baseURI).href)));
12+
const require$1 = node_module.createRequire((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('index.cjs', document.baseURI).href)));
1313

1414
// get resolved filenames for normalize.css
1515
const normalizeCSS = require$1.resolve('@csstools/normalize.css');

‎package-lock.json

+116-51
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎package.json

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "postcss-normalize",
3-
"version": "13.0.0",
3+
"version": "13.0.1",
44
"description": "Use the parts of normalize.css or sanitize.css you need from your browserslist",
55
"author": "Jonathan Neal <jonathantneal@hotmail.com>",
66
"license": "CC0-1.0",
@@ -21,8 +21,8 @@
2121
"scripts": {
2222
"prepublishOnly": "npm test",
2323
"build": "rollup --config .rollup.mjs --silent",
24-
"test": "npm run build && npm run tape && node .test.cjs && node .test.mjs",
25-
"tape": "postcss-tape"
24+
"test": "npm run build && node --test",
25+
"test:rewrite-expects": "REWRITE_EXPECTS=true node --test"
2626
},
2727
"engines": {
2828
"node": ">= 18"
@@ -33,14 +33,14 @@
3333
},
3434
"dependencies": {
3535
"@csstools/normalize.css": "12.1.1",
36-
"postcss-browser-comments": "^4",
36+
"postcss-browser-comments": "^6.0.1",
3737
"sanitize.css": "13.0.0"
3838
},
3939
"devDependencies": {
40+
"@csstools/postcss-tape": "^5.0.0",
4041
"browserslist": "^4.16.5",
4142
"postcss": "^8.4.31",
42-
"postcss-import": "^14.0.2",
43-
"postcss-tape": "^6.0.1",
43+
"postcss-import": "^16.0.0",
4444
"rollup": "^4.21.2"
4545
},
4646
"babel": {

‎.test.mjs ‎test/_import.mjs

File renamed without changes.

‎.test.cjs ‎test/_require.cjs

File renamed without changes.

‎.tape.js ‎test/_tape.mjs

+10-11
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
import { postcssTape } from '@csstools/postcss-tape';
2+
import plugin from 'postcss-normalize';
3+
import postcss from 'postcss';
4+
import postcssImport from 'postcss-import';
5+
16
const fixed_browserslist = [
27
"IE 10",
38
"ie_mob 10",
@@ -11,7 +16,7 @@ const fixed_browserslist = [
1116
"> 0.01%"
1217
]
1318

14-
module.exports = {
19+
postcssTape(plugin)({
1520
/* Test Basic Usage */
1621
'basic-normalize': {
1722
message: 'supports @import-normalize usage',
@@ -116,14 +121,8 @@ module.exports = {
116121
'postcss-import': {
117122
message: 'supports PostCSS Import Usage',
118123
source: 'import-normalize.css',
119-
plugin: (() => {
120-
const postcss = require('postcss')
121-
const postcssImport = require('postcss-import')
122-
const postcssNormalize = require('.')
123-
124-
const plugin = postcss([postcssImport(postcssNormalize({ browsers: fixed_browserslist }).postcssImport()) ])
125-
126-
return plugin
127-
})()
124+
plugins: [(() => {
125+
return postcss([postcssImport(plugin({ browsers: fixed_browserslist }).postcssImport()) ])
126+
})()]
128127
}
129-
}
128+
})

‎test/postcss-import.expect.css

+2-2
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)
Please sign in to comment.