Skip to content

Add cors and morgan services, modernize dependencies#49

Merged
tiennou merged 1 commit into
masterfrom
modernize-deps-add-services
Apr 11, 2026
Merged

Add cors and morgan services, modernize dependencies#49
tiennou merged 1 commit into
masterfrom
modernize-deps-add-services

Conversation

@AlinaNova21

Copy link
Copy Markdown
Member

Summary

  • CORS service — integrates screepsmod-cors as a built-in service. Disabled by default; enabled by adding cors.origins to config.yml. Drops the need for a separate mod.
  • Morgan service — adds optional HTTP request logging. Format configured via morgan: dev (or any morgan format string) in config.yml. Hot-reloadable, noop when absent.
  • Dependency modernization — removed axios (replaced with native fetch), lodash, and ramda (replaced with native JS). Updated body-parser to v2.
  • Package cleanup — updated description, license year, FUNDING.yml, removed stale 2npm script, sorted dependencies.
  • README — documents all previously undocumented config options: mapFile, market, features, morgan, cors.

Config

serverConfig:
  morgan: dev  # optional HTTP logging
  cors:
    origins:
      - https://example.com

- Integrate screepsmod-cors as a built-in service (disabled by default,
  requires cors.origins in config)
- Add optional morgan HTTP logging service (format via config, hot-reloadable)
- Replace axios with native fetch; remove lodash and ramda
- Update body-parser to v2.2.2
- Fix object-shorthand lint warnings
- Update LICENSE to Alina Shumann 2026, FUNDING.yml to AlinaNova21
- Document all config options in README
- Clean up package.json (description, remove 2npm script, sort deps)
@tiennou tiennou merged commit ba063ab into master Apr 11, 2026
1 check passed
@tiennou tiennou deleted the modernize-deps-add-services branch April 11, 2026 17:44
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