css-loader icon indicating copy to clipboard operation
css-loader copied to clipboard

Update dependencies

Open patricksmms opened this issue 8 years ago • 12 comments

Most of the dependencies are outdated.

Some of them don't include license files, therefore can't be used legally, but in their latest versions that has been cleared out.

Also some have been renamed and have modified APIs: babel-code-frame -> @babel/code-frame postcss-modules-scope -> postcss-icss-composes postcss-modules-values -> postcss-icss-values

patricksmms avatar Nov 01 '18 13:11 patricksmms

Impossible solve now, we use old css modules specification, you point on ICSS spec what is not stable

alexander-akait avatar Nov 01 '18 13:11 alexander-akait

Only babel-code-frame can be updated

alexander-akait avatar Nov 01 '18 13:11 alexander-akait

Oh. Then unfortunately we won't be able to use css-loader, as not all of its dependencies have license files in their packages (a legal requirement).

patricksmms avatar Nov 01 '18 14:11 patricksmms

@patricksmms this packages have license field (with MIT) and it is enough for legal reasons

alexander-akait avatar Nov 01 '18 15:11 alexander-akait

It's not. MIT license requires the inclusion of the full license in all the copies of the software, as clearly stated

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. https://opensource.org/licenses/MIT

patricksmms avatar Nov 01 '18 15:11 patricksmms

@patricksmms feel free to send a PR to old version plugins and we update their here

alexander-akait avatar Nov 01 '18 16:11 alexander-akait

License problem with css-selector-tokenizer already solved, you can send a PR with updated version here

alexander-akait avatar Nov 01 '18 16:11 alexander-akait

Once we have [email protected] and [email protected] published, with the license files, we can update the dependencies as follows:


  "dependencies": {
    "@babel/code-frame": "^7.0.0",
    "css-selector-tokenizer": "^0.7.1",
    "icss-utils": "^3.0.1",
    "loader-utils": "^1.1.0",
    "lodash": "^4.17.11",
    "postcss": "^6.0.23",
    "postcss-modules-extract-imports": "^2.0.0",
    "postcss-modules-local-by-default": "^1.2.0",
    "postcss-modules-scope": "^1.1.1",
    "postcss-modules-values": "^1.3.1",
    "postcss-value-parser": "^3.3.1",
    "source-list-map": "^2.0.1"
  },
  "devDependencies": {
    "codecov": "^3.1.0",
    "eslint": "5.8.0",
    "istanbul": "^0.4.5",
    "mocha": "^5.2.0",
    "should": "^13.2.3",
    "standard-version": "^4.4.0"
  },

and change the line 229 of lib/processCss.js to:

'\n\n' + formatCodeFrame.codeFrameColumns(source, { start: { line: loc.line, column: loc.column } }) + '\n';

patricksmms avatar Nov 01 '18 18:11 patricksmms

Yep

alexander-akait avatar Nov 01 '18 18:11 alexander-akait

Done in master, will be release in near future

alexander-akait avatar Nov 23 '18 14:11 alexander-akait

Shouldn't loader-utils dependency be updated in the master branch? I think it should be 1.1.0 but it's 1.0.2

ghost avatar Dec 20 '18 13:12 ghost

@sepikas We use "loader-utils": "^1.0.2", so updating or installation always fetch latest version, please read about semver and how dependencies work in package.json

alexander-akait avatar Dec 20 '18 13:12 alexander-akait