parse 4.2.0 → 4.3.0-alpha.2

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.
Files changed (84) hide show
  1. package/dist/parse.js +2172 -1735
  2. package/dist/parse.min.js +2 -2
  3. package/dist/parse.weapp.js +2154 -1717
  4. package/dist/parse.weapp.min.js +2 -2
  5. package/lib/browser/Cloud.js +25 -3
  6. package/lib/browser/CoreManager.js +31 -4
  7. package/lib/browser/EventEmitter.js +7 -2
  8. package/lib/browser/EventuallyQueue.js +11 -3
  9. package/lib/browser/LiveQueryClient.js +52 -86
  10. package/lib/browser/LiveQuerySubscription.js +16 -51
  11. package/lib/browser/LocalDatastore.js +7 -0
  12. package/lib/browser/ObjectStateMutations.js +3 -1
  13. package/lib/browser/OfflineQuery.js +1 -1
  14. package/lib/browser/Parse.js +171 -135
  15. package/lib/browser/ParseError.js +12 -1
  16. package/lib/browser/ParseLiveQuery.js +79 -51
  17. package/lib/browser/ParseObject.js +5 -1
  18. package/lib/browser/ParseQuery.js +53 -58
  19. package/lib/browser/ParseSchema.js +22 -1
  20. package/lib/browser/ParseSession.js +2 -6
  21. package/lib/browser/ParseUser.js +65 -8
  22. package/lib/browser/Push.js +20 -1
  23. package/lib/browser/RESTController.js +18 -14
  24. package/lib/browser/Storage.js +7 -0
  25. package/lib/node/Cloud.js +8 -2
  26. package/lib/node/CoreManager.js +30 -4
  27. package/lib/node/EventEmitter.js +7 -1
  28. package/lib/node/EventuallyQueue.js +10 -3
  29. package/lib/node/LiveQueryClient.js +5 -5
  30. package/lib/node/LiveQuerySubscription.js +5 -7
  31. package/lib/node/LocalDatastore.js +6 -0
  32. package/lib/node/ObjectStateMutations.js +3 -1
  33. package/lib/node/OfflineQuery.js +1 -1
  34. package/lib/node/Parse.js +162 -126
  35. package/lib/node/ParseError.js +15 -1
  36. package/lib/node/ParseLiveQuery.js +32 -24
  37. package/lib/node/ParseObject.js +5 -1
  38. package/lib/node/ParseQuery.js +3 -6
  39. package/lib/node/ParseSchema.js +20 -1
  40. package/lib/node/ParseSession.js +1 -6
  41. package/lib/node/ParseUser.js +58 -8
  42. package/lib/node/Push.js +5 -2
  43. package/lib/node/RESTController.js +13 -9
  44. package/lib/node/Storage.js +6 -0
  45. package/lib/react-native/Cloud.js +18 -5
  46. package/lib/react-native/CoreManager.js +30 -4
  47. package/lib/react-native/EventEmitter.js +8 -5
  48. package/lib/react-native/EventuallyQueue.js +10 -3
  49. package/lib/react-native/LiveQueryClient.js +38 -68
  50. package/lib/react-native/LiveQuerySubscription.js +16 -46
  51. package/lib/react-native/LocalDatastore.js +6 -0
  52. package/lib/react-native/ObjectStateMutations.js +3 -1
  53. package/lib/react-native/OfflineQuery.js +1 -1
  54. package/lib/react-native/Parse.js +127 -90
  55. package/lib/react-native/ParseError.js +8 -1
  56. package/lib/react-native/ParseLiveQuery.js +39 -11
  57. package/lib/react-native/ParseObject.js +4 -0
  58. package/lib/react-native/ParseQuery.js +3 -6
  59. package/lib/react-native/ParseSchema.js +14 -1
  60. package/lib/react-native/ParseUser.js +49 -6
  61. package/lib/react-native/Push.js +13 -3
  62. package/lib/react-native/RESTController.js +13 -9
  63. package/lib/react-native/Storage.js +6 -0
  64. package/lib/weapp/Cloud.js +25 -3
  65. package/lib/weapp/CoreManager.js +31 -4
  66. package/lib/weapp/EventEmitter.js +7 -2
  67. package/lib/weapp/EventuallyQueue.js +11 -3
  68. package/lib/weapp/LiveQueryClient.js +52 -86
  69. package/lib/weapp/LiveQuerySubscription.js +16 -51
  70. package/lib/weapp/LocalDatastore.js +7 -0
  71. package/lib/weapp/ObjectStateMutations.js +3 -1
  72. package/lib/weapp/OfflineQuery.js +1 -1
  73. package/lib/weapp/Parse.js +170 -134
  74. package/lib/weapp/ParseError.js +12 -1
  75. package/lib/weapp/ParseLiveQuery.js +79 -51
  76. package/lib/weapp/ParseObject.js +5 -1
  77. package/lib/weapp/ParseQuery.js +53 -58
  78. package/lib/weapp/ParseSchema.js +22 -1
  79. package/lib/weapp/ParseSession.js +2 -6
  80. package/lib/weapp/ParseUser.js +65 -8
  81. package/lib/weapp/Push.js +20 -1
  82. package/lib/weapp/RESTController.js +18 -14
  83. package/lib/weapp/Storage.js +7 -0
  84. package/package.json +22 -18
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "parse",
3
- "version": "4.2.0",
3
+ "version": "4.3.0-alpha.2",
4
4
  "description": "Parse JavaScript SDK",
