Skip to content

Conversation

@bourgeoa
Copy link
Member

hybrid conversion step 1 with hybrid tests

bourgeoa and others added 11 commits November 13, 2025 17:37
- Convert Windows CRLF line endings to Unix LF in bin/solid script
- Add .gitattributes to enforce proper line endings for executable files
- Fixes Docker CI error: 'node\r': No such file or directory
- Create ESM versions (.mjs) for 7 main lib files:
  - capability-discovery.mjs
  - ldp-container.mjs
  - ldp.mjs (large 632-line file)
  - payment-pointer-discovery.mjs
  - rdf-notification-template.mjs
  - resource-mapper.mjs (227 lines)
  - server-config.mjs
- Convert lib/api/ directory to ESM:
  - index.mjs
  - accounts/user-accounts.mjs
  - authn/index.mjs
  - authn/force-user.mjs
- All files maintain dual CommonJS/ESM compatibility
- Proper import/export conversions with createRequire for CommonJS deps
- No errors detected in new ESM modules
- Total: 18 .mjs files now available in lib/ directory
lib/api/ conversion completed:
- authn/webid-tls.mjs (70 lines - TLS authentication)
- authn/webid-oidc.mjs (203 lines - OIDC authentication)

lib/handlers/ conversion completed (7 new .mjs files):
- restrict-to-top-domain.mjs (simple middleware)
- options.mjs (HTTP OPTIONS handler)
- index.mjs (directory index handler)
- auth-proxy.mjs (authentication proxy)
- cors-proxy.mjs (96 lines - CORS proxy with IP filtering)
- notify.mjs (149 lines - notification system)
- error-pages.mjs (213 lines - error handling & databrowser)

Progress:
- lib/ main files:  9/9 converted
- lib/api/:  6/6 converted
- lib/handlers/:  14/14 converted
- All new modules error-free and maintain dual compatibility
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants