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

Deno overhaul #70

Merged
merged 7 commits into from
Sep 30, 2024
Merged

Deno overhaul #70

merged 7 commits into from
Sep 30, 2024

Conversation

bleonar5
Copy link
Contributor

No description provided.

github-actions bot and others added 7 commits August 20, 2024 18:13
- Remove fileText property from psychDSFileDeno class
- Remove JSON-LD parsing and expansion from _readFileTree function
- Remove context handling for dataset_description.json
- Simplify file reading process in _readFileTree

This change reverts the earlier modification that added fileText and
moved JSON-LD parsing to the readFileTree stage. It streamlines the
file reading process and removes browser-specific accommodations.
…rom readFileTree

- Remove fileText property and JSON-LD parsing from psychDSFileDeno class
- Simplify _readFileTree function by removing JSON-LD expansion and context handling
- Move JSON-LD expansion to getExpandedSidecar method in context.ts
- Update applyRules.ts to work with the new structure, removing fileText references
- Adjust psychds.ts to handle JSON-LD processing changes and error handling

This refactor simplifies the file reading process, moves JSON-LD handling to a more
appropriate location, and improves overall code organization and maintainability.
- Remove fileText property from psychDSFile interface
- Add expanded property to psychDSFile for storing expanded JSON-LD
- Update Context interface to include validColumns and suggestedColumns
- Add metadataProvenance to Context for tracking metadata sources

These changes align the type definitions with the recent refactoring of
file reading and JSON-LD processing, improving type safety and clarity
throughout the codebase.
- Refactor applyRules.test.ts to use a setupTest helper function
- Update test cases to work with the new file reading and JSON-LD processing flow
- Adjust context.test.ts to handle the new psychDSContext structure
- Update assertions to check for expanded JSON-LD properties
- Remove fileText references and update to use new expanded property

These changes align the tests with the recent refactoring of file reading
and JSON-LD processing, ensuring continued test coverage and validity.
Refactor file reading and JSON-LD processing
…verhaul--components--your-package-name

chore(deno_overhaul): release 1.3.0
@bleonar5 bleonar5 merged commit 0f8c7f3 into main Sep 30, 2024
2 checks passed
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.

1 participant