Skip to content

chore: removed deprecated config.package type - #11462

Merged
dummdidumm merged 3 commits into
sveltejs:mainfrom
GauBen:patch-6
Jan 4, 2024
Merged

dummdidumm merged 3 commits into
sveltejs:mainfrom
GauBen:patch-6

Conversation

@GauBen

@GauBen GauBen commented Dec 24, 2023 •

Copy link
Copy Markdown
Contributor

Please don't delete this checklist! Before submitting the PR, please make sure you do the following:

Support for config.package was removed in #8922 (10 month ago) but the type declaration survived the svelte-kit v2 major version. I guess it should be removed now, as I tried using it (encouraged by the type declaration) and failed with this message

> config.package is no longer supported. See https://github.com/sveltejs/kit/discussions/8825 for more information.
    at load_config (file:///@sveltejs/package/src/config.js:21:9)
    at async file:///@sveltejs/package/src/cli.js:29:19

It may be time to remove this message too, it can be found here:

https://github.com/sveltejs/kit/blame/main/packages/package/src/config.js#L20-L24

Tests

  • Run the tests with pnpm test and lint the project with pnpm lint and pnpm check

Changesets

  • If your PR makes a change that should be noted in one or more packages' changelogs, generate a changeset by running pnpm changeset and following the prompts. Changesets that add features should be minor and those that fix bugs should be patch. Please prefix changeset messages with feat:, fix:, or chore:.

@changeset-bot

changeset-bot Bot commented Dec 24, 2023 •

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: e142eb7

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@sveltejs/kit Patch

Not sure what this means? Click here to learn what changesets are.

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

@dummdidumm dummdidumm left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thank you!

@dummdidumm
dummdidumm merged commit 0143819 into sveltejs:main Jan 4, 2024
@github-actions github-actions Bot mentioned this pull request Jan 4, 2024
@GauBen

GauBen commented Jan 4, 2024

Copy link
Copy Markdown
Contributor Author

You're welcome!

Should we remove these lines too?

if (config.package) {
throw new Error(
'config.package is no longer supported. See https://github.com/sveltejs/kit/discussions/8825 for more information.'
);
}

@dummdidumm

Copy link
Copy Markdown
Member

No, we should do this in @sveltejs/package version 3 (so that people upgrading from 1 to 2 get a good error message)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants