Skip to content

ref: remove nested namespaces, clean up aliases, and update package name#80

Merged
BizWiz3 merged 1 commit into
mainfrom
ref/cleanup
Jun 3, 2026
Merged

ref: remove nested namespaces, clean up aliases, and update package name#80
BizWiz3 merged 1 commit into
mainfrom
ref/cleanup

Conversation

@Leoj030

@Leoj030 Leoj030 commented Jun 3, 2026

Copy link
Copy Markdown
Collaborator
  • Rename the package in pesde.toml from hypernova_lab/nova_core to novalab/nova_core.
  • Configure .luaurc and tests/web/.luaurc path aliases:
    • Add nova-types alias pointing to ./src/types.
    • Add utils alias pointing to ./src/utils.
  • Remove nested namespaces from the main Nova module (e.g., Nova.response, Nova.chain, Nova exception) in src/index.luau to promote direct imports.
  • Export additional types from src/index.luau (Middleware, Handler, ResponsePayload, Response, BodyField, StringField, ValidatorSchema).
  • Standardize source code imports in src/core and src/utils by replacing @adpt/ and @utils/ aliases with relative path imports (e.g., ../../adapter/..., ../../utils/...).
  • Update unit tests, application routes, guards, interceptors, and validators to utilize the new @nova-types and @utils/Response direct imports instead of accessing them via the Nova module.

- Rename the package in `pesde.toml` from `hypernova_lab/nova_core` to `novalab/nova_core`.
- Configure `.luaurc` and `tests/web/.luaurc` path aliases:
  - Add `nova-types` alias pointing to `./src/types`.
  - Add `utils` alias pointing to `./src/utils`.
- Remove nested namespaces from the main `Nova` module (e.g., `Nova.response`, `Nova.chain`, `Nova exception`) in `src/index.luau` to promote direct imports.
- Export additional types from `src/index.luau` (`Middleware`, `Handler`, `ResponsePayload`, `Response`, `BodyField`, `StringField`, `ValidatorSchema`).
- Standardize source code imports in `src/core` and `src/utils` by replacing `@adpt/` and `@utils/` aliases with relative path imports (e.g., `../../adapter/...`, `../../utils/...`).
- Update unit tests, application routes, guards, interceptors, and validators to utilize the new `@nova-types` and `@utils/Response` direct imports instead of accessing them via the `Nova` module.
@Leoj030 Leoj030 requested a review from BizWiz3 June 3, 2026 12:27
@Leoj030 Leoj030 self-assigned this Jun 3, 2026
@BizWiz3 BizWiz3 merged commit d742195 into main Jun 3, 2026
1 check passed
@Leoj030 Leoj030 deleted the ref/cleanup branch June 3, 2026 12:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants