Skip to content

Commit 05b6ac6

Browse files
authored
Merge branch 'alpha' into alpha
2 parents f87169b + 889dbb5 commit 05b6ac6

28 files changed

+3841
-567
lines changed

.babelrc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
{
22
"plugins": [
3-
"@babel/plugin-transform-flow-strip-types",
4-
"@babel/plugin-proposal-object-rest-spread"
3+
"@babel/plugin-transform-flow-strip-types"
54
],
65
"presets": [
6+
"@babel/preset-typescript",
77
["@babel/preset-env", {
88
"targets": {
9-
"node": "14",
9+
"node": "18"
1010
},
1111
"exclude": ["proposal-dynamic-import"]
1212
}]

.eslintignore

Lines changed: 0 additions & 3 deletions
This file was deleted.

.eslintrc.json

Lines changed: 0 additions & 35 deletions
This file was deleted.

.github/workflows/ci.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,17 @@ jobs:
138138
uses: mansona/npm-lockfile-version@v1
139139
with:
140140
version: 2
141+
check-types:
142+
name: Check Types
143+
timeout-minutes: 5
144+
runs-on: ubuntu-latest
145+
steps:
146+
- uses: actions/checkout@v3
147+
- run: npm ci
148+
- name: Build types
149+
run: npm run build:types
150+
- name: Check types
151+
run: npm run test:types
141152
check-mongo:
142153
strategy:
143154
matrix:

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@ node_modules
4646

4747
# Babel.js
4848
lib/
49+
# types/* once we have full typescript support, we can generate types from the typescript files
50+
!types/tsconfig.json
4951

5052
# cache folder
5153
.cache

.releaserc.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,12 @@ async function config() {
3030

3131
// Get branch
3232
const branch = ref?.split('/')?.pop()?.split('-')[0] || '(current branch could not be determined)';
33+
// eslint-disable-next-line no-console
3334
console.log(`Running on branch: ${branch}`);
3435

3536
// Set changelog file
3637
const changelogFile = `./changelogs/CHANGELOG_${branch}.md`;
38+
// eslint-disable-next-line no-console
3739
console.log(`Changelog file output to: ${changelogFile}`);
3840

3941
// Load template file contents
@@ -108,7 +110,7 @@ async function config() {
108110

109111
async function loadTemplates() {
110112
for (const template of Object.keys(templates)) {
111-
113+
112114
// For ES6 modules use:
113115
// const fileUrl = import.meta.url;
114116
// const __dirname = dirname(fileURLToPath(fileUrl));

changelogs/CHANGELOG_alpha.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
# [8.0.0-alpha.9](https://github.com/parse-community/parse-server/compare/8.0.0-alpha.8...8.0.0-alpha.9) (2025-01-30)
2+
3+
4+
### Features
5+
6+
* Add TypeScript support ([#9550](https://github.com/parse-community/parse-server/issues/9550)) ([59e46d0](https://github.com/parse-community/parse-server/commit/59e46d0aea3e6529994d98160d993144b8075291))
7+
18
# [8.0.0-alpha.8](https://github.com/parse-community/parse-server/compare/8.0.0-alpha.7...8.0.0-alpha.8) (2025-01-30)
29

310

ci/CiVersionCheck.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,7 @@ class CiVersionCheck {
220220
* Runs the check.
221221
*/
222222
async check() {
223+
/* eslint-disable no-console */
223224
try {
224225
console.log(`\nChecking ${this.packageName} versions in CI environments...`);
225226

@@ -284,6 +285,7 @@ class CiVersionCheck {
284285
const msg = `Failed to check ${this.packageName} versions with error: ${e}`;
285286
core.setFailed(msg);
286287
}
288+
/* eslint-enable no-console */
287289
}
288290
}
289291

ci/definitionsCheck.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ const util = require('util');
1414
fs.readFile('./src/Options/docs.js', 'utf8'),
1515
]);
1616
if (currentDefinitions !== newDefinitions || currentDocs !== newDocs) {
17+
// eslint-disable-next-line no-console
1718
console.error(
1819
'\x1b[31m%s\x1b[0m',
1920
'Definitions files cannot be updated manually. Please update src/Options/index.js then run `npm run definitions` to generate definitions.'

ci/nodeEngineCheck.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ class NodeEngineCheck {
8787
nodeVersion: version
8888
});
8989
} catch(e) {
90+
// eslint-disable-next-line no-console
9091
console.log(`Ignoring file because it is not valid JSON: ${file}`);
9192
core.warning(`Ignoring file because it is not valid JSON: ${file}`);
9293
}
@@ -171,6 +172,7 @@ async function check() {
171172
// Get highest version
172173
const highestVersion = higherVersions.map(v => v.nodeMinVersion).pop();
173174

175+
/* eslint-disable no-console */
174176
// If there are higher versions
175177
if (higherVersions.length > 0) {
176178
console.log(`\nThere are ${higherVersions.length} dependencies that require a higher node engine version than the parent package (${parentVersion.nodeVersion}):`);
@@ -189,6 +191,7 @@ async function check() {
189191
}
190192

191193
console.log(`✅ All dependencies satisfy the node version requirement of the parent package (${parentVersion.nodeVersion}).`);
194+
/* eslint-enable no-console */
192195
}
193196

194197
check();

0 commit comments

Comments
 (0)