parse 6.2.0-alpha.1 → 6.2.0-alpha.3

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/index.js CHANGED
@@ -1 +1 @@
1
- module.exports = require('./lib/browser/Parse.js');
1
+ module.exports = require('./lib/browser/Parse.js').default;
@@ -19,7 +19,7 @@ const config = {
19
19
  SERVER_AUTH_TOKEN: null,
20
20
  LIVEQUERY_SERVER_URL: null,
21
21
  ENCRYPTED_KEY: null,
22
- VERSION: 'js' + "6.2.0-alpha.1",
22
+ VERSION: 'js' + "6.2.0-alpha.3",
23
23
  APPLICATION_ID: null,
24
24
  JAVASCRIPT_KEY: null,
25
25
  MAINTENANCE_KEY: null,
@@ -397,7 +397,8 @@ const Parse = {
397
397
  }
398
398
  };
399
399
  _CoreManager.default.setRESTController(_RESTController.default);
400
+ globalThis.Parse = Parse;
401
+
400
402
  // For legacy requires, of the form `var Parse = require('parse').Parse`
401
403
  Parse.Parse = Parse;
402
- module.exports = Parse;
403
404
  var _default = exports.default = Parse;
@@ -5,6 +5,7 @@ var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequ
5
5
  _Object$defineProperty(exports, "__esModule", {
6
6
  value: true
7
7
  });
8
+ exports.b64Digit = b64Digit;
8
9
  exports.default = void 0;
9
10
  var _isArray = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/array/is-array"));
10
11
  var _slice = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/instance/slice"));
@@ -505,5 +506,4 @@ const DefaultController = {
505
506
  }
506
507
  };
507
508
  _CoreManager.default.setFileController(DefaultController);
