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

Split giant cookie.ts into multiple files. #296

Merged
merged 4 commits into from
Sep 1, 2023
Merged

Split giant cookie.ts into multiple files. #296

merged 4 commits into from
Sep 1, 2023

Conversation

wjhsf
Copy link
Contributor

@wjhsf wjhsf commented Aug 23, 2023

  • Built on Changes to support full eslint rule configurations #289, so wait for that to merge or use this diff.
  • Added a new eslint warning for files over 500 lines.
  • cookie.ts and cookieJar.ts (and some test files) are still over that limit, so there's still some refactoring work to do. This PR is focused on just separating things that could be cleanly separated. (For example, Cookie.parse and Cookie.fromJSON could be separated, but that would introduce files with circular dependencies, so I left them for now.)
  • The exports in the new index.ts match those from the old cookie.ts.

colincasey
colincasey previously approved these changes Sep 1, 2023
@colincasey colincasey dismissed their stale review September 1, 2023 19:15

The merge-base changed after approval.

@colincasey colincasey self-requested a review September 1, 2023 19:15
colincasey
colincasey previously approved these changes Sep 1, 2023
@wjhsf wjhsf dismissed colincasey’s stale review September 1, 2023 19:16

The merge-base changed after approval.

colincasey
colincasey previously approved these changes Sep 1, 2023
@wjhsf wjhsf closed this Sep 1, 2023
@wjhsf wjhsf reopened this Sep 1, 2023
@wjhsf wjhsf dismissed colincasey’s stale review September 1, 2023 19:17

The merge-base changed after approval.

@wjhsf wjhsf merged commit 3c65660 into v5 Sep 1, 2023
9 checks passed
@wjhsf wjhsf deleted the wjh/small-files branch September 1, 2023 19:20
colincasey added a commit that referenced this pull request Feb 23, 2024
When #296 was merged, the list of files to include in `package.json` was not updated. This PR fixes that.

The `.npmignore` file is also removed because I find it causes some unexpected behaviors like ignoring the contents of `.gitignore`. It's a bit of extra work to maintain the allow listed `files` but it's generally safer.
colincasey added a commit that referenced this pull request Feb 29, 2024
When #296 was merged, the list of files to include in `package.json` was not updated. This PR fixes that.

The `.npmignore` file is also removed because I find it causes some unexpected behaviors like ignoring the contents of `.gitignore`. It's a bit of extra work to maintain the allow listed `files` but it's generally safer.
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.

None yet

2 participants