language stringclasses 1
value | owner stringlengths 2 15 | repo stringlengths 2 21 | sha stringlengths 45 45 | message stringlengths 7 36.3k | path stringlengths 1 199 | patch stringlengths 15 102k | is_multipart bool 2
classes |
|---|---|---|---|---|---|---|---|
Other | emberjs | ember.js | f61d5ced097fada4b7dfc46431f5247d7eed5e39.json | Remove HAS_NATIVE_SYMBOL flag
After dropping IE11 support, all supported browsers support symbols natively. | packages/@ember/-internals/glimmer/tests/integration/syntax/each-test.js | @@ -2,7 +2,6 @@ import { moduleFor, RenderingTestCase, applyMixins, strip, runTask } from 'inter
import { get, set, notifyPropertyChange, computed, on } from '@ember/-internals/metal';
import { A as emberA, ArrayProxy, RSVP } from '@ember/-internals/runtime';
-import { HAS_NATIVE_SYMBOL } from '@ember/-internals/ut... | true |
Other | emberjs | ember.js | f61d5ced097fada4b7dfc46431f5247d7eed5e39.json | Remove HAS_NATIVE_SYMBOL flag
After dropping IE11 support, all supported browsers support symbols natively. | packages/@ember/-internals/routing/lib/services/router.ts | @@ -10,7 +10,7 @@ import Route from '../system/route';
import EmberRouter, { QueryParam } from '../system/router';
import { extractRouteArgs, resemblesURL, shallowEqual } from '../utils';
-const ROUTER = symbol('ROUTER') as string;
+const ROUTER = (symbol('ROUTER') as unknown) as string;
function cleanURL(url: s... | true |
Other | emberjs | ember.js | f61d5ced097fada4b7dfc46431f5247d7eed5e39.json | Remove HAS_NATIVE_SYMBOL flag
After dropping IE11 support, all supported browsers support symbols natively. | packages/@ember/-internals/routing/lib/services/routing.ts | @@ -9,7 +9,7 @@ import Service from '@ember/service';
import EmberRouter, { QueryParam } from '../system/router';
import RouterState from '../system/router_state';
-const ROUTER = symbol('ROUTER') as string;
+const ROUTER = (symbol('ROUTER') as unknown) as string;
/**
The Routing service is used by LinkCompon... | true |
Other | emberjs | ember.js | f61d5ced097fada4b7dfc46431f5247d7eed5e39.json | Remove HAS_NATIVE_SYMBOL flag
After dropping IE11 support, all supported browsers support symbols natively. | packages/@ember/-internals/routing/lib/system/route.ts | @@ -48,7 +48,7 @@ import generateController from './generate_controller';
import EmberRouter, { QueryParam } from './router';
export const ROUTE_CONNECTIONS = new WeakMap();
-const RENDER = symbol('render') as string;
+const RENDER = (symbol('render') as unknown) as string;
export function defaultSerialize(
m... | true |
Other | emberjs | ember.js | f61d5ced097fada4b7dfc46431f5247d7eed5e39.json | Remove HAS_NATIVE_SYMBOL flag
After dropping IE11 support, all supported browsers support symbols natively. | packages/@ember/-internals/runtime/lib/system/core_object.js | @@ -2,15 +2,14 @@
@module @ember/object
*/
-import { getFactoryFor, setFactoryFor, INIT_FACTORY } from '@ember/-internals/container';
+import { getFactoryFor, setFactoryFor } from '@ember/-internals/container';
import { getOwner, LEGACY_OWNER } from '@ember/-internals/owner';
import {
guidFor,
lookupDescr... | true |
Other | emberjs | ember.js | f61d5ced097fada4b7dfc46431f5247d7eed5e39.json | Remove HAS_NATIVE_SYMBOL flag
After dropping IE11 support, all supported browsers support symbols natively. | packages/@ember/-internals/utils/index.ts | @@ -28,7 +28,6 @@ export { default as makeArray } from './lib/make-array';
export { getName, setName } from './lib/name';
export { default as toString } from './lib/to-string';
export { isObject } from './lib/spec';
-export { HAS_NATIVE_SYMBOL } from './lib/symbol-utils';
export { HAS_NATIVE_PROXY } from './lib/pro... | true |
Other | emberjs | ember.js | f61d5ced097fada4b7dfc46431f5247d7eed5e39.json | Remove HAS_NATIVE_SYMBOL flag
After dropping IE11 support, all supported browsers support symbols natively. | packages/@ember/-internals/utils/lib/symbol-utils.ts | @@ -1,7 +0,0 @@
-export const HAS_NATIVE_SYMBOL = (function () {
- if (typeof Symbol !== 'function') {
- return false;
- }
-
- return typeof Symbol() === 'symbol';
-})(); | true |
Other | emberjs | ember.js | f61d5ced097fada4b7dfc46431f5247d7eed5e39.json | Remove HAS_NATIVE_SYMBOL flag
After dropping IE11 support, all supported browsers support symbols natively. | packages/@ember/-internals/utils/lib/symbol.ts | @@ -1,7 +1,6 @@
import { DEBUG } from '@glimmer/env';
import { GUID_KEY } from './guid';
import intern from './intern';
-import { HAS_NATIVE_SYMBOL } from './symbol-utils';
const GENERATED_SYMBOLS: string[] = [];
@@ -26,4 +25,4 @@ export function enumerableSymbol(debugName: string): string {
return symbol;
... | true |
Other | emberjs | ember.js | f61d5ced097fada4b7dfc46431f5247d7eed5e39.json | Remove HAS_NATIVE_SYMBOL flag
After dropping IE11 support, all supported browsers support symbols natively. | packages/@ember/-internals/utils/tests/guid_for_test.js | @@ -1,5 +1,5 @@
-import { guidFor, HAS_NATIVE_SYMBOL } from '..';
-import { moduleFor, AbstractTestCase as TestCase } from 'internal-test-helpers';
+import { guidFor } from '..';
+import { AbstractTestCase as TestCase, moduleFor } from 'internal-test-helpers';
function sameGuid(assert, a, b, message) {
assert.equ... | true |
Other | emberjs | ember.js | f61d5ced097fada4b7dfc46431f5247d7eed5e39.json | Remove HAS_NATIVE_SYMBOL flag
After dropping IE11 support, all supported browsers support symbols natively. | packages/@ember/-internals/utils/tests/inspect_test.js | @@ -1,5 +1,5 @@
-import { HAS_NATIVE_SYMBOL, inspect } from '..';
-import { moduleFor, AbstractTestCase as TestCase } from 'internal-test-helpers';
+import { inspect } from '..';
+import { AbstractTestCase as TestCase, moduleFor } from 'internal-test-helpers';
moduleFor(
'Ember.inspect',
@@ -130,12 +130,8 @@ How ... | true |
Other | emberjs | ember.js | 840e681eb50b219fd686859d7e39bb987a65ac94.json | Remove IE11 Object polyfills | packages/@ember/-internals/glimmer/lib/components/abstract-input.ts | @@ -15,8 +15,6 @@ import InternalComponent, {
handleDeprecatedEventArguments,
InternalComponentConstructor,
jQueryEventShim,
- ObjectEntries,
- ObjectValues,
} from './internal';
const UNINITIALIZED: unknown = Object.freeze({});
@@ -304,7 +302,7 @@ export function handleDeprecatedFeatures(
handleD... | true |
Other | emberjs | ember.js | 840e681eb50b219fd686859d7e39bb987a65ac94.json | Remove IE11 Object polyfills | packages/@ember/-internals/glimmer/lib/components/internal.ts | @@ -28,24 +28,6 @@ import InternalModifier, { InternalModifierManager } from '../modifiers/internal
function NOOP(): void {}
-// TODO: remove me when IE11 support is EOL
-export let ObjectEntries = ((): typeof Object['entries'] => {
- if (typeof Object.entries === 'function') {
- return Object.entries;
- } el... | true |
Other | emberjs | ember.js | 273619f59945e691a3f06462e6e8bd43d4f24729.json | Use WeakSet for lazy events | packages/@ember/-internals/glimmer/lib/component.ts | @@ -29,9 +29,7 @@ import {
} from './component-managers/curly';
// Keep track of which component classes have already been processed for lazy event setup.
-// Using a WeakSet would be more appropriate here, but this can only be used when IE11 support is dropped.
-// Thus the workaround using a WeakMap<object, true>... | false |
Other | emberjs | ember.js | ca3d81c42d9596da48295a70c192cf32f02c3dda.json | Remove IE11 check in index.html | tests/index.html | @@ -67,13 +67,7 @@
EmberENV.ENABLE_OPTIONAL_FEATURES = true;
}
- var isIE = Boolean(window.MSInputMethodContext) && Boolean(document.documentMode);
-
- // ignore deprecations for IE11 specifically (due to browser support
- // policy deprecation, which happens before we can `ex... | false |
Other | emberjs | ember.js | d3f916ac9e3b9ad54c4c7e90e97ca8c76ff7fa38.json | Remove Ember.$() jQuery integration | packages/ember/index.js | @@ -99,7 +99,7 @@ import ApplicationInstance from '@ember/application/instance';
import Engine from '@ember/engine';
import EngineInstance from '@ember/engine/instance';
import { assign } from '@ember/polyfills';
-import { EMBER_EXTEND_PROTOTYPES, JQUERY_INTEGRATION } from '@ember/deprecated-features';
+import { EMB... | true |
Other | emberjs | ember.js | d3f916ac9e3b9ad54c4c7e90e97ca8c76ff7fa38.json | Remove Ember.$() jQuery integration | packages/ember/tests/reexports_test.js | @@ -1,9 +1,7 @@
import Ember from '../index';
import require from 'require';
-import { FEATURES, EMBER_MODERNIZED_BUILT_IN_COMPONENTS } from '@ember/canary-features';
-import { confirmExport } from 'internal-test-helpers';
-import { moduleFor, AbstractTestCase } from 'internal-test-helpers';
-import { jQueryDisabled,... | true |
Other | emberjs | ember.js | 26145d2899658102cf9681a4341edcaffe814311.json | Remove this.$() jQuery integration | packages/@ember/-internals/glimmer/tests/integration/components/curly-components-test.js | @@ -14,7 +14,6 @@ import { DEBUG } from '@glimmer/env';
import { alias, set, get, observer, on, computed, tracked } from '@ember/-internals/metal';
import Service, { inject as injectService } from '@ember/service';
import { Object as EmberObject, A as emberA } from '@ember/-internals/runtime';
-import { jQueryDisabl... | true |
Other | emberjs | ember.js | 26145d2899658102cf9681a4341edcaffe814311.json | Remove this.$() jQuery integration | packages/@ember/-internals/glimmer/tests/integration/components/dynamic-components-test.js | @@ -2,7 +2,6 @@ import { DEBUG } from '@glimmer/env';
import { moduleFor, RenderingTestCase, strip, runTask } from 'internal-test-helpers';
import { set, computed } from '@ember/-internals/metal';
-import { jQueryDisabled } from '@ember/-internals/views';
import { Component } from '../../utils/helpers';
import ... | true |
Other | emberjs | ember.js | 26145d2899658102cf9681a4341edcaffe814311.json | Remove this.$() jQuery integration | packages/@ember/-internals/glimmer/tests/integration/components/fragment-components-test.js | @@ -227,26 +227,6 @@ moduleFor(
this.assertText('baz');
}
- ['@test throws an error if when $() is accessed on component where `tagName` is an empty string']() {
- let template = `hit dem folks`;
- let FooBarComponent = Component.extend({
- tagName: '',
- init() {
- thi... | true |
Other | emberjs | ember.js | 26145d2899658102cf9681a4341edcaffe814311.json | Remove this.$() jQuery integration | packages/@ember/-internals/glimmer/tests/integration/components/life-cycle-test.js | @@ -1,16 +1,9 @@
-import {
- moduleFor,
- RenderingTestCase,
- classes,
- strip,
- runAppend,
- runTask,
-} from 'internal-test-helpers';
+import { classes, moduleFor, RenderingTestCase, runTask, strip } from 'internal-test-helpers';
import { schedule } from '@ember/runloop';
import { set, setProperties } fro... | true |
Other | emberjs | ember.js | 26145d2899658102cf9681a4341edcaffe814311.json | Remove this.$() jQuery integration | packages/@ember/-internals/views/lib/mixins/view_support.js | @@ -3,9 +3,6 @@ import { descriptorForProperty, Mixin, nativeDescDecorator } from '@ember/-inter
import { assert } from '@ember/debug';
import { hasDOM } from '@ember/-internals/browser-environment';
import { matches } from '../system/utils';
-import { jQuery, jQueryDisabled } from '../system/jquery';
-import { depr... | true |
Other | emberjs | ember.js | 55618960d68394dcec06ed29e2873082d6a5b1ea.json | Remove hasBlock and hasBlockParams
In favor of (has-block) and (has-block-params) | packages/@ember/-internals/glimmer/index.ts | @@ -150,7 +150,7 @@
*/
/**
- `{{has-block}}` indicates if the component was invoked with a block.
+ `{{(has-block)}}` indicates if the component was invoked with a block.
This component is invoked with a block:
@@ -187,15 +187,15 @@
{{/if}}
```
- @method hasBlock
+ @method has-block
@for Embe... | true |
Other | emberjs | ember.js | 55618960d68394dcec06ed29e2873082d6a5b1ea.json | Remove hasBlock and hasBlockParams
In favor of (has-block) and (has-block-params) | packages/@ember/-internals/glimmer/tests/integration/components/contextual-components-test.js | @@ -1357,13 +1357,10 @@ moduleFor(
this.assertStableRerender();
}
- ['@test GH#18732 hasBlock works within a yielded curried component invoked within mustaches']() {
- expectDeprecation(
- `\`hasBlock\` is deprecated. Use \`has-block\` instead. ('my-app/templates/components/component-with-h... | true |
Other | emberjs | ember.js | 55618960d68394dcec06ed29e2873082d6a5b1ea.json | Remove hasBlock and hasBlockParams
In favor of (has-block) and (has-block-params) | packages/@ember/-internals/glimmer/tests/integration/components/curly-components-test.js | @@ -1950,14 +1950,10 @@ moduleFor(
);
}
- ['@test hasBlock is true when block supplied']() {
- expectDeprecation(
- `\`hasBlock\` is deprecated. Use \`has-block\` instead. ('my-app/templates/components/with-block.hbs' @ L1:C6) `
- );
-
+ ['@test (has-block) is true when block suppli... | true |
Other | emberjs | ember.js | 55618960d68394dcec06ed29e2873082d6a5b1ea.json | Remove hasBlock and hasBlockParams
In favor of (has-block) and (has-block-params) | packages/ember-template-compiler/lib/plugins/index.ts | @@ -8,7 +8,6 @@ import TransformActionSyntax from './transform-action-syntax';
import TransformAttrsIntoArgs from './transform-attrs-into-args';
import TransformEachInIntoEach from './transform-each-in-into-each';
import TransformEachTrackArray from './transform-each-track-array';
-import TransformHasBlockSyntax fro... | true |
Other | emberjs | ember.js | 55618960d68394dcec06ed29e2873082d6a5b1ea.json | Remove hasBlock and hasBlockParams
In favor of (has-block) and (has-block-params) | packages/ember-template-compiler/lib/plugins/transform-has-block-syntax.ts | @@ -1,84 +0,0 @@
-import { deprecate } from '@ember/debug';
-import { AST, ASTPlugin } from '@glimmer/syntax';
-import calculateLocationDisplay from '../system/calculate-location-display';
-import { EmberASTPluginEnvironment } from '../types';
-import { isPath } from './utils';
-
-/**
- @module ember
-*/
-
-/**
- A Gl... | true |
Other | emberjs | ember.js | 55618960d68394dcec06ed29e2873082d6a5b1ea.json | Remove hasBlock and hasBlockParams
In favor of (has-block) and (has-block-params) | tests/docs/expected.js | @@ -271,8 +271,8 @@ module.exports = {
'handleURL',
'has',
'hasArrayObservers',
- 'hasBlock',
- 'hasBlockParams',
+ 'has-block',
+ 'has-block-params',
'hash',
'hashSettled',
'hasListeners', | true |
Other | emberjs | ember.js | f6cb99ee41910d06a6f1edea420947e5f89712ce.json | Remove copy & Copyable
Part of https://github.com/emberjs/ember.js/issues/19617 | packages/@ember/-internals/runtime/index.js | @@ -1,7 +1,6 @@
export { default as Object, FrameworkObject } from './lib/system/object';
export { default as RegistryProxyMixin } from './lib/mixins/registry_proxy';
export { default as ContainerProxyMixin } from './lib/mixins/container_proxy';
-export { default as copy } from './lib/copy';
export { default as com... | true |
Other | emberjs | ember.js | f6cb99ee41910d06a6f1edea420947e5f89712ce.json | Remove copy & Copyable
Part of https://github.com/emberjs/ember.js/issues/19617 | packages/@ember/-internals/runtime/lib/copy.js | @@ -1,120 +0,0 @@
-import { assert, deprecate } from '@ember/debug';
-import EmberObject from './system/object';
-import Copyable from './mixins/copyable';
-
-/**
- @module @ember/object
-*/
-function _copy(obj, deep, seen, copies) {
- // primitive data types are immutable, just return them.
- if (typeof obj !== 'obj... | true |
Other | emberjs | ember.js | f6cb99ee41910d06a6f1edea420947e5f89712ce.json | Remove copy & Copyable
Part of https://github.com/emberjs/ember.js/issues/19617 | packages/@ember/-internals/runtime/lib/mixins/copyable.js | @@ -1,34 +0,0 @@
-/**
-@module ember
-*/
-
-import { Mixin } from '@ember/-internals/metal';
-
-/**
- Implements some standard methods for copying an object. Add this mixin to
- any object you create that can create a copy of itself. This mixin is
- added automatically to the built-in array.
-
- You should generall... | true |
Other | emberjs | ember.js | f6cb99ee41910d06a6f1edea420947e5f89712ce.json | Remove copy & Copyable
Part of https://github.com/emberjs/ember.js/issues/19617 | packages/@ember/-internals/runtime/tests/copyable-array/copy-test.js | @@ -1,12 +0,0 @@
-import { AbstractTestCase } from 'internal-test-helpers';
-import { runArrayTests } from '../helpers/array';
-
-class CopyTest extends AbstractTestCase {
- '@test should return an equivalent copy'() {
- let obj = this.newObject();
- let copy = obj.copy();
- this.assert.ok(this.isEqual(obj, c... | true |
Other | emberjs | ember.js | f6cb99ee41910d06a6f1edea420947e5f89712ce.json | Remove copy & Copyable
Part of https://github.com/emberjs/ember.js/issues/19617 | packages/@ember/-internals/runtime/tests/core/copy_test.js | @@ -1,64 +0,0 @@
-import copy from '../../lib/copy';
-import { moduleFor, AbstractTestCase } from 'internal-test-helpers';
-
-moduleFor(
- 'Ember Copy Method',
- class extends AbstractTestCase {
- ['@test Ember.copy null'](assert) {
- let obj = { field: null };
- let copied = null;
- expectDeprecati... | true |
Other | emberjs | ember.js | f6cb99ee41910d06a6f1edea420947e5f89712ce.json | Remove copy & Copyable
Part of https://github.com/emberjs/ember.js/issues/19617 | packages/@ember/-internals/runtime/tests/helpers/array.js | @@ -3,15 +3,13 @@ import EmberArray, { A as emberA, MutableArray } from '../../lib/mixins/array';
import { generateGuid, guidFor } from '@ember/-internals/utils';
import {
get,
- set,
computed,
addArrayObserver,
removeArrayObserver,
arrayContentWillChange,
arrayContentDidChange,
} from '@ember/-in... | true |
Other | emberjs | ember.js | f6cb99ee41910d06a6f1edea420947e5f89712ce.json | Remove copy & Copyable
Part of https://github.com/emberjs/ember.js/issues/19617 | packages/@ember/object/internals.js | @@ -1,3 +1,2 @@
export { getCachedValueFor as cacheFor } from '@ember/-internals/metal';
-export { copy } from '@ember/-internals/runtime';
export { guidFor } from '@ember/-internals/utils'; | true |
Other | emberjs | ember.js | f6cb99ee41910d06a6f1edea420947e5f89712ce.json | Remove copy & Copyable
Part of https://github.com/emberjs/ember.js/issues/19617 | packages/ember/index.js | @@ -40,10 +40,8 @@ import {
RegistryProxyMixin,
ContainerProxyMixin,
compare,
- copy,
isEqual,
Array as EmberArray,
- Copyable,
MutableEnumerable,
MutableArray,
TargetActionSupport,
@@ -375,7 +373,6 @@ Ember.Object = EmberObject;
Ember._RegistryProxyMixin = RegistryProxyMixin;
Ember._Contain... | true |
Other | emberjs | ember.js | f6cb99ee41910d06a6f1edea420947e5f89712ce.json | Remove copy & Copyable
Part of https://github.com/emberjs/ember.js/issues/19617 | packages/ember/tests/reexports_test.js | @@ -351,7 +351,6 @@ let allExports = [
// @ember/object/internals
['cacheFor', '@ember/object/internals', 'cacheFor'],
- ['copy', '@ember/object/internals', 'copy'],
['guidFor', '@ember/object/internals', 'guidFor'],
// @ember/object/mixin
@@ -543,7 +542,6 @@ let allExports = [
['Comparable', '@embe... | true |
Other | emberjs | ember.js | f6cb99ee41910d06a6f1edea420947e5f89712ce.json | Remove copy & Copyable
Part of https://github.com/emberjs/ember.js/issues/19617 | tests/docs/expected.js | @@ -149,7 +149,6 @@ module.exports = {
'controller',
'controllerFor',
'controllerName',
- 'copy',
'create',
'createCache',
'current-when', | true |
Other | emberjs | ember.js | 02e1bfdf910e14abdb212033b8400a6da0f8e71d.json | Remove old deprecations path | packages/@ember/application/deprecations.ts | @@ -1,39 +0,0 @@
-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/deprecation... | true |
Other | emberjs | ember.js | 02e1bfdf910e14abdb212033b8400a6da0f8e71d.json | Remove old deprecations path | packages/ember/tests/reexports_test.js | @@ -164,10 +164,6 @@ let allExports = [
['runLoadHooks', '@ember/application', 'runLoadHooks'],
['setOwner', '@ember/application', 'setOwner'],
- // @ember/application/deprecations
- [null, '@ember/application/deprecations', 'deprecate'],
- [null, '@ember/application/deprecations', 'deprecateFunc'],
-
// ... | true |
Other | emberjs | ember.js | 39aeba2bef0f672bcea17454879a16d878898e2c.json | Remove deprecated aliasMethod | packages/@ember/-internals/metal/index.ts | @@ -50,7 +50,7 @@ export {
removeObserver,
flushAsyncObservers,
} from './lib/observer';
-export { Mixin, aliasMethod, mixin, observer, applyMixin } from './lib/mixin';
+export { Mixin, mixin, observer, applyMixin } from './lib/mixin';
export { default as inject, DEBUG_INJECTION_FUNCTIONS } from './lib/injected... | true |
Other | emberjs | ember.js | 39aeba2bef0f672bcea17454879a16d878898e2c.json | Remove deprecated aliasMethod | packages/@ember/-internals/metal/lib/mixin.ts | @@ -13,8 +13,7 @@ import {
wrap,
} from '@ember/-internals/utils';
import { EMBER_MODERNIZED_BUILT_IN_COMPONENTS } from '@ember/canary-features';
-import { assert, deprecate } from '@ember/debug';
-import { ALIAS_METHOD } from '@ember/deprecated-features';
+import { assert } from '@ember/debug';
import { DEBUG } ... | true |
Other | emberjs | ember.js | 39aeba2bef0f672bcea17454879a16d878898e2c.json | Remove deprecated aliasMethod | packages/@ember/-internals/metal/tests/mixin/alias_method_test.js | @@ -1,101 +0,0 @@
-import { get, Mixin, mixin, aliasMethod } from '../..';
-import { moduleFor, AbstractTestCase } from 'internal-test-helpers';
-
-function validateAliasMethod(assert, obj) {
- assert.equal(obj.fooMethod(), 'FOO', 'obj.fooMethod()');
- assert.equal(obj.barMethod(), 'FOO', 'obj.barMethod should be a c... | true |
Other | emberjs | ember.js | 39aeba2bef0f672bcea17454879a16d878898e2c.json | Remove deprecated aliasMethod | packages/@ember/deprecated-features/index.ts | @@ -9,7 +9,6 @@ export const MERGE = !!'3.6.0-beta.1';
export const ROUTER_EVENTS = !!'4.0.0';
export const COMPONENT_MANAGER_STRING_LOOKUP = !!'3.8.0';
export const JQUERY_INTEGRATION = !!'3.9.0';
-export const ALIAS_METHOD = !!'3.9.0';
export const APP_CTRL_ROUTER_PROPS = !!'3.10.0-beta.1';
export const FUNCTION... | true |
Other | emberjs | ember.js | 39aeba2bef0f672bcea17454879a16d878898e2c.json | Remove deprecated aliasMethod | packages/@ember/object/index.js | @@ -15,7 +15,6 @@ export {
observer,
computed,
trySet,
- aliasMethod,
} from '@ember/-internals/metal';
import { computed } from '@ember/-internals/metal'; | true |
Other | emberjs | ember.js | 39aeba2bef0f672bcea17454879a16d878898e2c.json | Remove deprecated aliasMethod | packages/ember/index.js | @@ -305,7 +305,6 @@ Ember.setProperties = metal.setProperties;
Ember.expandProperties = metal.expandProperties;
Ember.addObserver = metal.addObserver;
Ember.removeObserver = metal.removeObserver;
-Ember.aliasMethod = metal.aliasMethod;
Ember.observer = metal.observer;
Ember.mixin = metal.mixin;
Ember.Mixin = meta... | true |
Other | emberjs | ember.js | 39aeba2bef0f672bcea17454879a16d878898e2c.json | Remove deprecated aliasMethod | packages/ember/tests/reexports_test.js | @@ -286,7 +286,6 @@ let allExports = [
// @ember/object
['Object', '@ember/object', 'default'],
['_action', '@ember/object', 'action'],
- ['aliasMethod', '@ember/object', 'aliasMethod'],
['computed', '@ember/object', 'computed'],
['defineProperty', '@ember/object', 'defineProperty'],
['get', '@ember/... | true |
Other | emberjs | ember.js | 39aeba2bef0f672bcea17454879a16d878898e2c.json | Remove deprecated aliasMethod | tests/docs/expected.js | @@ -75,7 +75,6 @@ module.exports = {
'advanceReadiness',
'afterModel',
'alias',
- 'aliasMethod',
'all',
'allSettled',
'and', | true |
Other | emberjs | ember.js | d08dde55001e6a08f486fc0ef595b48f67e44b5c.json | Remove deprecated tryInvoke for v4.0 | packages/@ember/-internals/utils/index.ts | @@ -23,7 +23,7 @@ export {
} from './lib/super';
export { default as inspect } from './lib/inspect';
export { default as lookupDescriptor } from './lib/lookup-descriptor';
-export { canInvoke, tryInvoke } from './lib/invoke';
+export { canInvoke } from './lib/invoke';
export { default as makeArray } from './lib/mak... | true |
Other | emberjs | ember.js | d08dde55001e6a08f486fc0ef595b48f67e44b5c.json | Remove deprecated tryInvoke for v4.0 | packages/@ember/-internals/utils/lib/invoke.ts | @@ -1,5 +1,3 @@
-import { deprecate } from '@ember/debug';
-
/**
Checks to see if the `methodName` exists on the `obj`.
@@ -25,52 +23,3 @@ export function canInvoke(obj: any | null | undefined, methodName: string): obj
/**
@module @ember/utils
*/
-
-/**
- Checks to see if the `methodName` exists on the `obj... | true |
Other | emberjs | ember.js | d08dde55001e6a08f486fc0ef595b48f67e44b5c.json | Remove deprecated tryInvoke for v4.0 | packages/@ember/-internals/utils/tests/try_invoke_test.js | @@ -1,60 +0,0 @@
-import { tryInvoke } from '..';
-import { moduleFor, AbstractTestCase as TestCase } from 'internal-test-helpers';
-
-let obj;
-
-moduleFor(
- 'Ember.tryInvoke',
- class extends TestCase {
- constructor() {
- super();
-
- obj = {
- aMethodThatExists() {
- return true;
- ... | true |
Other | emberjs | ember.js | d08dde55001e6a08f486fc0ef595b48f67e44b5c.json | Remove deprecated tryInvoke for v4.0 | packages/@ember/utils/index.js | @@ -1,3 +1,2 @@
export { isNone, isBlank, isEmpty, isPresent } from '@ember/-internals/metal';
-export { tryInvoke } from '@ember/-internals/utils';
export { compare, isEqual, typeOf } from '@ember/-internals/runtime'; | true |
Other | emberjs | ember.js | d08dde55001e6a08f486fc0ef595b48f67e44b5c.json | Remove deprecated tryInvoke for v4.0 | packages/ember/index.js | @@ -220,7 +220,6 @@ Ember.guidFor = utils.guidFor;
Ember.inspect = utils.inspect;
Ember.makeArray = utils.makeArray;
Ember.canInvoke = utils.canInvoke;
-Ember.tryInvoke = utils.tryInvoke;
Ember.wrap = utils.wrap;
Ember.uuid = utils.uuid;
| true |
Other | emberjs | ember.js | d08dde55001e6a08f486fc0ef595b48f67e44b5c.json | Remove deprecated tryInvoke for v4.0 | packages/ember/tests/reexports_test.js | @@ -468,7 +468,6 @@ let allExports = [
['isEqual', '@ember/utils', 'isEqual'],
['isNone', '@ember/utils', 'isNone'],
['isPresent', '@ember/utils', 'isPresent'],
- ['tryInvoke', '@ember/utils', 'tryInvoke'],
['typeOf', '@ember/utils', 'typeOf'],
// @ember/version | true |
Other | emberjs | ember.js | d08dde55001e6a08f486fc0ef595b48f67e44b5c.json | Remove deprecated tryInvoke for v4.0 | tests/docs/expected.js | @@ -573,7 +573,6 @@ module.exports = {
'trigger',
'triggerAction',
'triggerEvent',
- 'tryInvoke',
'trySet',
'type',
'typeInjection', | true |
Other | emberjs | ember.js | cfdb781faf69ff2a8b6e904c3f91322f72ef22d5.json | Fix more lint issues | packages/@ember/-internals/metal/tests/accessors/get_test.js | @@ -1,10 +1,9 @@
import { ENV } from '@ember/-internals/environment';
import { Object as EmberObject } from '@ember/-internals/runtime';
-import { get, set, Mixin, observer, computed } from '../..';
+import { get, Mixin, observer } from '../..';
import { moduleFor, AbstractTestCase } from 'internal-test-helpers';
i... | false |
Other | emberjs | ember.js | 297ab0e771409d61dcb014a9a40144cd7fdd5ee8.json | Add 3.28.0-beta.6 to CHANGELOG
(cherry picked from commit a01e11de7ba0dd36134bc591c02b5d08d929b0e8) | CHANGELOG.md | @@ -1,5 +1,9 @@
# Ember Changelog
+### v3.28.0-beta.6 (June 21, 2021)
+
+- [#19584](https://github.com/emberjs/ember.js/pull/19584) [BUGFIX] Ensure hash objects correctly entangle as dependencies
+
### v3.28.0-beta.5 (June 14, 2021)
- [#19597](https://github.com/emberjs/ember.js/pull/19597) [BUGFIX] Fix `<LinkTo... | false |
Other | emberjs | ember.js | 55d012c49bb6af87b9f0841457c1380f0006292d.json | Add v3.28.0-beta.5 to CHANGELOG
(cherry picked from commit 7de1e204dc72da3198ad6324039291b94154eeeb) | CHANGELOG.md | @@ -1,5 +1,9 @@
# Ember Changelog
+### v3.28.0-beta.5 (June 14, 2021)
+
+- [#19597](https://github.com/emberjs/ember.js/pull/19597) [BUGFIX] Fix `<LinkTo>` with nested children
+
### v3.28.0-beta.4 (June 7, 2021)
- [#19586](https://github.com/emberjs/ember.js/pull/19586) [BUGFIX] Fix Embroider compatibility | false |
Other | emberjs | ember.js | 1a6c9640001f319fffbcf77fbd934738dfa4ff87.json | Fix Changelog formatting
The different heading levels are causing issues for services that are trying to read and filter the changelog | CHANGELOG.md | @@ -24,16 +24,16 @@
- [#19472](https://github.com/emberjs/ember.js/pull/19472) [BUGFIX] Prevent transformation of block params called `attrs`
-## v3.27.5 (June 10, 2021)
+### v3.27.5 (June 10, 2021)
- [#19597](https://github.com/emberjs/ember.js/pull/19597) [BIGFIX] Fix `<LinkTo>` with nested children
-## v3.... | false |
Other | emberjs | ember.js | c47d6287c335b07d5425f3cab0b95bdde9811af8.json | Add CHANGELOG for 3.27.5
(cherry picked from commit 428e7a05233e0c508dfbf339ae2f241a71109380) | CHANGELOG.md | @@ -24,6 +24,10 @@
- [#19472](https://github.com/emberjs/ember.js/pull/19472) [BUGFIX] Prevent transformation of block params called `attrs`
+## v3.27.5 (June 10, 2021)
+
+- [#19597](https://github.com/emberjs/ember.js/pull/19597) [BIGFIX] Fix `<LinkTo>` with nested children
+
## v3.27.4 (June 9, 2021)
- [#195... | false |
Other | emberjs | ember.js | ea322a34a9e7b4654c009f27ce81582a96825daf.json | Add CHANGELOG for v3.27.4
(cherry picked from commit fe32020e181de85b4b2e480792f8ad1db3e5eee1)
(cherry picked from commit 2392417347f151457c16792541e3da2b78c5e6dc) | CHANGELOG.md | @@ -24,11 +24,16 @@
- [#19472](https://github.com/emberjs/ember.js/pull/19472) [BUGFIX] Prevent transformation of block params called `attrs`
+## v3.27.4 (June 9, 2021)
+
+- [#19594](https://github.com/emberjs/ember.js/pull/19594) [BUGFIX] Revert lazy hash changes
+- [#19596](https://github.com/emberjs/ember.js/pu... | false |
Other | emberjs | ember.js | b6948fbe9dc2d1cc148b7d859bb43cc024f43312.json | Add v3.28.0-beta.4 to CHANGELOG
(cherry picked from commit e31720c3a4cc218d5ec2f92e67e145920e9f311b) | CHANGELOG.md | @@ -1,5 +1,9 @@
# Ember Changelog
+### v3.28.0-beta.4 (June 7, 2021)
+
+- [#19586](https://github.com/emberjs/ember.js/pull/19586) [BUGFIX] Fix Embroider compatibility
+
### v3.28.0-beta.3 (June 1, 2021)
- [#19565](https://github.com/emberjs/ember.js/pull/19565) [BUGFIX] Ensures that computed can depend on dynam... | false |
Other | emberjs | ember.js | c445e04b6add358e92a42f311b8ed6e9f6cb6134.json | Correct typo in optionalFeatures warning | lib/index.js | @@ -142,7 +142,7 @@ module.exports = {
}
} else {
this.ui.writeWarnLine(
- 'The Ember Classic edition has been deprecated. Speciying "classic" in your package.json, or not specifying a value at all, will no longer be supported. You must explicitly set the "ember.edition" property to "octane". ... | false |
Other | emberjs | ember.js | c35fc14727330214d8c3e51fac18f4253613c37c.json | Add v3.27.3 to CHANGELOG.md. | CHANGELOG.md | @@ -20,6 +20,12 @@
- [#19472](https://github.com/emberjs/ember.js/pull/19472) [BUGFIX] Prevent transformation of block params called `attrs`
+## v3.27.3 (June 3, 2021)
+
+- [#19565](https://github.com/emberjs/ember.js/pull/19565) [BUGFIX] Ensures that `computed` can depend on dynamic `(hash` keys
+- [#19571](https... | false |
Other | emberjs | ember.js | 540fafaff2eb33f89e3935d39ff1c93933e3f5a1.json | Add some basic tests
Co-authored-by: Stefan Penner <stefan.penner@gmail.com> | lib/global-deprecation-utils.js | @@ -1,4 +1,7 @@
+'use strict';
+
const semver = require('semver');
+const validSemverRange = require('semver/ranges/valid');
function* walkAddonTree(project, pathToAddon = []) {
for (let addon of project.addons) {
@@ -11,19 +14,17 @@ function requirementFor(pkg, deps = {}) {
return deps[pkg];
}
-module.exp... | true |
Other | emberjs | ember.js | 540fafaff2eb33f89e3935d39ff1c93933e3f5a1.json | Add some basic tests
Co-authored-by: Stefan Penner <stefan.penner@gmail.com> | tests/node/global-deprecation-info-test.js | @@ -0,0 +1,207 @@
+'use strict';
+
+const globalDeprecationInfo = require('../../lib/global-deprecation-utils');
+
+QUnit.module('globalDeprecationInfo', function (hooks) {
+ let project, env;
+
+ function buildBabel(parent, version) {
+ return {
+ name: 'ember-cli-babel',
+ parent,
+ pkg: {
+ ... | true |
Other | emberjs | ember.js | 42bd258a026fb6652ae7cb991b01c9738d2ab032.json | Add v3.28.0-beta.3 to CHANGELOG | CHANGELOG.md | @@ -1,5 +1,10 @@
# Ember Changelog
+### v3.28.0-beta.3 (June 1, 2021)
+
+- [#19565](https://github.com/emberjs/ember.js/pull/19565) [BUGFIX] Ensures that computed can depend on dynamic hash keys
+- [#19571](https://github.com/emberjs/ember.js/pull/19571) [BUGFIX] Delay until: 5.0.0 the removal of the deprecated tran... | false |
Other | emberjs | ember.js | 926452f531fb70eddea0fe85ff73843603d39de7.json | Extend transition deprecation | packages/@ember/-internals/routing/lib/utils.ts | @@ -254,7 +254,7 @@ export function deprecateTransitionMethods(frameworkClass: string, methodName: s
since: {
enabled: '3.26.0',
},
- until: '4.0.0',
+ until: '5.0.0',
url: 'https://deprecations.emberjs.com/v3.x/#toc_routing-transition-methods',
}
); | false |
Other | emberjs | ember.js | 8cc453f21d243b37137e092087620db8e0a21e3d.json | Use latest Safari in BrowserStack tests | testem.browserstack.js | @@ -7,7 +7,7 @@ const BrowserStackLaunchers = {
'--os',
'OS X',
'--osv',
- 'Mojave',
+ 'Big Sur',
'--b',
'safari',
'--bv', | false |
Other | emberjs | ember.js | 0d68d64fb8407ff0b42215fa6ce988a0a8b539de.json | Remove IE11 support (deprecations + testing) | .github/workflows/ci.yml | @@ -65,7 +65,7 @@ jobs:
run: yarn test
browserstack-test:
- name: Browserstack Tests (Safari, Edge, IE11)
+ name: Browserstack Tests (Safari, Edge)
runs-on: ubuntu-latest
needs: [basic-test, lint]
steps: | true |
Other | emberjs | ember.js | 0d68d64fb8407ff0b42215fa6ce988a0a8b539de.json | Remove IE11 support (deprecations + testing) | config/browserlists.js | @@ -3,7 +3,6 @@ const allSupportedBrowsers = [
'last 2 Firefox versions',
'last 2 Safari versions',
'last 2 Edge versions',
- 'ie 11',
];
const modernBrowsers = [ | true |
Other | emberjs | ember.js | 0d68d64fb8407ff0b42215fa6ce988a0a8b539de.json | Remove IE11 support (deprecations + testing) | lib/index.js | @@ -294,12 +294,6 @@ module.exports = {
let targets = (this.project && this.project.targets && this.project.targets.browsers) || [];
let targetNode = (this.project && this.project.targets && this.project.targets.node) || false;
- if (targets.includes('ie 11')) {
- this.ui.writeWarnLine(
- 'In... | true |
Other | emberjs | ember.js | 0d68d64fb8407ff0b42215fa6ce988a0a8b539de.json | Remove IE11 support (deprecations + testing) | packages/@ember/-internals/glimmer/lib/modifiers/on.ts | @@ -2,19 +2,6 @@
@module ember
*/
-/*
- Internet Explorer 11 does not support `once` and also does not support
- passing `eventOptions`. In some situations it then throws a weird script
- error, like:
-
- ```
- Could not complete the operation due to error 80020101
- ```
-
- This flag determines, whether `{ ... | true |
Other | emberjs | ember.js | 0d68d64fb8407ff0b42215fa6ce988a0a8b539de.json | Remove IE11 support (deprecations + testing) | packages/@ember/-internals/glimmer/tests/integration/helpers/element-action-test.js | @@ -32,8 +32,6 @@ function getActionIds(element) {
);
}
-const isIE11 = !window.ActiveXObject && 'ActiveXObject' in window;
-
if (EMBER_IMPROVED_INSTRUMENTATION) {
moduleFor(
'Helpers test: element action instrumentation',
@@ -1144,11 +1142,7 @@ moduleFor(
.trigger('click', { [prop]: value })[... | true |
Other | emberjs | ember.js | 0d68d64fb8407ff0b42215fa6ce988a0a8b539de.json | Remove IE11 support (deprecations + testing) | packages/@ember/-internals/glimmer/tests/integration/modifiers/on-test.js | @@ -5,8 +5,6 @@ import { on } from '@glimmer/runtime';
import { Component } from '../../utils/helpers';
-const isIE11 = !window.ActiveXObject && 'ActiveXObject' in window;
-
moduleFor(
'{{on}} Modifier',
class extends RenderingTestCase {
@@ -41,8 +39,6 @@ moduleFor(
if (isChrome || isFirefox) {
... | true |
Other | emberjs | ember.js | 0d68d64fb8407ff0b42215fa6ce988a0a8b539de.json | Remove IE11 support (deprecations + testing) | packages/@ember/-internals/utils/tests/inspect_test.js | @@ -36,12 +36,7 @@ moduleFor(
return this;
},
};
- // IE 11 doesn't have function name
- if (obj.foo.name) {
- assert.equal(inspect(obj), `{ foo: [Function:foo] }`);
- } else {
- assert.equal(inspect(obj), `{ foo: [Function] }`);
- }
+ assert.equal(inspe... | true |
Other | emberjs | ember.js | 0d68d64fb8407ff0b42215fa6ce988a0a8b539de.json | Remove IE11 support (deprecations + testing) | packages/ember-testing/tests/helpers_test.js | @@ -1,4 +1,4 @@
-import { moduleFor, AutobootApplicationTestCase, isIE11, runTask } from 'internal-test-helpers';
+import { moduleFor, AutobootApplicationTestCase, runTask } from 'internal-test-helpers';
import { Route } from '@ember/-internals/routing';
import Controller from '@ember/controller';
@@ -343,20 +343,7... | true |
Other | emberjs | ember.js | 0d68d64fb8407ff0b42215fa6ce988a0a8b539de.json | Remove IE11 support (deprecations + testing) | packages/ember/index.js | @@ -135,22 +135,6 @@ import {
const Ember = {};
-import { isIE } from '@ember/-internals/browser-environment';
-
-deprecate(
- 'Internet Explorer 11 will no longer be supported in the next major version of Ember. For details on the new browser support policy, see the official documentation: http://emberjs.com/bro... | true |
Other | emberjs | ember.js | 0d68d64fb8407ff0b42215fa6ce988a0a8b539de.json | Remove IE11 support (deprecations + testing) | packages/internal-test-helpers/index.js | @@ -38,5 +38,5 @@ export {
ModuleBasedResolver as ModuleBasedTestResolver,
} from './lib/test-resolver';
-export { isIE11, isEdge } from './lib/browser-detect';
+export { isEdge } from './lib/browser-detect';
export { verifyInjection, verifyRegistration } from './lib/registry-check'; | true |
Other | emberjs | ember.js | 0d68d64fb8407ff0b42215fa6ce988a0a8b539de.json | Remove IE11 support (deprecations + testing) | packages/internal-test-helpers/lib/browser-detect.ts | @@ -1,11 +1 @@
-// `window.ActiveXObject` is "falsey" in IE11 (but not `undefined` or `false`)
-// `"ActiveXObject" in window` returns `true` in all IE versions
-// only IE11 will pass _both_ of these conditions
-
-declare global {
- interface Window {
- ActiveXObject: any;
- }
-}
-export const isIE11 = !window.Ac... | true |
Other | emberjs | ember.js | 0d68d64fb8407ff0b42215fa6ce988a0a8b539de.json | Remove IE11 support (deprecations + testing) | testem.browserstack.js | @@ -37,24 +37,6 @@ const BrowserStackLaunchers = {
],
protocol: 'browser',
},
- BS_IE_11: {
- exe: 'node_modules/.bin/browserstack-launch',
- args: [
- '--os',
- 'Windows',
- '--osv',
- '10',
- '--b',
- 'ie',
- '--bv',
- '11.0',
- '-t',
- '1500',
- ... | true |
Other | emberjs | ember.js | 455fdb2d8d3f3f7941169468c48fe19985aedc32.json | Add v3.28.0-beta.2 to CHANGELOG.md. | CHANGELOG.md | @@ -1,5 +1,16 @@
# Ember Changelog
+### v3.28.0-beta.2 (May 27, 2021)
+
+- [#19511](https://github.com/emberjs/ember.js/pull/19511) / [#19548](https://github.com/emberjs/ember.js/pull/19548) [BUGFIX] Makes the (hash) helper lazy
+- [#19530](https://github.com/emberjs/ember.js/pull/19530) [DOC] fix passing params to ... | false |
Other | emberjs | ember.js | d252b96f36d1faf2844df3776697467d0a6789f4.json | Add v3.27.2 to CHANGELOG.md. | CHANGELOG.md | @@ -4,6 +4,16 @@
- [#19472](https://github.com/emberjs/ember.js/pull/19472) [BUGFIX] Prevent transformation of block params called `attrs`
+### v3.27.2 (May 27, 2021)
+
+- [#19511](https://github.com/emberjs/ember.js/pull/19511) / [#19548](https://github.com/emberjs/ember.js/pull/19548) [BUGFIX] Makes the (hash) h... | false |
Other | emberjs | ember.js | 7985ddb9eedcd775ccd68981c8e2ce3c24cdd54b.json | Add test for @ember/object/compat types | packages/@ember/object/type-tests/compat.test.ts | @@ -0,0 +1,4 @@
+import { dependentKeyCompat } from '@ember/object/compat';
+import { expectTypeOf } from 'expect-type';
+
+expectTypeOf(dependentKeyCompat).toMatchTypeOf<Function>(); | false |
Other | emberjs | ember.js | d8f28f42043f077e1b81290d9903c4dd13dca163.json | Improve types for @ember/object
Includes:
- Object, { action } from '@ember/object'
- CoreObject from '@ember/object/core'
- Observable from '@ember/object/observable'
Note that types for `extend`, `reopen`, and `reopenClass` are not
exported. Also, `get` and `set` have naive types. All of these will
be depreca... | package.json | @@ -125,6 +125,7 @@
"eslint-plugin-prettier": "^3.3.1",
"eslint-plugin-qunit": "^4.0.0",
"execa": "^2.0.4",
+ "expect-type": "^0.11.0",
"express": "^4.17.1",
"finalhandler": "^1.1.2",
"fs-extra": "^9.0.1",
@@ -147,7 +148,8 @@
"simple-dom": "^1.4.0",
"testem": "^3.1.0",
"t... | true |
Other | emberjs | ember.js | d8f28f42043f077e1b81290d9903c4dd13dca163.json | Improve types for @ember/object
Includes:
- Object, { action } from '@ember/object'
- CoreObject from '@ember/object/core'
- Observable from '@ember/object/observable'
Note that types for `extend`, `reopen`, and `reopenClass` are not
exported. Also, `get` and `set` have naive types. All of these will
be depreca... | packages/@ember/-internals/glimmer/tests/integration/components/angle-bracket-invocation-test.js | @@ -550,10 +550,13 @@ moduleFor(
}
'@test positional parameters are not allowed'() {
+ let TestComponent = class extends Component {};
+ TestComponent.reopenClass({
+ positionalParams: ['first', 'second'],
+ });
+
this.registerComponent('sample-component', {
- ComponentCl... | true |
Other | emberjs | ember.js | d8f28f42043f077e1b81290d9903c4dd13dca163.json | Improve types for @ember/object
Includes:
- Object, { action } from '@ember/object'
- CoreObject from '@ember/object/core'
- Observable from '@ember/object/observable'
Note that types for `extend`, `reopen`, and `reopenClass` are not
exported. Also, `get` and `set` have naive types. All of these will
be depreca... | packages/@ember/-internals/metal/lib/mixin.ts | @@ -273,7 +273,15 @@ function mergeMixins(
}
}
} else {
- mergeProps(meta, currentMixin, descs, values, base, keys, keysWithSuper);
+ mergeProps(
+ meta,
+ currentMixin as { [key: string]: any },
+ descs,
+ values,
+ base,
+ keys,
+ keysWit... | true |
Other | emberjs | ember.js | d8f28f42043f077e1b81290d9903c4dd13dca163.json | Improve types for @ember/object
Includes:
- Object, { action } from '@ember/object'
- CoreObject from '@ember/object/core'
- Observable from '@ember/object/observable'
Note that types for `extend`, `reopen`, and `reopenClass` are not
exported. Also, `get` and `set` have naive types. All of these will
be depreca... | packages/@ember/-internals/routing/lib/location/api.ts | @@ -10,6 +10,7 @@ export interface EmberLocation {
formatURL(url: string): string;
detect?(): void;
initState?(): void;
+ destroy(): void;
}
export type UpdateCallback = (url: string) => void; | true |
Other | emberjs | ember.js | d8f28f42043f077e1b81290d9903c4dd13dca163.json | Improve types for @ember/object
Includes:
- Object, { action } from '@ember/object'
- CoreObject from '@ember/object/core'
- Observable from '@ember/object/observable'
Note that types for `extend`, `reopen`, and `reopenClass` are not
exported. Also, `get` and `set` have naive types. All of these will
be depreca... | packages/@ember/-internals/routing/lib/location/auto_location.ts | @@ -62,13 +62,94 @@ import {
@protected
*/
export default class AutoLocation extends EmberObject implements EmberLocation {
- cancelRouterSetup?: boolean | undefined;
getURL!: () => string;
setURL!: (url: string) => void;
onUpdateURL!: (callback: UpdateCallback) => void;
formatURL!: (url: string) => s... | true |
Other | emberjs | ember.js | d8f28f42043f077e1b81290d9903c4dd13dca163.json | Improve types for @ember/object
Includes:
- Object, { action } from '@ember/object'
- CoreObject from '@ember/object/core'
- Observable from '@ember/object/observable'
Note that types for `extend`, `reopen`, and `reopenClass` are not
exported. Also, `get` and `set` have naive types. All of these will
be depreca... | packages/@ember/-internals/routing/lib/location/hash_location.ts | @@ -40,6 +40,9 @@ export default class HashLocation extends EmberObject implements EmberLocation {
implementation = 'hash';
_hashchangeHandler?: EventListener;
+ private _location?: any;
+ declare location: any;
+
init(): void {
set(this, 'location', this._location || window.location);
this._hash... | true |
Other | emberjs | ember.js | d8f28f42043f077e1b81290d9903c4dd13dca163.json | Improve types for @ember/object
Includes:
- Object, { action } from '@ember/object'
- CoreObject from '@ember/object/core'
- Observable from '@ember/object/observable'
Note that types for `extend`, `reopen`, and `reopenClass` are not
exported. Also, `get` and `set` have naive types. All of these will
be depreca... | packages/@ember/-internals/routing/lib/location/history_location.ts | @@ -59,6 +59,11 @@ function _uuid() {
@protected
*/
export default class HistoryLocation extends EmberObject implements EmberLocation {
+ location!: any;
+ baseURL!: string;
+
+ history?: any;
+
implementation = 'history';
_previousURL?: string;
_popstateHandler?: EventListener;
@@ -86,9 +91,9 @@ expor... | true |
Other | emberjs | ember.js | d8f28f42043f077e1b81290d9903c4dd13dca163.json | Improve types for @ember/object
Includes:
- Object, { action } from '@ember/object'
- CoreObject from '@ember/object/core'
- Observable from '@ember/object/observable'
Note that types for `extend`, `reopen`, and `reopenClass` are not
exported. Also, `get` and `set` have naive types. All of these will
be depreca... | packages/@ember/-internals/routing/lib/location/none_location.ts | @@ -25,6 +25,19 @@ export default class NoneLocation extends EmberObject implements EmberLocation {
updateCallback!: UpdateCallback;
implementation = 'none';
+ // Set in reopen so it can be overwritten with extend
+ path!: string;
+
+ /**
+ Will be pre-pended to path.
+
+ @private
+ @property rootUR... | true |
Other | emberjs | ember.js | d8f28f42043f077e1b81290d9903c4dd13dca163.json | Improve types for @ember/object
Includes:
- Object, { action } from '@ember/object'
- CoreObject from '@ember/object/core'
- Observable from '@ember/object/observable'
Note that types for `extend`, `reopen`, and `reopenClass` are not
exported. Also, `get` and `set` have naive types. All of these will
be depreca... | packages/@ember/-internals/routing/lib/system/route.ts | @@ -96,19 +96,20 @@ export function hasDefaultSerialize(route: Route): boolean {
@public
*/
-class Route extends EmberObject implements IRoute {
+class Route extends EmberObject.extend(ActionHandler, Evented) implements IRoute, Evented {
static isRouteFactory = true;
- routeName!: string;
- fullRouteName!:... | true |
Other | emberjs | ember.js | d8f28f42043f077e1b81290d9903c4dd13dca163.json | Improve types for @ember/object
Includes:
- Object, { action } from '@ember/object'
- CoreObject from '@ember/object/core'
- Observable from '@ember/object/observable'
Note that types for `extend`, `reopen`, and `reopenClass` are not
exported. Also, `get` and `set` have naive types. All of these will
be depreca... | packages/@ember/-internals/routing/lib/system/router.ts | @@ -53,6 +53,7 @@ function defaultDidTransition(this: EmberRouter, infos: PrivateRouteInfo[]) {
once(this, this.trigger, 'didTransition');
if (DEBUG) {
+ // @ts-expect-error namespace isn't public
if (this.namespace.LOG_TRANSITIONS) {
// eslint-disable-next-line no-console
console.log(`Tra... | true |
Other | emberjs | ember.js | d8f28f42043f077e1b81290d9903c4dd13dca163.json | Improve types for @ember/object
Includes:
- Object, { action } from '@ember/object'
- CoreObject from '@ember/object/core'
- Observable from '@ember/object/observable'
Note that types for `extend`, `reopen`, and `reopenClass` are not
exported. Also, `get` and `set` have naive types. All of these will
be depreca... | packages/@ember/-internals/runtime/index.d.ts | @@ -1,3 +1,8 @@
+import { EmberClassConstructor, Objectify, ObserverMethod } from './types/-private/types';
+import PublicCoreObject from './types/core';
+import Evented from './types/evented';
+import Observable from './types/observable';
+
export const TargetActionSupport: any;
export function isArray(arr: any): bo... | true |
Other | emberjs | ember.js | d8f28f42043f077e1b81290d9903c4dd13dca163.json | Improve types for @ember/object
Includes:
- Object, { action } from '@ember/object'
- CoreObject from '@ember/object/core'
- Observable from '@ember/object/observable'
Note that types for `extend`, `reopen`, and `reopenClass` are not
exported. Also, `get` and `set` have naive types. All of these will
be depreca... | packages/@ember/-internals/runtime/type-tests/core.test.ts | @@ -0,0 +1,25 @@
+import { expectTypeOf } from 'expect-type';
+import CoreObject from '../types/core';
+
+/** Newable tests */
+const co1 = new CoreObject();
+
+expectTypeOf(co1.concatenatedProperties).toEqualTypeOf<string[]>();
+expectTypeOf(co1.isDestroyed).toEqualTypeOf<boolean>();
+expectTypeOf(co1.isDestroying).to... | true |
Other | emberjs | ember.js | d8f28f42043f077e1b81290d9903c4dd13dca163.json | Improve types for @ember/object
Includes:
- Object, { action } from '@ember/object'
- CoreObject from '@ember/object/core'
- Observable from '@ember/object/observable'
Note that types for `extend`, `reopen`, and `reopenClass` are not
exported. Also, `get` and `set` have naive types. All of these will
be depreca... | packages/@ember/-internals/runtime/types/-private/types.d.ts | @@ -0,0 +1,41 @@
+/**
+ * Map type `T` to a plain object hash with the identity mapping.
+ *
+ * Discards any additional object identity like the ability to `new()` up the class.
+ * The `new()` capability is added back later by merging `EmberClassConstructor<T>`
+ *
+ * Implementation is carefully chosen for the reaso... | true |
Other | emberjs | ember.js | d8f28f42043f077e1b81290d9903c4dd13dca163.json | Improve types for @ember/object
Includes:
- Object, { action } from '@ember/object'
- CoreObject from '@ember/object/core'
- Observable from '@ember/object/observable'
Note that types for `extend`, `reopen`, and `reopenClass` are not
exported. Also, `get` and `set` have naive types. All of these will
be depreca... | packages/@ember/-internals/runtime/types/core.d.ts | @@ -0,0 +1,87 @@
+import { EmberClassConstructor, EmberInstanceArguments, Objectify } from './-private/types';
+
+type MergeArray<Arr extends any[]> = Arr extends [infer T, ...infer Rest]
+ ? T & MergeArray<Rest>
+ : unknown; // TODO: Is this correct?
+
+export default class CoreObject {
+ /**
+ * CoreObject const... | true |
Other | emberjs | ember.js | d8f28f42043f077e1b81290d9903c4dd13dca163.json | Improve types for @ember/object
Includes:
- Object, { action } from '@ember/object'
- CoreObject from '@ember/object/core'
- Observable from '@ember/object/observable'
Note that types for `extend`, `reopen`, and `reopenClass` are not
exported. Also, `get` and `set` have naive types. All of these will
be depreca... | packages/@ember/-internals/runtime/types/evented.d.ts | @@ -0,0 +1,48 @@
+import Mixin from '../../metal/lib/mixin';
+
+/**
+ * This mixin allows for Ember objects to subscribe to and emit events.
+ */
+interface Evented {
+ /**
+ * Subscribes to a named event with given function.
+ */
+ on<Target>(
+ name: string,
+ target: Target,
+ method: string | ((this:... | true |
Other | emberjs | ember.js | d8f28f42043f077e1b81290d9903c4dd13dca163.json | Improve types for @ember/object
Includes:
- Object, { action } from '@ember/object'
- CoreObject from '@ember/object/core'
- Observable from '@ember/object/observable'
Note that types for `extend`, `reopen`, and `reopenClass` are not
exported. Also, `get` and `set` have naive types. All of these will
be depreca... | packages/@ember/-internals/runtime/types/mixin.d.ts | @@ -0,0 +1,3 @@
+import { Mixin } from '../../metal/lib/mixin';
+
+export default Mixin; | true |
Other | emberjs | ember.js | d8f28f42043f077e1b81290d9903c4dd13dca163.json | Improve types for @ember/object
Includes:
- Object, { action } from '@ember/object'
- CoreObject from '@ember/object/core'
- Observable from '@ember/object/observable'
Note that types for `extend`, `reopen`, and `reopenClass` are not
exported. Also, `get` and `set` have naive types. All of these will
be depreca... | packages/@ember/-internals/runtime/types/observable.d.ts | @@ -0,0 +1,81 @@
+import { ObserverMethod } from './-private/types';
+
+/**
+ * This mixin provides properties and property observing functionality, core features of the Ember object model.
+ */
+interface Observable {
+ /**
+ * Retrieves the value of a property from the object.
+ */
+ get<K extends keyof this>(k... | true |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.