refactor: move http_client from daw-lua-common to daw-lua-net #12

Closed
opened 2026-04-14 12:07:14 +02:00 by michael · 1 comment
Owner

Goal

Move http_client.lua from DAW/daw-lua-common to DAW/daw-lua-net where it belongs.

Problem

http_client.lua is a network utility and should live in daw-lua-net,
not in daw-lua-common. However, several projects already depend on it
at its current path (daw.lua.common.http_client).

Acceptance Criteria

  • http_client.lua added to DAW/daw-lua-net under src/daw/lua/net/
  • Deprecation shim in DAW/daw-lua-common that requires the new path and prints a warning
  • All projects that use daw.lua.common.http_client identified
  • Each affected project migrated to daw.lua.net.http_client (one commit per project)
  • Deprecation shim removed from DAW/daw-lua-common after all projects migrated

Affected Projects (to be identified)

Run in each repo:
grep -r "http_client" src/

Migration Order

  1. DAW/daw-lua-net -- add http_client.lua
  2. DAW/daw-lua-common -- add deprecation shim
  3. Affected projects -- migrate one by one
  4. DAW/daw-lua-common -- remove shim

Technical Notes

Deprecation shim example:
-- daw/lua/common/http_client.lua (deprecated)
io.stderr:write("[WARN] daw.lua.common.http_client is deprecated, use daw.lua.net.http_client\n")
return require("daw.lua.net.http_client")

## Goal Move `http_client.lua` from DAW/daw-lua-common to DAW/daw-lua-net where it belongs. ## Problem `http_client.lua` is a network utility and should live in `daw-lua-net`, not in `daw-lua-common`. However, several projects already depend on it at its current path (`daw.lua.common.http_client`). ## Acceptance Criteria - [ ] `http_client.lua` added to DAW/daw-lua-net under `src/daw/lua/net/` - [ ] Deprecation shim in DAW/daw-lua-common that requires the new path and prints a warning - [ ] All projects that use `daw.lua.common.http_client` identified - [ ] Each affected project migrated to `daw.lua.net.http_client` (one commit per project) - [ ] Deprecation shim removed from DAW/daw-lua-common after all projects migrated ## Affected Projects (to be identified) Run in each repo: grep -r "http_client" src/ ## Migration Order 1. DAW/daw-lua-net -- add http_client.lua 2. DAW/daw-lua-common -- add deprecation shim 3. Affected projects -- migrate one by one 4. DAW/daw-lua-common -- remove shim ## Technical Notes Deprecation shim example: -- daw/lua/common/http_client.lua (deprecated) io.stderr:write("[WARN] daw.lua.common.http_client is deprecated, use daw.lua.net.http_client\n") return require("daw.lua.net.http_client")
Author
Owner

Done -- http_client.lua now lives in DAW/daw-lua-net. README updated to remove the module section.

Done -- http_client.lua now lives in DAW/daw-lua-net. README updated to remove the module section.
michael 2026-07-19 17:56:00 +02:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
DAW/daw-lua-common#12
No description provided.