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

chore: remove @astrojs/parser #2845

Merged
merged 6 commits into from
Mar 21, 2022
Merged

chore: remove @astrojs/parser #2845

merged 6 commits into from
Mar 21, 2022

Conversation

JuanM04
Copy link
Contributor

@JuanM04 JuanM04 commented Mar 20, 2022

Changes

Removed the deprecated @astrojs/parser. Also, @astrojs/parser should be tagged as "deprecated" in NPM.

Testing

Docs

@changeset-bot
Copy link

changeset-bot bot commented Mar 20, 2022

⚠️ No Changeset found

Latest commit: 3c07e80

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@github-actions github-actions bot added the pkg: astro Related to the core `astro` package (scope) label Mar 20, 2022
@FredKSchott
Copy link
Member

I'm not 100% sure we're ready to do this yet, since our prettier extension is still using the old parser. I'll let @natemoo-re answer tho

@natemoo-re
Copy link
Member

I think we're ready to deprecate and remove it. We won't be creating any new releases of this package and the Prettier plugin is almost ready to be moved.

Copy link
Member

@natemoo-re natemoo-re left a comment

Choose a reason for hiding this comment

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

Looks good other than some package.json changes that we don't need in this PR!

Comment on lines 66 to 68
"@astrojs/markdown-remark": "workspace:^0.7.0-next.0",
"@astrojs/prism": "workspace:^0.4.0",
"@astrojs/webapi": "workspace:^0.11.0",
Copy link
Member

Choose a reason for hiding this comment

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

These workspace:* specifiers seemed to have snuck in here...

Copy link
Contributor Author

@JuanM04 JuanM04 Mar 21, 2022

Choose a reason for hiding this comment

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

I don't know if this was expected, but when I did pnpm install, this happened inside the lockfile:

- '@astrojs/markdown-remark': link:../markdown/remark
- '@astrojs/prism': link:../astro-prism
- '@astrojs/webapi': link:../webapi
+ '@astrojs/markdown-remark': 0.7.0-next.0
+ '@astrojs/prism': 0.4.0
+ '@astrojs/webapi': 0.11.0

That's why I added them

Copy link
Member

Choose a reason for hiding this comment

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

Hmm, I wonder if you did the install from packages/astro rather than the root? Our .npmrc file has the following, which should prevent this.

# Important! Never install `astro` even when new version is in registry
prefer-workspace-packages=true
link-workspace-packages=true
save-workspace-protocol=false # This prevents the examples to have the `workspace:` prefix

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hmm, I wonder if you did the install from packages/astro rather than the root?

That was the problem. I pushed a fix

Copy link
Member

@natemoo-re natemoo-re left a comment

Choose a reason for hiding this comment

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

Approved! Thanks for cleaning this up ☺️

@natemoo-re natemoo-re merged commit 41110eb into main Mar 21, 2022
@natemoo-re natemoo-re deleted the chore/remove-parser branch March 21, 2022 17:30
SiriousHunter pushed a commit to SiriousHunter/astro that referenced this pull request Feb 3, 2023
* Removed parser from astro

* Removed parser files

* Updated changeset config

* Removed from license
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pkg: astro Related to the core `astro` package (scope)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants