-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: InternalModel burndown (#8078)
* slowly burning away * record lifecycle cleanup * fix teardown record assertion * fix test * extracts belongsTo into the model package, only 3 failing tests, one of which is probably a delete case * move hasMany into model, no attempt at tests passing yet * almost there * structurally, its all there. Time to fix a lot of tests * only 240ish internal model usages left in the lib * more work * the great restructuring, part 1 * port @types out of typescript PR * the great migration comes to a pause * fix tests * updates to docs * fix encapsulation test
- Loading branch information
Showing
166 changed files
with
3,334 additions
and
3,595 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
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
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 function dependentKeyCompat(desc: PropertyDescriptor): void; | ||
export function dependentKeyCompat(target: object, key: string, desc: PropertyDescriptor): void; |
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
File renamed without changes.
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,35 @@ | ||
// see https://github.com/DefinitelyTyped/DefinitelyTyped/issues/36809 | ||
export function typeOf(v: unknown): 'object' | 'undefined'; | ||
|
||
/** | ||
* Compares two javascript values and returns: | ||
*/ | ||
export function compare(v: unknown, w: unknown): number; | ||
|
||
/** | ||
* A value is blank if it is empty or a whitespace string. | ||
*/ | ||
export function isBlank(obj?: unknown): boolean; | ||
|
||
/** | ||
* Verifies that a value is `null` or an empty string, empty array, | ||
* or empty function. | ||
*/ | ||
export function isEmpty(obj?: unknown): boolean; | ||
|
||
/** | ||
* Compares two objects, returning true if they are equal. | ||
*/ | ||
export function isEqual(a: unknown, b: unknown): boolean; | ||
|
||
/** | ||
* Returns true if the passed value is null or undefined. This avoids errors | ||
* from JSLint complaining about use of ==, which can be technically | ||
* confusing. | ||
*/ | ||
export function isNone(obj?: unknown): obj is null | undefined; | ||
|
||
/** | ||
* A value is present if it not `isBlank`. | ||
*/ | ||
export function isPresent(obj?: unknown): boolean; |
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 const VERSION: string; |
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 function cached(target: object, key: string, desc: PropertyDescriptor): void; | ||
|
||
export function tracked(target: object, key: string): void; |
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,9 @@ | ||
import EmberArrayProtoExtensions from '@ember/array/types/prototype-extensions'; | ||
|
||
declare module 'ember' { | ||
export function run(callback: Function); | ||
export function meta(obj: Object): { | ||
hasMixin(mixin: Object): boolean; | ||
}; | ||
interface ArrayPrototypeExtensions<T> extends EmberArrayProtoExtensions<T> {} | ||
} |
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 @@ | ||
interface Request { | ||
protocol: string; | ||
host: string; | ||
} | ||
export interface FastBoot { | ||
require(moduleName: string): unknown; | ||
isFastBoot: boolean; | ||
request: Request; | ||
} | ||
|
||
declare global { | ||
const FastBoot: undefined | FastBoot; | ||
} |
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 default function (moduleName: string): unknown; | ||
|
||
export function has(moduleName: string): boolean; |
6 changes: 3 additions & 3 deletions
6
.../addon/-private/ts-interfaces/ds-model.ts → ember-data-types/q/ds-model.ts
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
File renamed without changes.
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
7 changes: 3 additions & 4 deletions
7
...ddon/-private/ts-interfaces/identifier.ts → ember-data-types/q/identifier.ts
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
11 changes: 6 additions & 5 deletions
11
...s-interfaces/minimum-adapter-interface.ts → ...data-types/q/minimum-adapter-interface.ts
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
Oops, something went wrong.