508
- var _default = exports.default = ParseFile;
509
- exports.b64Digit = b64Digit;
509
+ var _default = exports.default = ParseFile;
@@ -295,7 +295,7 @@ const RESTController = {
295
295
  if (response && response.responseText) {
296
296
  try {
297
297
  const errorJSON = JSON.parse(response.responseText);
298
- error = new _ParseError.default(errorJSON.code, errorJSON.error);
298
+ error = new _ParseError.default(errorJSON.code, errorJSON.error || errorJSON.message);
299
299
  } catch (_) {
300
300
  // If we fail to parse the error text, that's okay.
301
301
  error = new _ParseError.default(_ParseError.default.INVALID_JSON, 'Received an error with invalid JSON from Parse: ' + response.responseText);
@@ -16,7 +16,7 @@ const config = {
16
16
  SERVER_AUTH_TOKEN: null,
17
17
  LIVEQUERY_SERVER_URL: null,
18
18
  ENCRYPTED_KEY: null,
19
- VERSION: 'js' + "6.2.0-alpha.1",
19
+ VERSION: 'js' + "6.2.0-alpha.3",
20
20
  APPLICATION_ID: null,
21
21
  JAVASCRIPT_KEY: null,
22
22
  MAINTENANCE_KEY: null,
package/lib/node/Parse.js CHANGED
@@ -389,13 +389,13 @@ const Parse = {
389
389
  };
390
390
  _CoreManager.default.setRESTController(_RESTController.default);
391
391
  Parse.initialize = Parse._initialize;
392
- Parse.Cloud = Parse.Cloud || {};
392
+ Parse.Cloud = {
393
+ ...(Parse.Cloud || {})
394
+ };
393
395
  Parse.Cloud.useMasterKey = function () {
394
396
  _CoreManager.default.set('USE_MASTER_KEY', true);
395
397
  };
396
398
  Parse.Hooks = Hooks;
397
-
398
399
  // For legacy requires, of the form `var Parse = require('parse').Parse`
399
400
  Parse.Parse = Parse;
400
- module.exports = Parse;
401
401
  var _default = exports.default = Parse;
@@ -3,6 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
+ exports.b64Digit = b64Digit;
6
7
  exports.default = void 0;
7
8
  var _CoreManager = _interopRequireDefault(require("./CoreManager"));
8
9
  var _ParseError = _interopRequireDefault(require("./ParseError"));
@@ -506,5 +507,4 @@ const DefaultController = {
506
507
  }
507
508
  };
508
509
  _CoreManager.default.setFileController(DefaultController);
509
- var _default = exports.default = ParseFile;
510
- exports.b64Digit = b64Digit;
510
+ var _default = exports.default = ParseFile;
@@ -289,7 +289,7 @@ const RESTController = {
289
289
  if (response && response.responseText) {
290
290
  try {
291
291
  const errorJSON = JSON.parse(response.responseText);
292
- error = new _ParseError.default(errorJSON.code, errorJSON.error);
292
+ error = new _ParseError.default(errorJSON.code, errorJSON.error || errorJSON.message);
293
293
  } catch (_) {
294
294
  // If we fail to parse the error text, that's okay.
295
295
  error = new _ParseError.default(_ParseError.default.INVALID_JSON, 'Received an error with invalid JSON from Parse: ' + response.responseText);
@@ -12,7 +12,7 @@ var config = {
12
12
  SERVER_AUTH_TOKEN: null,
13
13
  LIVEQUERY_SERVER_URL: null,
14
14
  ENCRYPTED_KEY: null,
15
- VERSION: 'js' + "6.2.0-alpha.1",
15
+ VERSION: 'js' + "6.2.0-alpha.3",
16
16
  APPLICATION_ID: null,
17
17
  JAVASCRIPT_KEY: null,
18
18
  MAINTENANCE_KEY: null,
@@ -267,5 +267,4 @@ var Parse = {
267
267
  };
268
268
  _CoreManager.default.setRESTController(_RESTController.default);
269
269
  Parse.Parse = Parse;
270
- module.exports = Parse;
271
270
  var _default = exports.default = Parse;
@@ -2,6 +2,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
2
2
  Object.defineProperty(exports, "__esModule", {
3
3
  value: true
4
4
  });
5
+ exports.b64Digit = b64Digit;
5
6
  exports.default = void 0;
6
7
  var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
7
8
  var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
@@ -398,5 +399,4 @@ var DefaultController = {
398
399
  }
399
400
  };
400
401
  _CoreManager.default.setFileController(DefaultController);
401
- var _default = exports.default = ParseFile;
402
- exports.b64Digit = b64Digit;
402
+ var _default = exports.default = ParseFile;
@@ -264,7 +264,7 @@ var RESTController = {
264
264
  if (response && response.responseText) {
265
265
  try {
266
266
  var errorJSON = JSON.parse(response.responseText);
267
- error = new _ParseError.default(errorJSON.code, errorJSON.error);
267
+ error = new _ParseError.default(errorJSON.code, errorJSON.error || errorJSON.message);
268
268
  } catch (_) {
269
269
  error = new _ParseError.default(_ParseError.default.INVALID_JSON, 'Received an error with invalid JSON from Parse: ' + response.responseText);
270
270
  }
@@ -19,7 +19,7 @@ const config = {
19
19
  SERVER_AUTH_TOKEN: null,
20
20
  LIVEQUERY_SERVER_URL: null,
21
21
  ENCRYPTED_KEY: null,
22
- VERSION: 'js' + "6.2.0-alpha.1",
22
+ VERSION: 'js' + "6.2.0-alpha.3",
23
23
  APPLICATION_ID: null,
24
24
  JAVASCRIPT_KEY: null,
25
25
  MAINTENANCE_KEY: null,
@@ -395,5 +395,4 @@ const Parse = {
395
395
  _CoreManager.default.setRESTController(_RESTController.default);
396
396
  // For legacy requires, of the form `var Parse = require('parse').Parse`
397
397
  Parse.Parse = Parse;
398
- module.exports = Parse;
399
398
  var _default = exports.default = Parse;
@@ -5,6 +5,7 @@ var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequ
5
5
  _Object$defineProperty(exports, "__esModule", {
6
6
  value: true
7
7
  });
8
+ exports.b64Digit = b64Digit;
8
9
  exports.default = void 0;
9
10
  var _isArray = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/array/is-array"));
10
11
  var _slice = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/instance/slice"));
@@ -506,5 +507,4 @@ const DefaultController = {
506
507
  }
507
508
  };
508
509
  _CoreManager.default.setFileController(DefaultController);
509
- var _default = exports.default = ParseFile;
510
- exports.b64Digit = b64Digit;
510
+ var _default = exports.default = ParseFile;
@@ -296,7 +296,7 @@ const RESTController = {
296
296
  if (response && response.responseText) {
297
297
  try {
298
298
  const errorJSON = JSON.parse(response.responseText);
299
- error = new _ParseError.default(errorJSON.code, errorJSON.error);
299
+ error = new _ParseError.default(errorJSON.code, errorJSON.error || errorJSON.message);
300
300
  } catch (_) {
301
301
  // If we fail to parse the error text, that's okay.
302
302
  error = new _ParseError.default(_ParseError.default.INVALID_JSON, 'Received an error with invalid JSON from Parse: ' + response.responseText);
package/node.js CHANGED
@@ -1 +1 @@
1
- module.exports = require('./lib/node/Parse.js');
1
+ module.exports = require('./lib/node/Parse.js').default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "parse",
3
- "version": "6.2.0-alpha.1",
3
+ "version": "6.2.0-alpha.3",
4
4
  "description": "Parse JavaScript SDK",
5
5
  "homepage": "https://parseplatform.org",
6
6
  "keywords": [
@@ -45,8 +45,9 @@
45
45
  "@babel/preset-env": "7.26.9",
46
46
  "@babel/preset-react": "7.26.3",
47
47
  "@babel/preset-typescript": "7.27.0",
48
- "@eslint/js": "9.23.0",
48
+ "@eslint/js": "9.24.0",
49
49
  "@parse/minami": "git+https://github.com/parse-community/minami#main",
50
+ "@rollup/plugin-terser": "0.4.4",
50
51
  "@saithodev/semantic-release-backmerge": "4.0.1",
51
52
  "@semantic-release/changelog": "6.0.3",
52
53
  "@semantic-release/commit-analyzer": "13.0.1",
@@ -56,23 +57,17 @@
56
57
  "@semantic-release/release-notes-generator": "14.0.3",
57
58
  "@types/facebook-js-sdk": "3.3.11",
58
59
  "babel-jest": "29.5.0",
59
- "babel-plugin-inline-package-json": "2.0.0",
60
60
  "babel-plugin-minify-dead-code-elimination": "0.5.2",
61
61
  "babel-plugin-transform-inline-environment-variables": "0.4.4",
62
- "browserify": "17.0.0",
63
62
  "codecov": "3.8.3",
64
63
  "core-js": "3.41.0",
65
64
  "cross-env": "7.0.2",
66
- "eslint": "9.23.0",
65
+ "eslint": "9.24.0",
67
66
  "eslint-plugin-expect-type": "0.6.2",
68
67
  "eslint-plugin-jsdoc": "50.6.9",
69
68
  "express": "5.1.0",
70
69
  "gulp": "5.0.0",
71
70
  "gulp-babel": "8.0.0",
72
- "gulp-derequire": "3.0.0",
73
- "gulp-insert": "0.5.0",
74
- "gulp-rename": "2.0.0",
75
- "gulp-uglify": "3.0.2",
76
71
  "gulp-watch": "5.0.1",
77
72
  "jasmine": "5.6.0",
78
73
  "jasmine-reporters": "2.5.2",
@@ -81,16 +76,18 @@
81
76
  "jest-environment-jsdom": "29.7.0",
82
77
  "jsdoc": "4.0.4",
83
78
  "jsdoc-babel": "0.5.0",
84
- "lint-staged": "15.5.0",
79
+ "lint-staged": "15.5.1",
85
80
  "madge": "8.0.0",
86
81
  "metro-react-native-babel-preset": "0.77.0",
87
- "mongodb-runner": "5.8.1",
82
+ "mongodb-runner": "5.8.2",
88
83
  "parse-server": "8.1.0",
89
- "puppeteer": "24.6.0",
84
+ "puppeteer": "24.6.1",
90
85
  "regenerator-runtime": "0.14.1",
91
86
  "semantic-release": "24.2.3",
92
- "typescript-eslint": "8.29.0",
93
- "vinyl-source-stream": "2.0.0"
87
+ "typescript-eslint": "8.29.1",
88
+ "vite": "6.2.4",
89
+ "vite-plugin-commonjs": "0.10.4",
90
+ "vite-plugin-node-polyfills": "0.23.0"
94
91
  },
95
92
  "optionalDependencies": {
96
93
  "crypto-js": "4.2.0"
@@ -98,6 +95,8 @@
98
95
  "scripts": {
99
96
  "build": "node build_releases.js",
100
97
  "build:types": "tsc",
98
+ "build:browser": "cross-env PARSE_BUILD=browser vite build --config vite.config.umd.ts",
99
+ "build:weapp": "cross-env PARSE_BUILD=weapp vite build --config vite.config.umd.ts",
101
100
  "ci:typecheck": "node ./ci/typecheck.js",
102
101
  "release": "node build_releases.js && npm publish",
103
102
  "test": "cross-env PARSE_BUILD=node jest",
@@ -108,7 +107,7 @@
108
107
  "lint:fix": "eslint --fix --cache src/ integration/",
109
108
  "test:types": "eslint types/tests.ts -c ./types/eslint.config.mjs",
110
109
  "watch": "cross-env PARSE_BUILD=${PARSE_BUILD} gulp watch",
111
- "watch:browser": "cross-env PARSE_BUILD=browser npm run watch",
110
+ "watch:browser": "cross-env PARSE_BUILD=browser vite build --watch --config vite.config.ts",
112
111
  "watch:node": "cross-env PARSE_BUILD=node npm run watch",
113
112
  "watch:react-native": "cross-env PARSE_BUILD=react-native npm run watch",
114
113
  "watch:ts": "tsc --watch",
package/react-native.js CHANGED
@@ -1 +1 @@
1
- module.exports = require('./lib/react-native/Parse.js');
1
+ module.exports = require('./lib/react-native/Parse.js').default;
@@ -23,6 +23,7 @@ export type FileSource = {
23
23
  uri: string;
24
24
  type: string | undefined;
25
25
  };
26
+ export declare function b64Digit(number: number): string;
26
27
  /**
27
28
  * A Parse.File is a local representation of a file that is saved to the Parse
28
29
  * cloud.
package/weapp.js CHANGED
@@ -1 +1 @@
1
- module.exports = require('./lib/weapp/Parse.js');
1
+ module.exports = require('./lib/weapp/Parse.js').default;