469697f636
fix: update package name and installation instructions in publish workflow
Lint / lint (pull_request) Successful in 23s
2026-03-26 20:51:50 +01:00
2257e2141e
Merge pull request 'feat/add-config-file' ( #60 ) from feat/add-config-file into main
...
Reviewed-on: #60
2026-03-26 18:09:18 +00:00
0f64b51b63
Merge remote-tracking branch 'origin/main'
...
Lint / lint (pull_request) Successful in 20s
# Conflicts:
# main.ts
2026-03-26 19:02:16 +01:00
9c385191e2
feat: add configuration file strategy
2026-03-26 18:52:34 +01:00
d2f9eaa933
chore: bump to version v1.3.5
2026-03-26 16:08:21 +00:00
a600a60678
Merge pull request 'chore: update npm registry configuration in publish workflow' ( #59 ) from chore/change-registry-to-npm into main
...
Publish / publish (push) Failing after 5m27s
Reviewed-on: #59
v1.3.5
2026-03-26 16:07:47 +00:00
a42063c1d9
chore: update npm registry configuration in publish workflow
Lint / lint (pull_request) Successful in 14s
2026-03-26 17:05:10 +01:00
7f6feda81d
chore: bump to version v1.3.4
2026-03-26 15:55:38 +00:00
12b2dd6b51
Merge pull request 'chore: update npm registry configuration in Bun settings' ( #58 ) from chore/change-registry-to-npm into main
...
Publish / publish (push) Has been cancelled
Reviewed-on: #58
v1.3.4
2026-03-26 15:55:08 +00:00
84486e816a
chore: update npm registry configuration in Bun settings
Lint / lint (pull_request) Successful in 14s
2026-03-26 16:54:33 +01:00
942cf7f092
chore: bump to version v1.3.3
2026-03-26 15:52:35 +00:00
e0fb12a6c6
Merge pull request 'chore: add npm registry configuration to Bun settings' ( #57 ) from chore/change-registry-to-npm into main
...
Publish / publish (push) Failing after 27s
Reviewed-on: #57
v1.3.3
2026-03-26 15:51:57 +00:00
2402b40059
chore: add npm registry configuration to Bun settings
Lint / lint (pull_request) Successful in 14s
2026-03-26 16:48:15 +01:00
04962e32f5
chore: bump to version v1.3.2
2026-03-26 15:36:08 +00:00
144629bed6
chore: bump to version v1.3.2
2026-03-26 15:34:44 +00:00
0c58a63d01
chore: bump to version v1.3.2
Publish / publish (push) Failing after 5m31s
v1.3.2
2026-03-26 15:31:47 +00:00
74ac1c26a1
Merge pull request 'chore: update registry configuration from Gitea to npm' ( #56 ) from chore/change-registry-to-npm into main
...
Reviewed-on: #56
2026-03-26 15:30:50 +00:00
db70f47bb7
chore: update registry configuration from Gitea to npm
Lint / lint (pull_request) Successful in 18s
2026-03-26 16:29:34 +01:00
91e608415f
chore: bump to version v1.3.1
Publish / publish (push) Has been cancelled
2026-03-26 12:23:55 +00:00
058abf59c4
Merge pull request 'fix: assert repository call with specific parameters in observable completion' ( #55 ) from fix/spec-without-expect into main
...
Reviewed-on: #55
Reviewed-by: blas <me@blassanto.me >
2026-03-26 12:22:55 +00:00
1d52da3805
test: assert repository call with specific parameters in observable completion
Lint / lint (pull_request) Successful in 14s
2026-03-26 13:16:41 +01:00
32cb3d476f
Merge pull request 'feat: enhance logging and linting functionality with detailed reports' ( #54 ) from feat/move-logs into main
...
Publish / publish (push) Successful in 2m5s
Reviewed-on: #54
Reviewed-by: blas <me@blassanto.me >
v1.3.1
2026-03-26 12:06:46 +00:00
79ea7dfc7e
feat: enhance logging and linting functionality with detailed reports
Lint / lint (pull_request) Successful in 16s
2026-03-26 13:03:10 +01:00
b54a94c6d3
chore: bump to version v1.3.0
2026-03-26 10:59:19 +00:00
77e3cbc0e9
Merge pull request 'chore: fix publish workflow' ( #52 ) from fix/fix-publish into main
...
Publish / publish (push) Successful in 2m23s
Reviewed-on: #52
v1.3.0
2026-03-26 10:58:15 +00:00
16d4c8e0bb
chore: fix publish workflow
Lint / lint (pull_request) Successful in 15s
2026-03-26 11:57:43 +01:00
e28443ce45
chore: bump to version v1.2.0
2026-03-26 10:51:33 +00:00
5707abf6bb
Merge pull request 'feat: add specs generator & fix body params' ( #49 ) from feat/add-specs into main
...
Publish / publish (push) Failing after 30s
Reviewed-on: #49
Reviewed-by: blas <me@blassanto.me >
v1.2.0
2026-03-26 10:33:07 +00:00
didavila
d47afb6ff1
fix: body param and 2xx response codes in repository generation
...
Lint / lint (pull_request) Successful in 31s
Bug 1 - Body as positional argument (api.repository.impl.mustache):
MRepository HTTP methods accept a single RequestOptions object as second
argument. The template was incorrectly passing body as a separate positional
argument (e.g. this.post('/url', body)), causing:
'Type X has no properties in common with type RequestOptions'
Fix: merge body into the options object using ES6 shorthand { body }, and
introduce hasOptions / hasBothParamsAndBody flags to build a single unified
options literal covering all scenarios:
- no options → this.post('/url')
- params only → this.get('/url', { params: { search } })
- body only → this.post('/url', { body })
- params + body → this.post('/url', { params: { search }, body })
Bug 2 - Only 200 responses read (clean-arch.generator.ts):
The generator was hardcoded to read op.responses['200'], silently ignoring
201 Created, 202 Accepted, etc. POST endpoints returning 201 were generated
as Observable<void> instead of their actual return type.
Fix: resolve the first available success code from [200, 201, 202, 203].
New fields added to TagOperation type:
- uppercaseHttpMethod: string
- hasOptions: boolean
- hasBothParamsAndBody: boolean
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com >
2026-03-26 11:17:37 +01:00
didavila
463626da0c
feat: add .spec.ts generation for models, mappers, repositories and use-cases
...
Add 4 new Mustache templates for generating unit test specs:
- model-entity.spec.mustache: tests instantiation, property setting, mock builder
- mapper.spec.mustache: tests per-property DTO→Entity mapping, instanceof, all fields
- api.repository.impl.spec.mustache: tests HTTP method, response mapping, error propagation
- api.use-cases.impl.spec.mustache: tests repository delegation, observable forwarding
Generator changes:
- Add uppercaseHttpMethod to TagOperation for spec HTTP assertions
- Add testValue to TagOperationParam for auto-generated test arguments
- Add resolveTestParamValue utility for primitive/complex type test literals
- Add specs counter to GeneratedCount and GenerationReport
- Wire 4 new renderTemplate calls in schema and tag loops
- Update report generator to count .spec.ts files
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com >
2026-03-26 10:52:58 +01:00
05a58c4254
chore: bump to version v1.1.0
2026-03-25 10:52:48 +00:00
d4d6148b25
Merge pull request 'feat: add mocks-generator' ( #47 ) from feat/mocks-generator into main
...
Publish / publish (push) Failing after 57s
Reviewed-on: #47
Reviewed-by: blas <me@blassanto.me >
v1.1.0
2026-03-25 10:49:34 +00:00
didavila
cc650f9635
Merge branch 'main' into feat/mocks-generator
Lint / lint (pull_request) Successful in 15s
2026-03-25 11:15:53 +01:00
didavila
99658800ed
feat: ensure required fields are marked with '!' in generated model entities
2026-03-25 11:15:37 +01:00
0c162e30b8
Merge pull request 'chore: migrate from node to bun' ( #46 ) from test/bun into main
...
Reviewed-on: #46
Reviewed-by: didavila <diego.davilafreitas@gmail.com >
2026-03-25 10:14:22 +00:00
didavila
9c14a070c6
feat: add linting option and implement linting for generated TypeScript files
2026-03-25 11:10:08 +01:00
94263d0329
chore: fix bun action
Lint / lint (pull_request) Successful in 4m16s
2026-03-25 11:04:48 +01:00
06c4356f16
chore: fix bun action
Lint / lint (pull_request) Successful in 15s
2026-03-25 11:01:50 +01:00
didavila
917cc3b9cf
feat: add mock generation for DTOs, models, and repositories with corresponding templates
2026-03-25 11:01:21 +01:00
c6fbc4c47c
chore: fix bun action
Lint / lint (pull_request) Failing after 16s
2026-03-25 10:57:17 +01:00
1b342b871b
chore: fix bun action
Lint / lint (pull_request) Failing after 5s
2026-03-25 10:55:01 +01:00
a01b5a2d82
chore: fix bun install
Lint / lint (pull_request) Failing after 14s
2026-03-25 10:53:45 +01:00
16fe772bd2
chore: migrate from node to bun
Lint / lint (pull_request) Failing after 7s
2026-03-25 10:52:30 +01:00
2c1163809a
chore: migrate from node to bun
Lint / lint (pull_request) Failing after 19s
2026-03-25 10:51:14 +01:00
e4e88d184e
chore: migrate from node to bun
Lint / lint (pull_request) Failing after 5s
2026-03-25 10:46:24 +01:00
f51eaf7c78
chore: migrate from node to bun
Lint / lint (pull_request) Failing after 6s
2026-03-25 10:43:19 +01:00
e1ef10f317
chore: migrate from node to bun
Lint / lint (pull_request) Failing after 6s
2026-03-25 10:39:36 +01:00
77b77a17f4
chore: migrate from node to bun
Lint / lint (pull_request) Failing after 5s
2026-03-25 10:38:27 +01:00
e69826b824
Merge branch 'main' into test/bun
Lint / lint (pull_request) Failing after 2m51s
2026-03-25 10:25:32 +01:00
21b0333788
chore: migrate from node to bun
2026-03-25 10:25:23 +01:00