Skip to content

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
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
Contributor

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

@erunion erunion requested a review from kanadgupta September 12, 2023 01:32
Base automatically changed from feat/drop-node16 to main September 12, 2023 01:34
Copy link
Contributor

@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 🫡

Comment on lines -5 to -6
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
Copy link
Contributor

Choose a reason for hiding this comment

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

:rip-cowboy:

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

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

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
@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.

3 participants