Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: postcss/postcss-import
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 12.0.0
Choose a base ref
...
head repository: postcss/postcss-import
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 12.0.1
Choose a head ref
  • 6 commits
  • 4 files changed
  • 3 contributors

Commits on Aug 4, 2018

  1. Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    20dd08f View commit details

Commits on Aug 8, 2018

  1. Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    a9a7ab2 View commit details

Commits on Aug 11, 2018

  1. Copy the full SHA
    85c7e6a View commit details

Commits on Oct 1, 2018

  1. Copy the full SHA
    f98dd1a View commit details

Commits on Oct 23, 2018

  1. Copy the full SHA
    67f4553 View commit details
  2. 12.0.1

    RyanZim committed Oct 23, 2018
    Copy the full SHA
    397cc44 View commit details
Showing with 12 additions and 7 deletions.
  1. +4 −0 CHANGELOG.md
  2. +1 −0 index.js
  3. +5 −7 package.json
  4. +2 −0 test/import-events.js
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# 12.0.1 / 2018-10-22

- Add `plugin` property to dependency messages ([#379](https://github.com/postcss/postcss-import/issues/379), [#380](https://github.com/postcss/postcss-import/pull/380))

# 12.0.0 - 2018-08-04

- Removed: Support for Node.js v4
1 change: 1 addition & 0 deletions index.js
Original file line number Diff line number Diff line change
@@ -199,6 +199,7 @@ function resolveImportId(result, stmt, options, state) {
resolved.forEach(file => {
result.messages.push({
type: "dependency",
plugin: "postcss-import",
file: file,
parent: sourceFile,
})
12 changes: 5 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "postcss-import",
"version": "12.0.0",
"version": "12.0.1",
"description": "PostCSS plugin to import CSS files",
"keywords": [
"css",
@@ -31,18 +31,16 @@
"eslint": "^5.0.0",
"eslint-config-i-am-meticulous": "^11.0.0",
"eslint-plugin-import": "^2.2.0",
"eslint-plugin-prettier": "^2.2.0",
"npmpub": "^4.0.0",
"eslint-plugin-prettier": "^3.0.0",
"postcss-scss": "^2.0.0",
"prettier": "1.14.0",
"sugarss": "^1.0.0"
"prettier": "~1.14.0",
"sugarss": "^2.0.0"
},
"scripts": {
"ci": "eslint . && ava",
"lint": "eslint . --fix",
"pretest": "npm run lint",
"test": "ava",
"release": "npmpub"
"test": "ava"
},
"eslintConfig": {
"extends": "eslint-config-i-am-meticulous",
2 changes: 2 additions & 0 deletions test/import-events.js
Original file line number Diff line number Diff line change
@@ -22,11 +22,13 @@ test("should add dependency message for each import", t => {
const expected = [
{
type: "dependency",
plugin: "postcss-import",
file: resolve("test/fixtures/imports/media-import-level-2.css"),
parent: resolve("test/fixtures/media-import.css"),
},
{
type: "dependency",
plugin: "postcss-import",
file: resolve("test/fixtures/imports/media-import-level-3.css"),
parent: resolve("test/fixtures/imports/media-import-level-2.css"),
},