Skip to content

Commit da2e7a6

Browse files
authored
Merge branch 'alpha' into fetch-api
2 parents 75dd3cd + 566cfaa commit da2e7a6

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

65 files changed

+554
-916
lines changed

.npmignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
types/tests
1+
types/tests.ts
2+
types/eslint.config.mjs

eslint.config.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ module.exports = tseslint.config({
66
files: ['**/*.js', '**/*.ts'],
77
extends: [
88
eslint.configs.recommended,
9-
...tseslint.configs.recommended,
9+
...tseslint.configs.stylistic,
10+
...tseslint.configs.strict,
1011
],
1112
plugins: {
1213
'@typescript-eslint': tseslint.plugin,
@@ -34,6 +35,9 @@ module.exports = tseslint.config({
3435
"@typescript-eslint/no-var-requires": "off",
3536
"@typescript-eslint/no-non-null-assertion": "off",
3637
"@typescript-eslint/no-require-imports": "off",
38+
"@typescript-eslint/no-dynamic-delete": "off",
39+
"@typescript-eslint/prefer-for-of": "off",
40+
"@typescript-eslint/no-extraneous-class": "off",
3741
"@typescript-eslint/no-unused-vars": [
3842
"error",
3943
{

integration/test/ParseUserTest.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,6 @@ const { v4: uuidv4 } = require('uuid');
66
const { twitterAuthData } = require('./helper');
77

88
class CustomUser extends Parse.User {
9-
constructor(attributes) {
10-
super(attributes);
11-
}
12-
139
doSomething() {
1410
return 5;
1511
}

package-lock.json

Lines changed: 32 additions & 32 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
"@babel/preset-env": "7.26.9",
4545
"@babel/preset-react": "7.26.3",
4646
"@babel/preset-typescript": "7.26.0",
47-
"@eslint/js": "9.22.0",
47+
"@eslint/js": "9.23.0",
4848
"@parse/minami": "git+https://github.com/parse-community/minami#main",
4949
"@saithodev/semantic-release-backmerge": "4.0.1",
5050
"@semantic-release/changelog": "6.0.3",
@@ -62,7 +62,7 @@
6262
"codecov": "3.8.3",
6363
"core-js": "3.41.0",
6464
"cross-env": "7.0.2",
65-
"eslint": "9.22.0",
65+
"eslint": "9.23.0",
6666
"eslint-plugin-expect-type": "0.6.2",
6767
"eslint-plugin-jsdoc": "50.6.8",
6868
"express": "4.21.2",
@@ -107,7 +107,7 @@
107107
"posttest:mongodb": "mongodb-runner stop --all",
108108
"lint": "eslint --cache src/ integration/",
109109
"lint:fix": "eslint --fix --cache src/ integration/",
110-
"test:types": "eslint types/tests.ts -c eslint.config.test.mjs",
110+
"test:types": "eslint types/tests.ts -c ./types/eslint.config.mjs",
111111
"watch": "cross-env PARSE_BUILD=${PARSE_BUILD} gulp watch",
112112
"watch:browser": "cross-env PARSE_BUILD=browser npm run watch",
113113
"watch:node": "cross-env PARSE_BUILD=node npm run watch",

src/Analytics.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ import CoreManager from './CoreManager';
4040
* @returns {Promise} A promise that is resolved when the round-trip
4141
* to the server completes.
4242
*/
43-
export function track(name: string, dimensions: { [key: string]: string }): Promise<void> {
43+
export function track(name: string, dimensions: Record<string, string>): Promise<void> {
4444
name = name || '';
4545
name = name.replace(/^\s*/, '');
4646
name = name.replace(/\s*$/, '');
@@ -58,7 +58,7 @@ export function track(name: string, dimensions: { [key: string]: string }): Prom
5858
}
5959

6060
const DefaultController = {
61-
track(name: string, dimensions: { [key: string]: string }) {
61+
track(name: string, dimensions: Record<string, string>) {
6262
const path = 'events/' + name;
6363
const RESTController = CoreManager.getRESTController();
6464
return RESTController.request('POST', path, { dimensions });

0 commit comments

Comments
 (0)