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

Version 2.0 Discussion #214

Open
yagni opened this issue Sep 27, 2022 · 3 comments
Open

Version 2.0 Discussion #214

yagni opened this issue Sep 27, 2022 · 3 comments
Milestone

Comments

@yagni
Copy link
Collaborator

yagni commented Sep 27, 2022

There are a couple of issues in the backlog that require a major version bump and could be beneficial, so I thought I'd get that process started. I created a milestone and added the issues there.

This issue is for discussion around 2.0 itself. Please discuss issue-specific details in the issues themselves.

@chafey @swederik @dannyrb @galelis (and anyone else) want to weigh in on what should/shouldn't be included in 2.0?

@yagni yagni added this to the 2.0 milestone Sep 27, 2022
@Ragnar-Oock
Copy link

I'm biased but maybe making the types more explicit (either by rewriting the lib in TS or by updating the type declaration like I proposed in #258 last year) would help when using the lib for advanced usage (i.e. not just throwing the file into cornerstone (legacy or 3d) for it to display the images on screen). The biggest pain point is the Element interface that has every possible element kinds merge into a single interface instead of the 4 different kinds that are actually returned by the parser (sequence elements, encapsulated PixelData element, FileMetaInformation element and the "basic" elements).
For an actual example use case I had to create a wrapper around dicom-parser to edit DICOM files (for anonymization mostly).

@sedghi
Copy link
Member

sedghi commented Nov 14, 2024

The most important feature in Version 2.0 should be ES Modules, in my opinion.

We have to patch the modern bundlers because of dicomParser right now

import { viteCommonjs } from "@originjs/vite-plugin-commonjs"


export default defineConfig({
  plugins: [viteCommonjs()],
  optimizeDeps: {
    include: ["dicom-parser"],
  },
})

@Ragnar-Oock
Copy link

Ragnar-Oock commented Nov 14, 2024

I don't remember having encountered bundling issues when using dicon-parser, but I never had it on its own so it's possible that I fixed it alongside cornerstone legacy when I ussed it.
And I do agree the migration to ESM is more important than typing (at least assuming it doesn't degrade the existing types)

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

No branches or pull requests

3 participants