Skip to content

Upgrade for ember 3.x; remove babel warning; remove bower;#111

Merged
eriktrom merged 9 commits into
masterfrom
chore/upgrade-3-1
Apr 21, 2018
Merged

Upgrade for ember 3.x; remove babel warning; remove bower;#111
eriktrom merged 9 commits into
masterfrom
chore/upgrade-3-1

Conversation

@eriktrom
Copy link
Copy Markdown
Member

fixes #108
fixes #110

@eriktrom
Copy link
Copy Markdown
Member Author

eriktrom commented Apr 19, 2018

ps - w/o updating ember-cli-changelog upstream, optionalDependencies was used to remove the babel 5x warning

also, there is still 1 ember global used when gaining access to the EventDispatcher, which ember-views exports, but only internally within ember itself. Open to suggestions here

cc @rwwagner90

import layout from '../templates/components/fast-action';
import { htmlSafe } from "@ember/string";

const { SafeString } = Ember.Handlebars;
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

removed this, fyi...

import layout from '../templates/components/fast-async';
import asyncAction from './async-element';

const { SafeString } = Ember.Handlebars;
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

removed this, fyi...

Comment thread addon/event_dispatcher.js

const {
EventDispatcher,
} = Ember;
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Ember global remains, how do we get EventDispatcher using new module syntax - its exported internally from ember-views within ember itself, but I don't find an external export?

Comment thread package.json Outdated
"ember-cli-version-checker": "^2.1.0",
"ember-getowner-polyfill": "^2.2.0",
"hammerjs": "^2.0.8",
"marked": "~0.3.5",
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

where is this used? it's a lot of code? (brought over from bower)

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

moved app.import to ember-cli-build, shouldn't bloat size of code shipped to consumers

where its used, but its not used by those who install this addon, that
we can know for sure)
@eriktrom eriktrom force-pushed the chore/upgrade-3-1 branch from 7d11bf1 to 39a8207 Compare April 20, 2018 02:36
@eriktrom
Copy link
Copy Markdown
Member Author

I'm going to leave this for a day - it's a huge commit - someone may realize it may break something in the next 24 hours. If not, i'll merge and release then.

Comment thread package.json Outdated
"configPath": "tests/dummy/config"
}
},
"optionalDependencies": {}
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Please remove this empty optionalDependencies


if (environment === 'production') {
if (environment === 'production') {} // eslint-disable-line

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

We should put a comment in this block saying it is intentionally an empty block, rather than disabling lint.

Comment thread index.js Outdated
files: ['AnimationFrame.js'],
});

let markedTree = new Funnel(path.dirname(require.resolve('marked')), {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Where are we getting these vendor files from? I thought you said we were not pulling in marked to apps either? What do we use it for?

@eriktrom
Copy link
Copy Markdown
Member Author

@rwwagner90 - thanks for your thorough feedback. I updated per your comments.

Regarding marked. I removed it in the last commit. I looked through the codebase and there is no sign of its use. Also all 3 of us didn't know why it was installed in the first place.

I will publish this evening, unless there is any further feedback, in case this does cause a breaking change and a consumer is not using a lock file while trying to say, finish a friday sprint.

@eriktrom eriktrom merged commit 1e91271 into master Apr 21, 2018
@eriktrom eriktrom deleted the chore/upgrade-3-1 branch April 21, 2018 01:31
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.

Update moar dependencies Update dependencies

3 participants