Giter Site home page Giter Site logo

Comments (24)

mathieumg avatar mathieumg commented on August 15, 2024 3

Fixed in v0.3.1, this could be closed!

from compression-webpack-plugin.

graingert avatar graingert commented on August 15, 2024 2

@jornare v0.3.0...v0.3.1

from compression-webpack-plugin.

jsg2021 avatar jsg2021 commented on August 15, 2024 1

@Icehunter "^0.x.y" is special case... just as @cchamberlain said. when the major is "0" the caret makes minor locked.

from compression-webpack-plugin.

samkelleher avatar samkelleher commented on August 15, 2024

Can confirm that rolling back to 0.2 works normally with no other changes.

from compression-webpack-plugin.

calvinl avatar calvinl commented on August 15, 2024

Just saw this error as well. Confirmed rolling back to 0.2.0 works.

from compression-webpack-plugin.

mjrussell avatar mjrussell commented on August 15, 2024

👍

from compression-webpack-plugin.

AymanNatsheh avatar AymanNatsheh commented on August 15, 2024

rolling back to 0.2.0 works

from compression-webpack-plugin.

yacodes avatar yacodes commented on August 15, 2024

Also facing this issue.

from compression-webpack-plugin.

hqxluoyang avatar hqxluoyang commented on August 15, 2024

And I just happened to meet.

from compression-webpack-plugin.

Icehunter avatar Icehunter commented on August 15, 2024

I have this same issue as well. My bigger concern is why this repo is not following semver? I saw 0.3.0 was published as a "breaking change". Should that not have been 1.0.0? Because NPM uses ^X.X.X by default this just possibly will break anyone's usage unless they explicitly hardcode versions.

from compression-webpack-plugin.

Icehunter avatar Icehunter commented on August 15, 2024

Fix proposed:
#18

from compression-webpack-plugin.

jsg2021 avatar jsg2021 commented on August 15, 2024

@Icehunter it is kindof semvar :)

http://semver.npmjs.com/ put in "^0.2.0" for "compression-webpack-plugin" and see that only 0.2.0 is highlighted.

from compression-webpack-plugin.

Icehunter avatar Icehunter commented on August 15, 2024

@jsg2021 They may not have updated the front portion of the site but the default behavior of NPM has changed since 4+ (to the best of my knowledge).

Such as if you do:
npm i hapi@^11.0.0
[email protected] /Users/icehunter/GitHub/nodeplayground
└── [email protected] extraneous

The same if I did:
npm i hapi@^10.0.0
[email protected] /Users/icehunter/GitHub/nodeplayground
└── [email protected] extraneous

If you click through to https://docs.npmjs.com/getting-started/semantic-versioning you can see that they have it as:

Patch releases: 1.0 or 1.0.x or ~1.0.4
Minor releases: 1 or 1.x or ^1.0.4
Major releases: * or x

So ^1.0.4 and 1.x are the same.

from compression-webpack-plugin.

cchamberlain avatar cchamberlain commented on August 15, 2024

This has been breaking my builds and throwing lots of errors since the inclusion of the node-zopfli stuff on windows.

from compression-webpack-plugin.

cchamberlain avatar cchamberlain commented on August 15, 2024

Also @Icehunter, anything semver 0.x.x is considered initial development and may change at any time. See http://semver.org/#spec-item-4

from compression-webpack-plugin.

Icehunter avatar Icehunter commented on August 15, 2024

Fair enough. I'll wait till this hits 1.0 to use it then. Personally though even if it's under 0.X I follow it as much as I can :)

from compression-webpack-plugin.

cchamberlain avatar cchamberlain commented on August 15, 2024

@Icehunter I've been using 0.2.0 in prod for some time on Windows and OSX and haven't had any issues until 0.3.0. 🍻

from compression-webpack-plugin.

graingert avatar graingert commented on August 15, 2024

yeah I get this problem also

from compression-webpack-plugin.

robbyoconnor avatar robbyoconnor commented on August 15, 2024

I got this issue too

from compression-webpack-plugin.

zjhiphop avatar zjhiphop commented on August 15, 2024

Any progress for this issue?

from compression-webpack-plugin.

zjhiphop avatar zjhiphop commented on August 15, 2024

The 0.2.0 works, but the build result seems strange.
The config i used:

{
        asset: "[path].gz[query]",
        algorithm: "gzip",
        test: /\.js$|\.html$/,
        threshold: 10240,
        minRatio: 0.8
    }

After build, there generated a file named with '[path].gz[query]', that's so boring. Any one could help with it?

from compression-webpack-plugin.

calvinl avatar calvinl commented on August 15, 2024

@zjhiphop that's the syntax for 0.3.0. Try it with {file}.gz instead if you're using 0.2.0.

from compression-webpack-plugin.

dshorowitz avatar dshorowitz commented on August 15, 2024

+1 Also have this issue

from compression-webpack-plugin.

jornare avatar jornare commented on August 15, 2024

All the change I can see in 1.3.1 is the bump in version. Am I mistaken?

from compression-webpack-plugin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.