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

Fix install #15

Merged
merged 3 commits into from
Oct 12, 2016
Merged

Fix install #15

merged 3 commits into from
Oct 12, 2016

Conversation

SimenB
Copy link
Collaborator

@SimenB SimenB commented Oct 11, 2016

Without this change, it fails on install with:

> unleash-client@1.0.0-alpha.1 build /Users/simbekkh/repos/express-base/node_modules/unleash-client
> tsc src/*.ts -d --sourceMap --outdir ./lib --lib ES6,ES5

sh: tsc: command not found

If I install typescript, it still fails because the source code is not included in the package.

> unleash-client@1.0.0-alpha.1 build /Users/simbekkh/repos/express-base/node_modules/unleash-client
> tsc src/*.ts -d --sourceMap --outdir ./lib --lib ES6,ES5

error TS6053: File 'src/*.ts' not found.

Also allow this to be run on Node@7 without warnings (release imminent)

/cc @sveisvei @ivarconr

@@ -29,7 +29,7 @@
"request": "^2.74.0"
},
"engines": {
"node": "6"
"node": ">=6"
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You test on node 4, though, why lock it to 6?

@@ -11,7 +11,7 @@ export default class Repository extends EventEmitter implements EventEmitter {
private storage: Storage;
private etag: string;

constructor (backupPath: string, url: string, refreshIntervall?: number, StorageImpl = Storage) {
constructor (backupPath: string, url: string, refreshInterval?: number, StorageImpl = Storage) {
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Breaking change, I suppose...

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

New client is breaking, so fine to fix this as well.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@coveralls
Copy link

coveralls commented Oct 11, 2016

Coverage Status

Coverage remained the same at 98.889% when pulling 7d2cd43 on fix-install into af61bf2 on master.

@@ -13,7 +13,7 @@ class ActiveForUserWithEmailStrategy extends Strategy {

const client = initialize({
url: 'http://unleash.herokuapp.com/features',
refreshIntervall: 10000,
refreshInterval: 10000,
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seeing as this typo was present in the old version as well, maybe we should do something like

console.log('Passed in `refreshIntervall`, please use `refreshInterval` instead');

and map it? Making migration from old to new easier

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, sure add this.

@sveisvei
Copy link
Collaborator

Add a console.log, and this is fine to merge and release another alpha.

@SimenB
Copy link
Collaborator Author

SimenB commented Oct 12, 2016

Just log, or map it over from the old name as well?

EDIT: nvm, saw the other comment

@sveisvei
Copy link
Collaborator

On second thought, this is a breaking change, lets throw instead as its startup time.

@SimenB
Copy link
Collaborator Author

SimenB commented Oct 12, 2016

Kk!

@sveisvei sveisvei merged commit e214e03 into master Oct 12, 2016
@sveisvei sveisvei deleted the fix-install branch October 12, 2016 09:15
@elhoyos elhoyos mentioned this pull request Feb 27, 2018
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

Successfully merging this pull request may close these issues.

3 participants