MCPcopy Create free account
hub / github.com/ember-learn/ember-api-docs / shouldGoToVersionIndex

Function shouldGoToVersionIndex

app/controllers/project-version.js:161–173  ·  view source on GitHub ↗
(project, targetVersion, currentVersion)

Source from the content-addressed store, hash-verified

159}
160
161function shouldGoToVersionIndex(project, targetVersion, currentVersion) {
162 let boundaryVersion;
163 if (project === 'ember') {
164 boundaryVersion = '2.16';
165 } else if (project === 'ember-data') {
166 boundaryVersion = '4.0';
167 }
168 return isCrossingVersionBoundary(
169 targetVersion,
170 currentVersion,
171 boundaryVersion,
172 );
173}
174
175// Input some version info, returns a boolean based on
176// whether the user is switching versions for a release or later.

Callers 1

findEndingRouteFunction · 0.85

Calls 1

Tested by

no test coverage detected