ember-source 4.9.0-alpha.2 → 4.9.0-alpha.4

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,6 +1,6 @@
1
1
  {
2
2
  "name": "ember-source",
3
- "version": "4.9.0-alpha.2",
3
+ "version": "4.9.0-alpha.4",
4
4
  "description": "A JavaScript framework for creating ambitious web applications",
5
5
  "keywords": [
6
6
  "ember-addon"
@@ -41,16 +41,16 @@
41
41
  "lint:docs": "qunit tests/docs/coverage-test.js",
42
42
  "lint:eslint": "eslint --report-unused-disable-directives --cache .",
43
43
  "lint:eslint:fix": "npm-run-all \"lint:eslint --fix\"",
44
- "lint:tsc:stable": "tsc --noEmit",
45
- "lint:tsc:preview": "tsc --noEmit --project type-tests/preview",
46
- "lint:tsc": "npm-run-all lint:tsc:*",
47
44
  "lint:fix": "npm-run-all lint:*:fix",
48
45
  "test": "node bin/run-tests.js",
49
46
  "test:blueprints:js": "mocha node-tests/blueprints/**/*-test.js",
50
47
  "test:blueprints:ts": "EMBER_TYPESCRIPT_BLUEPRINTS=true yarn test:blueprints:js",
51
48
  "test:blueprints": "yarn test:blueprints:js && yarn test:blueprints:ts",
52
49
  "test:node": "qunit tests/node/**/*-test.js",
53
- "test:browserstack": "node bin/run-browserstack-tests.js"
50
+ "test:browserstack": "node bin/run-browserstack-tests.js",
51
+ "type-check:stable": "tsc --noEmit",
52
+ "type-check:preview": "tsc --noEmit --project type-tests/preview",
53
+ "type-check": "npm-run-all type-check:*"
54
54
  },
55
55
  "dependencies": {
56
56
  "@babel/helper-module-imports": "^7.16.7",
@@ -98,10 +98,11 @@
98
98
  "@glimmer/validator": "0.84.2",
99
99
  "@simple-dom/document": "^1.4.0",
100
100
  "@tsconfig/ember": "^1.0.1",
101
+ "@types/node": "^18.7.23",
101
102
  "@types/qunit": "^2.19.2",
102
103
  "@types/rsvp": "^4.0.4",
103
- "@typescript-eslint/eslint-plugin": "^5.22.0",
104
- "@typescript-eslint/parser": "^5.15.0",
104
+ "@typescript-eslint/eslint-plugin": "^5.38.0",
105
+ "@typescript-eslint/parser": "^5.38.0",
105
106
  "auto-dist-tag": "^2.1.1",
106
107
  "aws-sdk": "^2.1166.0",
107
108
  "babel-template": "^6.26.0",
@@ -157,7 +158,7 @@
157
158
  "simple-dom": "^1.4.0",
158
159
  "testem": "^3.8.0",
159
160
  "testem-failure-only-reporter": "^1.0.0",
160
- "typescript": "~4.6.4"
161
+ "typescript": "~4.8.3"
161
162
  },
162
163
  "peerDependencies": {
163
164
  "@glimmer/component": "^1.1.2"
@@ -169,13 +170,16 @@
169
170
  "after": "ember-cli-legacy-blueprints"
170
171
  },
171
172
  "typesVersions": {
172
- "*": {
173
+ "types/*": {
174
+ "stable": [
175
+ "./types/stable"
176
+ ],
173
177
  "preview": [
174
178
  "./types/preview"
175
179
  ]
176
180
  }
177
181
  },
178
- "_originalVersion": "4.9.0-alpha.2",
182
+ "_originalVersion": "4.9.0-alpha.4",
179
183
  "_versionPreviouslyCalculated": true,
180
184
  "publishConfig": {
181
185
  "tag": "alpha"
@@ -8,14 +8,13 @@ declare module '@ember/routing/route' {
8
8
 
9
9
  type RouteModel = object | string | number;
10
10
 
11
+ export default interface Route<Model, Params extends object> extends ActionHandler, Evented {}
12
+
11
13
  /**
12
14
  * The `Ember.Route` class is used to define individual routes. Refer to
13
15
  * the [routing guide](http://emberjs.com/guides/routing/) for documentation.
14
16
  */
15
- export default class Route<
16
- Model = unknown,
17
- Params extends object = object
18
- > extends EmberObject.extend(ActionHandler, Evented) {
17
+ export default class Route<Model = unknown, Params extends object = object> extends EmberObject {
19
18
  // methods
20
19
  /**
21
20
  * This hook is called after this route's model has resolved. It follows
@@ -0,0 +1,12 @@
1
+ // Future home of stable Ember types! This file currently does nothing, but in
2
+ // the months ahead will look more and more like the `/types/preview/index.d.ts`
3
+ // while that one empties. This is just here so that someone who writes the
4
+ // import we recommend--
5
+ //
6
+ // ```ts
7
+ // import 'ember-source/types';
8
+ // import 'ember-source/types/preview';
9
+ // ```
10
+ //
11
+ // --will not get warnings from TypeScript while we wait on putting actual
12
+ // things here!