Girish Ramakrishnan
|
fa981d5a83
|
release: replace url with URL
|
2026-02-21 16:46:29 +01:00 |
|
Girish Ramakrishnan
|
36aa641cb9
|
migrate to "export default"
also, set no-use-before-define in linter
|
2026-02-14 15:43:24 +01:00 |
|
Girish Ramakrishnan
|
96dc79cfe6
|
Migrate codebase from CommonJS to ES Modules
- Convert all require()/module.exports to import/export across 260+ files
- Add "type": "module" to package.json to enable ESM by default
- Add migrations/package.json with "type": "commonjs" to keep db-migrate compatible
- Convert eslint.config.js to ESM with sourceType: "module"
- Replace __dirname/__filename with import.meta.dirname/import.meta.filename
- Replace require.main === module with process.argv[1] === import.meta.filename
- Remove 'use strict' directives (implicit in ESM)
- Convert dynamic require() in switch statements to static import lookup maps
(dns.js, domains.js, backupformats.js, backupsites.js, network.js)
- Extract self-referencing exports.CONSTANT patterns into standalone const
declarations (apps.js, services.js, locks.js, users.js, mail.js, etc.)
- Lazify SERVICES object in services.js to avoid circular dependency TDZ issues
- Add clearMailQueue() to mailer.js for ESM-safe queue clearing in tests
- Add _setMockApp() to ldapserver.js for ESM-safe test mocking
- Add _setMockResolve() wrapper to dig.js for ESM-safe DNS mocking in tests
- Convert backupupload.js to use dynamic imports so --check exits before
loading the module graph (which requires BOX_ENV)
- Update check-install to use ESM import for infra_version.js
- Convert scripts/ (hotfix, release, remote_hotfix.js, find-unused-translations)
- All 1315 tests passing
Migration stats (AI-assisted using Cursor with Claude):
- Wall clock time: ~3-4 hours
- Assistant completions: ~80-100
- Estimated token usage: ~1-2M tokens
Co-authored-by: Cursor <cursoragent@cursor.com>
|
2026-02-14 15:11:45 +01:00 |
|
Johannes Zellner
|
347cf4f67d
|
Remove early return leftover from debugging
|
2025-11-24 15:02:33 +01:00 |
|
Johannes Zellner
|
6c0d5cb601
|
Remove yesno node module
|
2025-11-24 13:58:03 +01:00 |
|
Girish Ramakrishnan
|
6ac0cd421a
|
use the @cloudron/superagent module
|
2025-07-10 10:56:05 +02:00 |
|
Girish Ramakrishnan
|
a22fffc8b5
|
release: fix the script
|
2025-06-10 14:32:29 +02:00 |
|
Girish Ramakrishnan
|
9da96b9e92
|
release: fix requires in script
|
2025-05-01 11:29:05 +02:00 |
|
Girish Ramakrishnan
|
df53f827c5
|
release: happy eyeballs workaround
|
2024-12-14 22:00:45 +01:00 |
|
Girish Ramakrishnan
|
b26890f5b3
|
release: print the sourceEnv.url
|
2024-12-14 17:14:41 +01:00 |
|
Girish Ramakrishnan
|
08435fbe26
|
release: more debugs
|
2024-12-09 09:06:38 +01:00 |
|
Girish Ramakrishnan
|
00a643e70a
|
release: add the env.tag to output
|
2024-12-09 09:03:36 +01:00 |
|
Girish Ramakrishnan
|
54e5e0cb7e
|
update commander
https://github.com/tj/commander.js/releases/tag/v12.0.0
|
2024-04-19 17:56:15 +02:00 |
|
Girish Ramakrishnan
|
4cd54f1026
|
release: make changelog case insensitive
|
2023-06-25 19:19:23 +05:30 |
|
Girish Ramakrishnan
|
016172ae6f
|
release: fix path to CHANGES file
|
2023-03-30 10:00:24 +02:00 |
|
Johannes Zellner
|
01b221d815
|
Add the release command
|
2023-03-29 23:09:15 +02:00 |
|