5
5
  "homepage": "https://parseplatform.org",
6
6
  "keywords": [
@@ -29,23 +29,25 @@
29
29
  "react-native": false
30
30
  },
31
31
  "dependencies": {
32
- "@babel/runtime-corejs3": "7.21.0",
33
- "idb-keyval": "6.2.0",
32
+ "@babel/runtime-corejs3": "7.22.15",
33
+ "idb-keyval": "6.2.1",
34
34
  "react-native-crypto-js": "1.0.0",
35
35
  "uuid": "9.0.0",
36
36
  "ws": "8.13.0",
37
37
  "xmlhttprequest": "1.8.0"
38
38
  },
39
39
  "devDependencies": {
40
- "@babel/core": "7.21.5",
41
- "@babel/eslint-parser": "7.21.3",
40
+ "@babel/core": "7.22.0",
41
+ "@babel/eslint-parser": "7.21.8",
42
42
  "@babel/plugin-proposal-class-properties": "7.18.6",
43
- "@babel/plugin-transform-flow-comments": "7.21.0",
43
+ "@babel/plugin-transform-flow-comments": "7.22.5",
44
44
  "@babel/plugin-transform-flow-strip-types": "7.21.0",
45
45
  "@babel/plugin-transform-runtime": "7.21.4",
46
- "@babel/preset-env": "7.21.4",
47
- "@babel/preset-react": "7.18.6",
48
- "@parse/minami": "1.0.0",
46
+ "@babel/preset-env": "7.21.5",
47
+ "@babel/preset-react": "7.22.5",
48
+ "@babel/preset-typescript": "7.22.5",
49
+ "@definitelytyped/dtslint": "0.0.163",
50
+ "@parse/minami": "git+https://github.com/parse-community/minami#main",
49
51
  "@saithodev/semantic-release-backmerge": "2.1.3",
50
52
  "@semantic-release/changelog": "6.0.3",
51
53
  "@semantic-release/commit-analyzer": "9.0.2",
@@ -59,9 +61,9 @@
59
61
  "babel-plugin-transform-inline-environment-variables": "0.4.4",
60
62
  "browserify": "17.0.0",
61
63
  "codecov": "3.8.3",
62
- "core-js": "3.30.1",
64
+ "core-js": "3.30.2",
63
65
  "cross-env": "7.0.2",
64
- "eslint": "8.39.0",
66
+ "eslint": "8.40.0",
65
67
  "eslint-plugin-flowtype": "8.0.3",
66
68
  "eslint-plugin-jsdoc": "43.0.7",
67
69
  "express": "4.18.2",
@@ -73,7 +75,7 @@
73
75
  "gulp-uglify": "3.0.2",
74
76
  "gulp-watch": "5.0.1",
75
77
  "husky": "8.0.3",
76
- "jasmine": "4.6.0",
78
+ "jasmine": "5.0.0",
77
79
  "jasmine-reporters": "2.5.2",
78
80
  "jasmine-spec-reporter": "7.0.0",
79
81
  "jest": "29.5.0",
@@ -81,11 +83,11 @@
81
83
  "jsdoc": "4.0.2",
82
84
  "jsdoc-babel": "0.5.0",
83
85
  "lint-staged": "13.2.2",
84
- "metro-react-native-babel-preset": "0.76.3",
85
- "mongodb-runner": "4.10.0",
86
+ "metro-react-native-babel-preset": "0.76.4",
87
+ "mongodb-runner": "5.4.3",
86
88
  "parse-server": "git+https://github.com/parse-community/parse-server#alpha",
87
- "prettier": "2.8.8",
88
- "puppeteer": "19.11.1",
89
+ "prettier": "3.0.2",
90
+ "puppeteer": "20.4.0",
89
91
  "regenerator-runtime": "0.13.11",
90
92
  "semantic-release": "19.0.5",
91
93
  "vinyl-source-stream": "2.0.0"
@@ -95,11 +97,13 @@
95
97
  },
96
98
  "scripts": {
97
99
  "build": "node build_releases.js",
100
+ "build:types": "tsc",
98
101
  "release": "node build_releases.js && npm publish",
99
102
  "test": "cross-env PARSE_BUILD=node jest",
100
103
  "test:mongodb": "npm run test:mongodb:runnerstart && npm run integration",
101
- "test:mongodb:runnerstart": "mongodb-runner start",
102
- "posttest:mongodb": "mongodb-runner stop",
104
+ "test:mongodb:runnerstart": "mongodb-runner start -- --port 27017",
105
+ "test:types": "dtslint --expectOnly types",
106
+ "posttest:mongodb": "mongodb-runner stop --all",
103
107
  "lint": "eslint --cache src/ integration/",
104
108
  "lint:fix": "eslint --fix --cache src/ integration/",
105
109
  "watch": "cross-env PARSE_BUILD=${PARSE_BUILD} gulp watch",