Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

is there a release process? what's the current version ? #1250

Closed
eepstein opened this issue Dec 23, 2017 · 5 comments
Closed

is there a release process? what's the current version ? #1250

eepstein opened this issue Dec 23, 2017 · 5 comments

Comments

@eepstein
Copy link

I'm trying to sort through the releases and the release process and each location references a different version.

  1. npm site references: 1.0.0.beta.27 https://www.npmjs.com/package/web3
    That references https://github.com/ethereum/web3.js/tree/master/packages/web3, but that page doesn't exist and gives a 404.

  2. https://github.com/ethereum/web3.js/releases lists 1.0.0-beta.18 as the most recent release.
    (by contrast https://github.com/ethereum/web3.js/releases/tag/1.0.0-beta.27 gives a 404)

  3. The Readme.md in the github repo reference migrating to v 0.14.0

  4. Looking in the dist folder on github doesn't offer much clue as to the current version #.

So, I'm not sure what the latest version is. It's not clear to me what the release process is and how one finds the current package in a way that is consistent across npm and github.

Is there a secret decoder ring?

@mjhm
Copy link
Contributor

mjhm commented Dec 27, 2017

FWIW the 1.0 branch seems to be the current release branch https://github.com/ethereum/web3.js/blob/1.0/lerna.json#L2 This will probably become clearer when 1.0 gets out of beta.

@eepstein
Copy link
Author

releases are made from a branch, but are they branch-specific? isn't a release for the whole project?

https://github.com/ethereum/web3.js/releases seems to be the same page for all branches and lists beta.18, but npm has beta.27 - but the links from npm to the project don't work.

Can @frozeman or someone on the project shed a little light?
Thanks!

@eepstein
Copy link
Author

Trying to use the latest 1.0 beta.27 release doens't seem to work with Typescript modules:

import { default as Web3 } from 'web3';

gives: web3/index resolves to a non-module entity...

@helxsz
Copy link

helxsz commented Dec 28, 2017

@eepstein I am currently upgrading to latest 1.0 beta.27, import { default as Web3 } from 'web3'; doesn't work as you said.

/node_modules/web3/index"' resolves to a non-module entity and cannot be imported using this construct.

what do you mean by
gives: web3/index resolves to a non-module entity...

@eepstein
Copy link
Author

AFAICT it means that the 1.0 beta releases of web3.js aren't packaged in a typescript-friendly way.

My work-around has been to fall-back to generic, untyped JavaScript via this import construct:

const Web3 = require('web3');

The downside is this loses 'Web3' as a type, and hence all the IDE support is lost too. But, so far, it does work.

You may need to also tell the TypeScript system to support this by adding something like:

  "types": [
      // add node as an option
      "node"
  ]

to your ts config file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants