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

feat: deprecating the dynamic api entrypoint #723

Merged
merged 8 commits into from
Sep 12, 2023
Merged

Conversation

erunion
Copy link
Member

@erunion erunion commented Sep 12, 2023

🧰 Changes

The dynamic, Proxy-based, variant of api has been really holding us back so this is the formal deprecation and removal of all code relating to it. It was a neat experimental hack that I am very proud of but it's time to move on to only supporting codegen here as all that work, and the TS type backings it offers, are far superior.

Rest in peace little buddy.

fixes RM-7986

@erunion erunion added the enhancement New feature or request label Sep 12, 2023
@erunion erunion marked this pull request as ready for review September 12, 2023 01:30
@@ -137,72 +128,6 @@ describe('httpsnippet-client-api', () => {

expect(`${code}\n`).toStrictEqual(expected);
});

it('should generate a functional snippet', async () => {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These tests used a dist of the dynamic api entrypoint. I don't really have any interest in trying to get this extremely gross (my fault) vm sandboxing work working on that so I'm deleting all this. In the future it would probably be worth fleshing out a full integration suite for all these test cases but that's all really pertinent to api and not code snippet generation.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

would be cool to have some sort of mocking framework/library for easily testing these plugins

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah that'd be nice

Base automatically changed from feat/drop-node16 to main September 12, 2023 01:34
Copy link
Member

@kanadgupta kanadgupta left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you'll be missed, proxy variant 🫡

docs/faq.md Outdated Show resolved Hide resolved
Comment on lines -5 to -6
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:rip-cowboy:

packages/httpsnippet-client-api/test/tsconfig.json Outdated Show resolved Hide resolved
@@ -137,72 +128,6 @@ describe('httpsnippet-client-api', () => {

expect(`${code}\n`).toStrictEqual(expected);
});

it('should generate a functional snippet', async () => {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

would be cool to have some sort of mocking framework/library for easily testing these plugins

erunion and others added 2 commits September 12, 2023 10:22
Co-authored-by: Kanad Gupta <8854718+kanadgupta@users.noreply.github.com>
@erunion erunion merged commit 437f6e4 into main Sep 12, 2023
5 checks passed
@erunion erunion deleted the feat/drop-dynamic-api branch September 12, 2023 19:51
@erunion erunion added this to the v7 milestone Oct 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants