Code Monkey home page Code Monkey logo

Comments (9)

photopea avatar photopea commented on June 5, 2024 5

@Scimonster I think the NPM version of UPNG.js is outdated, could you please update it?

from upng.js.

photopea avatar photopea commented on June 5, 2024 2

@tiagoskaneta Could you put it on NPM yourself and give us a link?

I really dont like redundancy (having to publish and update the same thing at two different places). I do not use NPM. Why dont you just copy-paste it from here?

from upng.js.

photopea avatar photopea commented on June 5, 2024 1

@mootari can you upload the latest UPNG.js to NPM? You can make it separately, I will update the link in our README.md

from upng.js.

mn4367 avatar mn4367 commented on June 5, 2024 1

Before releasing a new version on NPM some lines would have to be (re-)added which were missing in the last commit:

Instead of

var UPNG = {};

at the begin of the file it should be

;(function(){
var UPNG = {};

// Make available for import by `require()`
var pako;
if (typeof module == "object") {module.exports = UPNG;}  else {window.UPNG = UPNG;}
if (typeof require == "function") {pako = require("pako");}  else {pako = window.pako;}
function log() { if (typeof process=="undefined" || process.env.NODE_ENV=="development") console.log.apply(console, arguments);  }
(function(UPNG, pako){

and at the end of the file

})(UPNG, pako);
})();

is missing.

from upng.js.

photopea avatar photopea commented on June 5, 2024

It is on the line 399.

from upng.js.

mootari avatar mootari commented on June 5, 2024

The latest version available on npm was released in December 2017. Changes made since then include the addition of encodeLL and docs for quantize.

from upng.js.

mootari avatar mootari commented on June 5, 2024

@Scimonster you're listed as having access to the package. Could you please publish a new release?

@photopea I'd rather not, because the update wouldn't propagate and because I don't feel comfortable managing a package for which I don't maintain the code.

from upng.js.

tiagoskaneta avatar tiagoskaneta commented on June 5, 2024

any update on this? it would be good to have the updated version on npm.

from upng.js.

tiagoskaneta avatar tiagoskaneta commented on June 5, 2024

@photopea if it's not done by the project contributors then it would be only a temporary solution. As it would be out of sync after any updates you make.

In any case, thank you for the hard work.

from upng.js.

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.