Giter VIP home page Giter VIP logo

Comments (5)

jmdobry avatar jmdobry commented on May 31, 2024

The 1.0.0-beta.1 release is available from both Bower and Npm. Bower handles things differently, so you'll just have to specify "js-data": "1.0.0-beta.1" in your bower.json.

bower install js-data yields 0.4.2

npm install js-data yields 1.0.0-beta.1

Go figure...

from js-data.

demisx avatar demisx commented on May 31, 2024

I think it pulls 0.4.2 because bower has current version set as 0.4.2 (see info output below). Maybe you should add the version field to your package bower.json and set the version there, similar how you have it in package.json?

$ bower info js-data

yields this (see version: '0.4.2' line):

{
  name: 'js-data',
  description: 'Data store.',
  version: '0.4.2',
  },
  author: {
    name: 'Jason Dobry',
    url: 'http://www.pseudobry.com',
    email: '[email protected]'
  },
  main: './dist/js-data.min.js',
  ignore: [
    '.idea/',
    '.*',
    '*.iml',
    'src/',
    'lib/',
    'doc/',
    'guide/',
    'coverage/',
    'Gruntfile.js',
    'node_modules/',
    'test/',
    'package.json',
    'karma.conf.js',
    'karma.start.js'
  ],
  devDependencies: {
    'observe-js': '0.3.4',
    'js-data-http': '~0.4.x',
    'js-data-localstorage': '~0.4.x'
  }
}

Available versions:
  - 1.0.0-beta.1
  - 1.0.0-alpha.5-8
  - 1.0.0-alpha.5-7
  - 1.0.0-alpha.5-6
  - 1.0.0-alpha.5-5
  - 1.0.0-alpha.5-4
  - 1.0.0-alpha.5-2
  - 1.0.0-alpha.5-1
  - 1.0.0-alpha.5-0
  - 1.0.0-alpha.4-3
  - 1.0.0-alpha.4-2
  - 1.0.0-alpha.4-1
  - 1.0.0-alpha.4-0
  - 1.0.0-alpha.3-0
  - 1.0.0-alpha.1-2
  - 1.0.0-alpha.1-1
  - 1.0.0-alpha.1-0
  - 1.0.0-alpha.2
  - 0.4.2
  - 0.4.1
  - 0.4.0
  - 0.3.1
  - 0.2.0
  - 0.0.1

from js-data.

demisx avatar demisx commented on May 31, 2024

Also, this could be because bower doesn't see 1.0.0-beta.1 as latest stable due to -beta* prefix and gives 0.4.2 as latest stable. I am re-reading bower docs now.

from js-data.

demisx avatar demisx commented on May 31, 2024

OK, if I understood correctly, bower considers 1.0.0-beta.1 a pre-release version and if no version is specified at command line, it will download the latest release version that is currently 0.4.2. To install the latest beta at command line, one needs to run this:

$ bower i js-data#1.0.0-beta.1

from js-data.

jmdobry avatar jmdobry commented on May 31, 2024

Bower completely ignores the "version" field if it exists in bower.json and only considers git tags to be available versions.

from js-data.

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.