Skip to content

Seonbi 0.4.0

Latest
Compare
Choose a tag to compare
@github-actions github-actions released this 08 Sep 09:55
· 1 commit to main since this release
0.4.0
9bc94dd

Released on September 8, 2024.

  • Introduced GitHub action dahlia/seonbi/setup to install Seonbi during GitHub Actions workflow.

  • Since this version, it supports GHC 9.4.* at most.

  • The iconv flag became ignored on Windows, because the flag had never worked on Windows.

  • Previously, ContentType type (and -t/--content-type in CLI and "contentType" field in HTTP API) was a mere case-insensitive string. Now, it is loosely structured so that it can contain parameters. You can treat it as a media type (MIME type).

    For example, text/markdown and text/markdown; variant=Original both use the same parser and formatter under the hood.

    • Text.Seonbi.ContentTypes.ContentType type became an alias of Network.HTTP.Media.MediaType type (was CI Text).
    • The type of Text.Seonbi.ContentTypes.contentTypeFromText function became Text -> Maybe ContentType (was Text -> ContentType).
    • Text.Seonbi.ContentTypes.transformWithContentType function became able to handle media types with parameters, and now it falls back more-specific media types to less-specific media types if there is no exactly matched one.
  • For text/html and application/xhtml+xml formats, some obsolete HTML tags are no more ignored, but now recognized as valid HTML tags. Here are the list of added tags:

    • <center>
    • <font>
    • <nobr>
    • <strike>
    • <xmp>

    Haskell API-wise, the following constructors were added to the Text.Seonbi.Html.Tag.HtmlTag type:

    • Center
    • Font
    • NoBR
    • Strike
    • XMP
  • Deno module became possible to use an already deployed Seonbi API server instead of spawning a local API server. The new Seonbi() constructor now takes { apiUrl: string } besides existing configuration forms.

  • Updated the Standard Korean Language Dictionary data (data/ko-kr-stdict.tsv) to the revision 2024-09.