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

Support options.requires fallback for backward compatibility #286

Merged
merged 4 commits into from Mar 5, 2018

Conversation

tadatuta
Copy link
Member

No description provided.

'enb-bemxjst', this.getName(), 'requires', 'engineOptions.requires',
' It will be removed in v9.0.0.');
}
engineOptions.requires || (engineOptions.requires = this._requires);
Copy link
Member

Choose a reason for hiding this comment

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

better place for the line is between 136 and 137 =)

if (this._requires) {
this.node.getLogger().logOptionIsDeprecated(this.node.unmaskTargetName(this._target),
'enb-bemxjst', this.getName(), 'requires', 'engineOptions.requires',
' It will be removed in v9.0.0.');
Copy link
Member

Choose a reason for hiding this comment

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

How not to forget about it when releasing a v9.0.0?

Copy link
Member Author

Choose a reason for hiding this comment

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

Created issue #287

@tadatuta
Copy link
Member Author

🆙

Copy link
Member

@miripiruni miripiruni left a comment

Choose a reason for hiding this comment

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

  1. test "must pass engineOptions.engineName to bem-xjst"

  2. test "must pass engineOptions.requires to bem-xjst"

…and maybe we can extract describe "engineOptions" here https://github.com/enb/enb-bemxjst/blob/master/test/techs/bemhtml.test.js#L165

@miripiruni miripiruni force-pushed the issues/285.requires.tadatuta branch 3 times, most recently from eb420ad to a128856 Compare February 12, 2018 14:16
tadatuta and others added 4 commits March 5, 2018 12:16
@miripiruni miripiruni force-pushed the issues/285.requires.tadatuta branch from 09eff3e to 1552380 Compare March 5, 2018 09:23
@miripiruni miripiruni merged commit 28103c3 into master Mar 5, 2018
@miripiruni miripiruni deleted the issues/285.requires.tadatuta branch March 5, 2018 10:02
@miripiruni
Copy link
Member

  • enb-bemxjst@8.10.1

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.

None yet

2 participants