Skip to content
This repository has been archived by the owner on Jun 6, 2022. It is now read-only.

Commit

Permalink
7.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathantneal committed Sep 15, 2018
1 parent b59e59a commit 407c33c
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changes to PostCSS Custom Media

### 7.0.2 (September 15, 2018)

- Fixed: An issue with re-assigning params as a non-string

### 7.0.1 (September 14, 2018)

- Fixed: An issue with how opposing queries are resolved.
Expand Down
4 changes: 2 additions & 2 deletions lib/transform-atrules.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import transformParamsByCustomParams from './transform-params-by-custom-params';
import transformMediaList from './transform-media-list';
import mediaASTFromString from './media-ast-from-string';

// transform custom pseudo selectors with custom selectors
export default (root, customMedia, opts) => {
root.walkAtRules(mediaAtRuleRegExp, atrule => {
if (customPseudoRegExp.test(atrule.params)) {
const mediaAST = mediaASTFromString(atrule.params);
const params = transformParamsByCustomParams(mediaAST, customMedia, opts);
const params = String(transformMediaList(mediaAST, customMedia));

if (opts.preserve) {
atrule.cloneBefore({ params });
Expand Down
File renamed without changes.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "postcss-custom-media",
"version": "7.0.1",
"version": "7.0.2",
"description": "Use Custom Media Queries in CSS",
"author": "Jonathan Neal <jonathantneal@hotmail.com>",
"contributors": [
Expand Down Expand Up @@ -34,7 +34,7 @@
"@babel/plugin-syntax-dynamic-import": "^7.0.0",
"@babel/preset-env": "^7.0.0",
"babel-eslint": "^9.0.0",
"eslint": "^5.5.0",
"eslint": "^5.6.0",
"eslint-config-dev": "^2.0.0",
"postcss-tape": "^2.2.0",
"pre-commit": "^1.2.2",
Expand Down

0 comments on commit 407c33c

Please sign in to comment.