Closed tjenkinson closed 9 months ago
Just realised I still need to update the d.ts file
@tjenkinson thanks for all this great work - I checked out your branch and all tests were passing, but when I merged into main
tests were breaking. Would love to merge this in if we can straighten that out.
@adamgibbons will have a look now
I'm on node v18.18.0, npm 9.8.1 and npm ci && npm t
works fine or me on feee468da713c92603eb4cd0faf03c0d9b7b5df0 🤔
What errors are you seeing?
@tjenkinson would you reopen this PR against master
when you have a chance? 🙏
Thanks for this great library!
We had a bug where we were providing an organiser where the name included a
,
, and the fix was to wrap the name in quotes. Essentially take thequoted-string
option forparam-value
in the specSo the I decided to make the same change to the other
param-value
's so that they don't have the same issue.And then I added some logic to encode new lines to
\n
in a lot more places because otherwise it's possible for user input containing new lines to break thingsAnd as I was going through I spotted a few other things so here's a list of all the tweaks/fixes:
exclusionDates
was missing in the schema so I don't think it could be used before? Now it can be and I changed it to be an array of date/time entriesdate.getTime()
, or a string which is then just passed throughassignUniqueId
was no longer neededoopsCANCELLED
would be allowedgetEvents
which can take header attributes, so it's possible to still have the correct header attributes even when there are no eventsencodeParamValue
which is used to encodeparam-value
's. The spec doesn't appear to say that"
's are allowed in the string, but escaping them with\
does seem to work when I tested in the apple calendar app