Skip to content

Update for FastBoot 1.0#11

Merged
MartinMalinda merged 1 commit intocardstack:masterfrom
simonihmig:fastboot-1.0
Jun 10, 2017
Merged

Update for FastBoot 1.0#11
MartinMalinda merged 1 commit intocardstack:masterfrom
simonihmig:fastboot-1.0

Conversation

@simonihmig
Copy link
Contributor

This makes it compatible with the latest ember-cli-fastboot 1.0.0-rc.1. Some context: ember-fastboot/ember-cli-fastboot#387

Here I dropped support for the beta series of FastBoot (where separate browser/fastboot initializers were still available), so these changes only work with FastBoot >= 1.0.0 (-rc.x). As such this should get a minor bump to 0.1.0 when released!

Copy link

@kratiahuja kratiahuja left a comment

Choose a reason for hiding this comment

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

LGTM

let checker = new VersionChecker(this);
let fastBootVersion = checker.for('ember-cli-fastboot');
if (!(fastBootVersion.gte('1.0.0') || fastBootVersion.gte('1.0.0-rc.1'))) {
let error = new Error(`This version of ember-data-fastboot requires at ember-cli-fastboot above 1.0.0-rc.1, but you have ${fastBootVersion.version}. Revert to the latest 0.0.x version for support for beta versions of ember-cli-fastboot.`);

Choose a reason for hiding this comment

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

You could just use silent-error instead of explicitly suppressing the stack trace.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

You're right. Used that before. Copy pasted this from ember-cli-version-checker's assert method...

@sivakumar-kailasam
Copy link

@MartinMalinda can we get this merged?

@MartinMalinda MartinMalinda merged commit 4a98fe1 into cardstack:master Jun 10, 2017
@MartinMalinda
Copy link
Contributor

Released in 0.1.0

@simonihmig simonihmig deleted the fastboot-1.0 branch July 17, 2017 18:35
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.

4 participants