-
Notifications
You must be signed in to change notification settings - Fork 25
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
feat: move to ESM #29
Conversation
@types/jest * orgast-util-to-string: ^26.0.23 → 27.4.1 * orgast-util-visit-ids: ^26.0.23 → 27.4.1 * uniorg-attach: ^26.0.23 → 27.4.1 * uniorg-extract-keywords: ^26.0.23 → 27.4.1 * uniorg-parse: ^26.0.20 → 27.4.1 * uniorg-rehype: ^26.0.20 → 27.4.1 * uniorg-slug: ^26.0.23 → 27.4.1 * uniorg-stringify: ^26.0.23 → 27.4.1
unified * blog-starter: ^9.2.0 → 10.1.2 * example: ^9.2.0 → 10.1.2 * extract-keywords-example: ^9.2.1 → 10.1.2 * org-braindump: ^9.2.0 → 10.1.2 * uniorg-attach: ^9.2.1 → 10.1.2 * uniorg-extract-keywords: ^9.2.1 → 10.1.2 * uniorg-rehype: ^9.2.0 → 10.1.2 * uniorg-slug: ^9.2.1 → 10.1.2 * uniorg-stringify: ^9.2.1 → 10.1.2
jest * orgast-util-to-string: ^26.6.3 → 27.5.1 * orgast-util-visit-ids: ^26.6.3 → 27.5.1 * uniorg-attach: ^26.6.3 → 27.5.1 * uniorg-extract-keywords: ^26.6.3 → 27.5.1 * uniorg-parse: ^26.6.3 → 27.5.1 * uniorg-rehype: ^26.6.3 → 27.5.1 * uniorg-slug: ^26.6.3 → 27.5.1 * uniorg-stringify: ^26.6.3 → 27.5.1
Alright I give up for now, maybe you can have a look at why this fails @rasendubi ? I'm going insane PS. Sorry for all the notifications! |
😂😂😂 sure man, I'll take a look this week. maybe tonight
|
This reverts commit 6c42331. This is not related to ESM support and doesn't match org-elements API.
ESM does not try to guess file extensions, so have to specify one.
vfile-rename simply doesn't work for some reason.
Codecov Report
@@ Coverage Diff @@
## master #29 +/- ##
==========================================
+ Coverage 95.66% 95.70% +0.04%
==========================================
Files 14 15 +1
Lines 1544 1606 +62
Branches 493 515 +22
==========================================
+ Hits 1477 1537 +60
- Misses 66 68 +2
Partials 1 1
📣 Codecov can now indicate which changes are the most critical in Pull Requests. Learn more |
uniorg v0.5.0 is now ESM-only 🎉 @ThomasFKJorna thank you for doing most of the migration, and congrats on your second PR! |
Fantastic! Did you manage to figure out why the builds were all failing? |
Oh and sorry for leaving the org cite types in, I was working on that separately but mixed those commits in somehow 😅 I would like to add separate support for those if you're okay with that, currently citations such as [cite//b:@Shech2019] aren't picked up by uniorg (unless you add the link types separately of course, but thats a bit of a chore), plus I think providing richer data for citations is useful when writing converters (I'm writing a uniorg-remark one atm). |
well, yeah. there were many issues:
re citation support: I'm absolutely for it! I even started working on it before the war. I don't remember where I stopped, but here are my stashed changes: #33. You can pick them up (use org-element.el as inspiration) and I'll try to help in a week or two |
Updates all the uniorg packages to use and work with the latest versions of the unified ecosystem, which all solely use Ecmascript modules.
Additionally I added some stricter typings to uniorg-rehype.
Everything works, passes all tests, just need to add a tag!