@ember-data-types/tracking 5.9.0-alpha.3 → 5.9.0-alpha.30

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,8 +1,7 @@
1
1
  {
2
2
  "name": "@ember-data-types/tracking",
3
- "version": "5.9.0-alpha.3",
3
+ "version": "5.9.0-alpha.30",
4
4
  "files": [
5
- "unstable-preview-types",
6
5
  "README.md",
7
6
  "LICENSE.md",
8
7
  "logos"
@@ -1,95 +0,0 @@
1
-
2
- declare module '@ember-data/tracking' {
3
- /**
4
- * # ~~@ember-data/tracking~~ <Badge type="warning" text="deprecated v5.5" />
5
- *
6
- * Using ***Warp*Drive** with EmberJS requires configuring it to use Ember's reactivity system.
7
- *
8
- * ::: warning
9
- * The use of the package **@ember-data/tracking** is now deprecated. It
10
- * historically provided the bindings into Ember's reactivity system.
11
- *
12
- * This package is no longer needed as the configuration is now
13
- * provided by the package {@link @warp-drive/ember! | @warp-drive/ember}.
14
- *
15
- * :::
16
- *
17
- * To resolve this deprecation, follow these steps:
18
- *
19
- * ## 1. Remove @ember-data/tracking
20
- *
21
- * - Remove `@ember-data/tracking` from package.json (if using `ember-data` this may not be present)
22
- * - Remove type imports for `@ember-data/tracking` from tsconfig.json
23
- * - If using `untracked`, change to using `untrack` from `@glimmer/validator`
24
- *
25
- * ## 2. Add @warp-drive/ember
26
- *
27
- * - Add `@warp-drive/ember` to package.json - the version to install should match the version of `ember-data` or `@ember-data/store`
28
- * - Do NOT add `@warp-drive/ember` to tsconfig.json - the types in this package install automatically, you can remove any entry for this if it is there
29
- * - Add `import '@warp-drive/ember/install';` to the top of your `app.js` or `app.ts` file
30
- *
31
- * ## 3. Clear the deprecation
32
- *
33
- * Once the above steps are complete, the deprecation can be silenced and the automatic fallback
34
- * registration of reactivity from `@ember-data/tracking` can be removed by updating your
35
- * {@link @warp-drive/build-config! | WarpDrive Build Config} in your `ember-cli-build` file.
36
- *
37
- * ```js [ember-cli-build.js]
38
- * 'use strict';
39
- * const EmberApp = require('ember-cli/lib/broccoli/ember-app');
40
- * const { compatBuild } = require('@embroider/compat');
41
- *
42
- * module.exports = async function (defaults) {
43
- * const { setConfig } = await import('@warp-drive/build-config'); // [!code focus]
44
- * const { buildOnce } = await import('@embroider/vite');
45
- * const app = new EmberApp(defaults, {});
46
- *
47
- * setConfig(app, __dirname, { // [!code focus:9]
48
- * // this should be the most recent <major>.<minor> version for
49
- * // which all deprecations have been fully resolved
50
- * // and should be updated when that changes
51
- * compatWith: '4.12'
52
- * deprecations: {
53
- * // ... list individual deprecations that have been resolved here
54
- * DEPRECATE_TRACKING_PACKAGE: false // [!code highlight]
55
- * }
56
- * });
57
- *
58
- * return compatBuild(app, buildOnce);
59
- * };
60
- *```
61
- *
62
- * @deprecated in version 5.5.0
63
- * @module
64
- */
65
- import { tagForProperty } from "@ember/-internals/metal";
66
- type Tag = ReturnType<typeof tagForProperty>;
67
- /**
68
- * <Badge type="warning" text="deprecated" />
69
- *
70
- * Creates a signal configuration object for WarpDrive that integrates with Ember's
71
- * reactivity system. This will be automatically imported and registered by
72
- * `@ember-data/store` if the deprecation has not been resolved.
73
- *
74
- * This function should not be called directly in your application code
75
- * and this package is deprecated entirely. Use {@link @warp-drive/ember! | @warp-drive/ember}
76
- * instead.
77
- *
78
- * @deprecated
79
- * @public
80
- */
81
- export function buildSignalConfig(options: {
82
- wellknown: {
83
- Array: symbol | string;
84
- };
85
- }): {
86
- createSignal(obj: object, key: string | symbol): Tag | [Tag, Tag, Tag];
87
- consumeSignal(signal: Tag | [Tag, Tag, Tag]): void;
88
- notifySignal(signal: Tag | [Tag, Tag, Tag]): void;
89
- createMemo: <F>(object: object, key: string | symbol, fn: () => F) => (() => F);
90
- willSyncFlushWatchers: () => boolean;
91
- waitFor: <K>(promise: Promise<K>) => Promise<K>;
92
- };
93
- export {};
94
-
95
- }