Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generating EncodedResponse interface by Integration #2226

Merged
merged 60 commits into from
Dec 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
60 commits
Select commit Hold shift + click to select a range
3e19dc9
Deprecating splitResponse, always do it.
RobinTail Dec 1, 2024
f281ff0
rm redundant condition.
RobinTail Dec 1, 2024
492451f
Splitting positive response further to the status codes.
RobinTail Dec 1, 2024
51d0dba
Removing the prop from readme.
RobinTail Dec 1, 2024
7bb9263
Changelog: 21.3.0.
RobinTail Dec 1, 2024
d19f61c
Merge branch 'always-split-response' into emphasise-status-code
RobinTail Dec 1, 2024
d41869c
Ref: organizing ids, shortening pushes.
RobinTail Dec 1, 2024
e93b65c
Ref: combining makeCleanId() calls.
RobinTail Dec 1, 2024
15d5032
Merge branch 'always-split-response' into emphasise-status-code
RobinTail Dec 1, 2024
2458fe3
Fix making dict once.
RobinTail Dec 1, 2024
789757c
Making right order.
RobinTail Dec 1, 2024
7bd61aa
Ref: less repeats.
RobinTail Dec 1, 2024
de4aea2
Ref: moving ctx creation outta walker.
RobinTail Dec 1, 2024
d688ac2
Merge branch 'always-split-response' into emphasise-status-code
RobinTail Dec 1, 2024
32dc29a
Minor: naming.
RobinTail Dec 1, 2024
e66a28e
mv: ids making to top.
RobinTail Dec 1, 2024
94d1369
Merge branch 'always-split-response' into emphasise-status-code
RobinTail Dec 1, 2024
02b911b
Merge branch 'master' into always-split-response
RobinTail Dec 2, 2024
8f841e8
Merge branch 'always-split-response' into emphasise-status-code
RobinTail Dec 2, 2024
339e94a
Merge branch 'master' into emphasise-status-code
RobinTail Dec 2, 2024
5c9098b
Merge branch 'master' into emphasise-status-code
RobinTail Dec 2, 2024
831bd86
Merge branch 'master' into emphasise-status-code
RobinTail Dec 2, 2024
6ec5d4e
Reusing makeKeyOf().
RobinTail Dec 2, 2024
5968fee
Introducing SomeOf<> helper type for readability.
RobinTail Dec 2, 2024
6a21cfc
Handling both positive and negative response.
RobinTail Dec 2, 2024
4278e03
Ref: no extra method.
RobinTail Dec 2, 2024
00020ac
Minor: naming.
RobinTail Dec 2, 2024
bf82247
Ref: enumerating variants from 1.
RobinTail Dec 2, 2024
911e185
Merge branch 'master' into emphasise-status-code
RobinTail Dec 2, 2024
507da7d
Merge branch 'master' into emphasise-status-code
RobinTail Dec 3, 2024
415e47d
todo.
RobinTail Dec 3, 2024
eca992a
Merge branch 'master' into emphasise-status-code
RobinTail Dec 3, 2024
a68397f
Merge branch 'master' into emphasise-status-code
RobinTail Dec 3, 2024
7d4e601
Accept string in makePublicInterface.
RobinTail Dec 3, 2024
a50bafa
mv: makeInterface, no only public.
RobinTail Dec 3, 2024
330ea2e
Merge branch 'master' into emphasise-status-code
RobinTail Dec 3, 2024
9b9fdf9
Introducing encoded response types.
RobinTail Dec 3, 2024
c93f6af
FEAT: exposing EncodedResponse interface.
RobinTail Dec 3, 2024
5d86398
Ref: extracting const for readability.
RobinTail Dec 3, 2024
0ce05c0
Merge branch 'master' into emphasise-status-code
RobinTail Dec 3, 2024
1728b98
Merge branch 'master' into emphasise-status-code
RobinTail Dec 4, 2024
a8e25f7
Merge branch 'master' into emphasise-status-code
RobinTail Dec 8, 2024
4acd45a
Merge branch 'master' into emphasise-status-code
RobinTail Dec 10, 2024
57e738b
Updating the client after making SSE.
RobinTail Dec 10, 2024
ccad67c
Merge branch 'master' into emphasise-status-code
RobinTail Dec 11, 2024
500fb41
REF: holding type nodes in registry.
RobinTail Dec 11, 2024
19a7bf5
REF: reducing number of entities by placing inline expressions into p…
RobinTail Dec 11, 2024
6ba4716
Ref: extracting makeSomeOfHelper().
RobinTail Dec 11, 2024
547888c
Ref: extracting Integration::makeSomeOf() helper.
RobinTail Dec 11, 2024
e452602
Minor: naming.
RobinTail Dec 11, 2024
6dfc622
rm redundant capacitor.
RobinTail Dec 11, 2024
70d9c7d
Merge branch 'master' into emphasise-status-code
RobinTail Dec 11, 2024
92d7724
Merge branch 'master' into emphasise-status-code
RobinTail Dec 12, 2024
396a56b
REF: using another reducer (chain) for collecting props for response …
RobinTail Dec 12, 2024
e59de4a
Minor: entitle() call arguments.
RobinTail Dec 12, 2024
bb116ac
FIX: ensure running performance concerns on integration (possible esl…
RobinTail Dec 12, 2024
9e72bc4
Changelog: 21.7.0.
RobinTail Dec 12, 2024
782a45b
Fix: no export for SomeOf helper type.
RobinTail Dec 12, 2024
ad75f36
Merge branch 'master' into emphasise-status-code
RobinTail Dec 14, 2024
e4a8d28
21.7.0-beta.1
RobinTail Dec 14, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,18 @@

## Version 21

### v21.7.0

- Feature: introducing `EncodedResponse` public interface in the code generated by `Integration`:
- The new entity should enable making custom clients having response type awereness based on the status code;
- The difference between `Response` and `EndcodedResponse` is the second hierarchical.

```ts
import { EncodedResponse } from "./generated.ts";

type UsageExample = EncodedResponse["get /v1/user/retrieve"][200];
```

### v21.6.1

- `node-mocks-http` version is `^1.16.2`;
Expand Down
3 changes: 2 additions & 1 deletion eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ export default tsPlugin.config(
rules: {
"no-restricted-syntax": [
"warn",
...peformanceConcerns,
{
selector: "Identifier[name='createConditionalExpression']",
message: "use makeTernary() helper",
Expand All @@ -92,7 +93,7 @@ export default tsPlugin.config(
},
{
selector: "Identifier[name='createInterfaceDeclaration']",
message: "use makePublicInterface() helper",
message: "use makeInterface() helper",
},
{
selector: "Identifier[name='createClassDeclaration']",
Expand Down
Loading
Loading