Coder Social home page Coder Social logo

Comments (10)

dcousens avatar dcousens commented on July 18, 2024

@mkrn can you elaborate why process.version was undefined?
The only other reported case was that they had a very old version of browserify being used.

We have this PR open, but we're not sure how necessary it is yet.

from pbkdf2.

mkrn avatar mkrn commented on July 18, 2024

Suggest peer-dependencies or checking for existence of process.version... not sure what is it for?

from pbkdf2.

mkrn avatar mkrn commented on July 18, 2024

Yes browserify at 7.0.2 just some old deployment broke on re-install of modules..

from pbkdf2.

dcousens avatar dcousens commented on July 18, 2024

@mkrn OK, we'll push that PR through now and publish.

from pbkdf2.

mkrn avatar mkrn commented on July 18, 2024

Thanks a lot, as a fix had to shrinkwrap, then manually edit the version down below and reinstall like that..
Hopefully this wont cause problems for anyone else.)

from pbkdf2.

dcousens avatar dcousens commented on July 18, 2024

Published + [email protected]

from pbkdf2.

dcousens avatar dcousens commented on July 18, 2024

Thanks for reporting the issue @mkrn

from pbkdf2.

neil-morrison44 avatar neil-morrison44 commented on July 18, 2024

@dcousens the fix in the PR won't fix for other people running old versions of browserify since process isn't included at all
but if if (process.browser) { was something that checked if process existed like
if ((typeof process === "undefined") || process.browser) {
then it'll avoid the issue for other people.
I figure a lot of people don't update their build files once they get them working, vs wanting to stay up to date on crypto components.

from pbkdf2.

dcousens avatar dcousens commented on July 18, 2024

@neil-morrison44 are you able to set up a test for that?

from pbkdf2.

neil-morrison44 avatar neil-morrison44 commented on July 18, 2024

@dcousens I'm not sure how you'd run the bundle-test against a few versions of Browserify.
If you're looking for prior art the AWS-sdk-js package doesn't trust that there's going to be a process object either:
https://github.com/aws/aws-sdk-js/blob/master/lib/browser_loader.js

from pbkdf2.

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.