-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FEATURE] Add remaining Ember modules
Adds all of the remaining Ember modules so that we can remove the API polyfill. Also updates the tests for re-exporting modules so they are organized by exported module and also test re-exporting the external module and not any internal one.
- Loading branch information
Chris Garrett
committed
Mar 16, 2021
1 parent
d414901
commit a61143b
Showing
54 changed files
with
631 additions
and
206 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
import { | ||
deprecate as _deprecate, | ||
deprecateFunc as _deprecateFunc, | ||
DeprecationOptions, | ||
} from '@ember/debug'; | ||
|
||
export function deprecate(message: string, condition: boolean, options: DeprecationOptions): void { | ||
deprecate( | ||
"`import { deprecate } from '@ember/application/deprecations';` has been deprecated, please update to `import { deprecate } from '@ember/debug';`", | ||
false, | ||
{ | ||
id: 'old-deprecate-method-paths', | ||
until: '4.0.0', | ||
for: 'ember-source', | ||
since: { | ||
enabled: '3.0.0', | ||
}, | ||
} | ||
); | ||
|
||
_deprecate(message, condition, options); | ||
} | ||
|
||
export function deprecateFunc(message: string, options: DeprecationOptions, func: Function): void { | ||
deprecate( | ||
"`import { deprecateFunc } from '@ember/application/deprecations';` has been deprecated, please update to `import { deprecateFunc } from '@ember/debug';`", | ||
false, | ||
{ | ||
id: 'old-deprecate-method-paths', | ||
until: '4.0.0', | ||
for: 'ember-source', | ||
since: { | ||
enabled: '3.0.0', | ||
}, | ||
} | ||
); | ||
|
||
_deprecateFunc(message, options, func); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export { Namespace as default } from '@ember/-internals/runtime'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export { default } from './globals-resolver'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
export { Array as default, isArray, A } from '@ember/-internals/runtime'; | ||
export { makeArray } from '@ember/-internals/utils'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export { MutableArray as default } from '@ember/-internals/runtime'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export { ArrayProxy as default } from '@ember/-internals/runtime'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import { EMBER_MODERNIZED_BUILT_IN_COMPONENTS } from '@ember/canary-features'; | ||
import { deprecate } from '@ember/debug'; | ||
|
||
if (EMBER_MODERNIZED_BUILT_IN_COMPONENTS) { | ||
deprecate( | ||
`Using Ember.Checkbox or importing from 'Checkbox' has been deprecated, install the ` + | ||
`\`ember-legacy-built-in-components\` addon and use \`import { Checkbox } from ` + | ||
`'ember-legacy-built-in-components';\` instead`, | ||
false, | ||
{ | ||
id: 'ember.legacy-built-in-components', | ||
until: '4.0.0', | ||
for: 'ember-source', | ||
since: { | ||
// TODO: update this when enabling the feature | ||
}, | ||
} | ||
); | ||
} | ||
|
||
export { Checkbox as default } from '@ember/-internals/glimmer'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export { Helper as default, helper } from '@ember/-internals/glimmer'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,6 @@ | ||
export { Component } from '@ember/-internals/glimmer'; | ||
export { setComponentTemplate, getComponentTemplate } from '@glimmer/manager'; | ||
export { Component as default, Input } from '@ember/-internals/glimmer'; | ||
export { | ||
componentCapabilities as capabilities, | ||
setComponentManager, | ||
} from '@ember/-internals/glimmer'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import { EMBER_MODERNIZED_BUILT_IN_COMPONENTS } from '@ember/canary-features'; | ||
import { deprecate } from '@ember/debug'; | ||
|
||
if (EMBER_MODERNIZED_BUILT_IN_COMPONENTS) { | ||
deprecate( | ||
`Using Ember.TextArea or importing from 'TextArea' has been deprecated, install the ` + | ||
`\`ember-legacy-built-in-components\` addon and use \`import { TextArea } from ` + | ||
`'ember-legacy-built-in-components';\` instead`, | ||
false, | ||
{ | ||
id: 'ember.legacy-built-in-components', | ||
until: '4.0.0', | ||
for: 'ember-source', | ||
since: { | ||
// TODO: update this when enabling the feature | ||
}, | ||
} | ||
); | ||
} | ||
|
||
export { TextArea as default } from '@ember/-internals/glimmer'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import { EMBER_MODERNIZED_BUILT_IN_COMPONENTS } from '@ember/canary-features'; | ||
import { deprecate } from '@ember/debug'; | ||
|
||
if (EMBER_MODERNIZED_BUILT_IN_COMPONENTS) { | ||
deprecate( | ||
`Using Ember.TextField or importing from 'TextField' has been deprecated, install the ` + | ||
`\`ember-legacy-built-in-components\` addon and use \`import { TextField } from ` + | ||
`'ember-legacy-built-in-components';\` instead`, | ||
false, | ||
{ | ||
id: 'ember.legacy-built-in-components', | ||
until: '4.0.0', | ||
for: 'ember-source', | ||
since: { | ||
// TODO: update this when enabling the feature | ||
}, | ||
} | ||
); | ||
} | ||
|
||
export { TextField as default } from '@ember/-internals/glimmer'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export { ContainerDebugAdapter as default } from '@ember/-internals/extension-support'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export { DataAdapter as default } from '@ember/-internals/extension-support'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export { Enumerable as default } from '@ember/-internals/runtime'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
export { setModifierManager, modifierCapabilities as capabilties } from '@glimmer/manager'; | ||
export { setModifierManager } from '@glimmer/manager'; | ||
export { modifierCapabilities as capabilities } from '@ember/-internals/glimmer'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export { CoreObject as default } from '@ember/-internals/runtime'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
export { Evented as default } from '@ember/-internals/runtime'; | ||
export { on } from '@ember/-internals/metal'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export { addListener, removeListener, sendEvent } from '@ember/-internals/metal'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
export { getCachedValueFor as cacheFor } from '@ember/-internals/metal'; | ||
export { copy } from '@ember/-internals/runtime'; | ||
export { guidFor } from '@ember/-internals/utils'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export { Mixin as default } from '@ember/-internals/metal'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export { Observable as default } from '@ember/-internals/runtime'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export { addObserver, removeObserver } from '@ember/-internals/metal'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export { PromiseProxyMixin as default } from '@ember/-internals/runtime'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export { ObjectProxy as default } from '@ember/-internals/runtime'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export { AutoLocation as default } from '@ember/-internals/routing'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export { HashLocation as default } from '@ember/-internals/routing'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export { HistoryLocation as default } from '@ember/-internals/routing'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export { LinkComponent as LinkTo } from '@ember/-internals/glimmer'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import { EMBER_MODERNIZED_BUILT_IN_COMPONENTS } from '@ember/canary-features'; | ||
import { deprecate } from '@ember/debug'; | ||
|
||
if (EMBER_MODERNIZED_BUILT_IN_COMPONENTS) { | ||
deprecate( | ||
`Using Ember.LinkComponent or importing from 'LinkComponent' has been deprecated, install the ` + | ||
`\`ember-legacy-built-in-components\` addon and use \`import { LinkComponent } from ` + | ||
`'ember-legacy-built-in-components';\` instead`, | ||
false, | ||
{ | ||
id: 'ember.legacy-built-in-components', | ||
until: '4.0.0', | ||
for: 'ember-source', | ||
since: { | ||
// TODO: update this when enabling the feature | ||
}, | ||
} | ||
); | ||
} | ||
|
||
export { LinkComponent as default } from '@ember/-internals/glimmer'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export { Location as default } from '@ember/-internals/routing'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export { NoneLocation as default } from '@ember/-internals/routing'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export { Route as default } from '@ember/-internals/routing'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export { Router as default } from '@ember/-internals/routing'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import { DEBUG } from '@glimmer/env'; | ||
|
||
export { compile as compileTemplate } from 'ember-template-compiler'; | ||
|
||
export let precompileTemplate; | ||
|
||
if (DEBUG) { | ||
precompileTemplate = () => { | ||
throw new Error( | ||
'Attempted to call `precompileTemplate` at runtime, but this API is meant to be used at compile time. You should use `compileTemplate` instead.' | ||
); | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export { templateFactory as createTemplateFactory } from '@glimmer/opcode-compiler'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export { htmlSafe, isHTMLSafe } from '@ember/-internals/glimmer'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
import { Test } from 'ember-testing'; | ||
|
||
export default Test.Adapter; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import { Test } from 'ember-testing'; | ||
|
||
const { | ||
registerAsyncHelper, | ||
registerHelper, | ||
registerWaiter, | ||
unregisterHelper, | ||
unregisterWaiter, | ||
} = Test; | ||
|
||
export { registerAsyncHelper, registerHelper, registerWaiter, unregisterHelper, unregisterWaiter }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
export { isNone, isBlank, isEmpty, isPresent } from '@ember/-internals/metal'; | ||
export { tryInvoke } from '@ember/-internals/utils'; | ||
export { compare, isEqual, typeOf } from '@ember/-internals/runtime'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export { default as VERSION } from 'ember/version'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export { tracked } from '@ember/-internals/metal'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export { createCache, getValue, isConst } from '@ember/-internals/metal'; |
Oops, something went wrong.