Commit Graph

85 Commits

Author SHA1 Message Date
Nick Groenen
6d0e693ed7
Upgrade to pulldown-cmark 0.11 2024-08-04 21:11:06 +02:00
Davis Davalos-DeLosh
564bee1d92 Optionally preserve modified time of exported files
Add a new argument --preserve-mtime to keep the original modified time
attribute of notes being exported, instead of setting them to the
current time.
2024-08-04 14:00:49 +02:00
Nick Groenen
c32d70ac06
Use std::sync::LazyLock instead of lazy_static crate
LazyLock was stabilized in Rust 1.80.0, allowing us to drop this
external dependency now.
2024-08-04 11:52:20 +02:00
Nick Groenen
c8cf91c0c8
Make clippy more strict 2024-08-03 11:38:20 +02:00
renovate[bot]
2a1c9aefac Update Rust crate rstest to 0.21.0 2024-06-23 17:29:20 +00:00
Nick Groenen
3ba8d7ad21
Upgrade dependencies
name                  old req compatible latest new req
====                  ======= ========== ====== =======
eyre                  0.6.9   0.6.12     0.6.12 0.6.12
ignore                0.4.21  0.4.22     0.4.22 0.4.22
lazy_static           1.4.0   1.5.0      1.5.0  1.5.0
regex                 1.10.2  1.10.5     1.10.5 1.10.5
snafu                 0.8.2   0.8.3      0.8.3  0.8.3
unicode-normalization 0.1.22  0.1.23     0.1.23 0.1.23
tempfile              3.8.1   3.10.1     3.10.1 3.10.1
2024-06-23 15:25:35 +02:00
dependabot[bot]
bf2f0311c3 Bump snafu from 0.7.5 to 0.8.2
Bumps [snafu](https://github.com/shepmaster/snafu) from 0.7.5 to 0.8.2.
- [Changelog](https://github.com/shepmaster/snafu/blob/main/CHANGELOG.md)
- [Commits](https://github.com/shepmaster/snafu/compare/0.7.5...0.8.2)

---
updated-dependencies:
- dependency-name: snafu
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-06-23 15:15:01 +02:00
dependabot[bot]
e4d30da112 Bump rayon from 1.8.0 to 1.10.0
Bumps [rayon](https://github.com/rayon-rs/rayon) from 1.8.0 to 1.10.0.
- [Changelog](https://github.com/rayon-rs/rayon/blob/main/RELEASES.md)
- [Commits](https://github.com/rayon-rs/rayon/compare/rayon-core-v1.8.0...rayon-core-v1.10.0)

---
updated-dependencies:
- dependency-name: rayon
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-06-23 15:14:53 +02:00
dependabot[bot]
dc6c6fbf94 Bump serde_yaml from 0.9.27 to 0.9.34+deprecated
Bumps [serde_yaml](https://github.com/dtolnay/serde-yaml) from 0.9.27 to 0.9.34+deprecated.
- [Release notes](https://github.com/dtolnay/serde-yaml/releases)
- [Commits](https://github.com/dtolnay/serde-yaml/compare/0.9.27...0.9.34)

---
updated-dependencies:
- dependency-name: serde_yaml
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-06-23 15:14:46 +02:00
dependabot[bot]
b370433925 Bump walkdir from 2.4.0 to 2.5.0
Bumps [walkdir](https://github.com/BurntSushi/walkdir) from 2.4.0 to 2.5.0.
- [Commits](https://github.com/BurntSushi/walkdir/compare/2.4.0...2.5.0)

---
updated-dependencies:
- dependency-name: walkdir
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-06-23 15:14:39 +02:00
Nick Groenen
dba05d0e9c
Fix license specifier in Cargo metadata 2023-12-03 17:44:41 +01:00
Nick Groenen
82b6e597c6
Release v23.12.0 2023-12-03 17:38:24 +01:00
Nick Groenen
d6f8b4e692
Use cargo-dist to create release artifacts
This will create binaries for more platforms (including ARM builds for
MacOS) and installer scripts in addition to just the binaries themselves.
2023-12-03 17:06:31 +01:00
dependabot[bot]
4b88ad2b51 Bump serde_yaml from 0.9.25 to 0.9.27
Bumps [serde_yaml](https://github.com/dtolnay/serde-yaml) from 0.9.25 to 0.9.27.
- [Release notes](https://github.com/dtolnay/serde-yaml/releases)
- [Commits](https://github.com/dtolnay/serde-yaml/compare/0.9.25...0.9.27)

---
updated-dependencies:
- dependency-name: serde_yaml
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-12-02 11:42:43 +01:00
dependabot[bot]
c7e0196fbe Bump eyre from 0.6.8 to 0.6.9
Bumps [eyre](https://github.com/eyre-rs/eyre) from 0.6.8 to 0.6.9.
- [Commits](https://github.com/eyre-rs/eyre/compare/v0.6.8...eyre@0.6.9)

---
updated-dependencies:
- dependency-name: eyre
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-12-02 11:42:31 +01:00
dependabot[bot]
ede7a06c24 Bump tempfile from 3.8.0 to 3.8.1
Bumps [tempfile](https://github.com/Stebalien/tempfile) from 3.8.0 to 3.8.1.
- [Changelog](https://github.com/Stebalien/tempfile/blob/master/CHANGELOG.md)
- [Commits](https://github.com/Stebalien/tempfile/commits)

---
updated-dependencies:
- dependency-name: tempfile
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-12-02 11:31:39 +01:00
dependabot[bot]
f3d063aab4 Bump slug from 0.1.4 to 0.1.5
Bumps [slug](https://github.com/Stebalien/slug-rs) from 0.1.4 to 0.1.5.
- [Commits](https://github.com/Stebalien/slug-rs/compare/v0.1.4...v0.1.5)

---
updated-dependencies:
- dependency-name: slug
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-12-02 11:31:24 +01:00
dependabot[bot]
06b2a3d6a4 Bump ignore from 0.4.20 to 0.4.21
Bumps [ignore](https://github.com/BurntSushi/ripgrep) from 0.4.20 to 0.4.21.
- [Release notes](https://github.com/BurntSushi/ripgrep/releases)
- [Changelog](https://github.com/BurntSushi/ripgrep/blob/master/CHANGELOG.md)
- [Commits](https://github.com/BurntSushi/ripgrep/commits)

---
updated-dependencies:
- dependency-name: ignore
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-12-02 11:30:54 +01:00
dependabot[bot]
0606eca6de Bump pulldown-cmark-to-cmark from 11.0.0 to 11.0.2
Bumps [pulldown-cmark-to-cmark](https://github.com/Byron/pulldown-cmark-to-cmark) from 11.0.0 to 11.0.2.
- [Release notes](https://github.com/Byron/pulldown-cmark-to-cmark/releases)
- [Changelog](https://github.com/Byron/pulldown-cmark-to-cmark/blob/main/CHANGELOG.md)
- [Commits](https://github.com/Byron/pulldown-cmark-to-cmark/compare/v11.0.0...v11.0.2)

---
updated-dependencies:
- dependency-name: pulldown-cmark-to-cmark
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-12-02 11:30:44 +01:00
dependabot[bot]
d3b1bd412e Bump percent-encoding from 2.3.0 to 2.3.1
Bumps [percent-encoding](https://github.com/servo/rust-url) from 2.3.0 to 2.3.1.
- [Release notes](https://github.com/servo/rust-url/releases)
- [Commits](https://github.com/servo/rust-url/compare/v2.3.0...v2.3.1)

---
updated-dependencies:
- dependency-name: percent-encoding
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-12-02 11:30:31 +01:00
dependabot[bot]
4e99f03a1f Bump regex from 1.9.6 to 1.10.2
Bumps [regex](https://github.com/rust-lang/regex) from 1.9.6 to 1.10.2.
- [Release notes](https://github.com/rust-lang/regex/releases)
- [Changelog](https://github.com/rust-lang/regex/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rust-lang/regex/compare/1.9.6...1.10.2)

---
updated-dependencies:
- dependency-name: regex
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-10-17 09:47:38 +02:00
dependabot[bot]
97958f81c5 Bump regex from 1.9.5 to 1.9.6
Bumps [regex](https://github.com/rust-lang/regex) from 1.9.5 to 1.9.6.
- [Release notes](https://github.com/rust-lang/regex/releases)
- [Changelog](https://github.com/rust-lang/regex/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rust-lang/regex/compare/1.9.5...1.9.6)

---
updated-dependencies:
- dependency-name: regex
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-10-06 16:48:57 +02:00
dependabot[bot]
143f4fe1cd
Bump rayon from 1.6.0 to 1.8.0 (#174) 2023-09-23 08:23:09 +00:00
dependabot[bot]
33707d67a5
Bump walkdir from 2.3.2 to 2.4.0 (#173) 2023-09-23 08:22:38 +00:00
dependabot[bot]
88b2378862
Bump regex from 1.9.4 to 1.9.5 (#178)
Bumps [regex](https://github.com/rust-lang/regex) from 1.9.4 to 1.9.5.
- [Release notes](https://github.com/rust-lang/regex/releases)
- [Changelog](https://github.com/rust-lang/regex/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rust-lang/regex/compare/1.9.4...1.9.5)

---
updated-dependencies:
- dependency-name: regex
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-09-23 09:39:47 +02:00
dependabot[bot]
52d400ff01
Bump rstest from 0.17.0 to 0.18.2 (#179) 2023-09-23 07:39:37 +00:00
dependabot[bot]
d76bbdb3b7
Bump ignore from 0.4.18 to 0.4.20 (#145) 2023-09-22 09:59:06 +00:00
dependabot[bot]
0dd235279e
Bump pulldown-cmark from 0.9.2 to 0.9.3 (#165) 2023-09-22 09:46:48 +00:00
dependabot[bot]
e197ac3408
Bump tempfile from 3.3.0 to 3.8.0 (#172) 2023-09-22 09:43:56 +00:00
dependabot[bot]
33c57f2322
Bump snafu from 0.7.3 to 0.7.5 (#164) 2023-09-22 09:43:30 +00:00
dependabot[bot]
ae87431847
Bump pulldown-cmark-to-cmark from 10.0.4 to 11.0.0 (#168) 2023-09-22 09:42:21 +00:00
dependabot[bot]
942b954a48
Bump serde_yaml from 0.9.14 to 0.9.25 (#167) 2023-09-22 09:39:01 +00:00
dependabot[bot]
277e057191
Bump rstest from 0.16.0 to 0.17.0 (#166) 2023-09-22 09:35:03 +00:00
dependabot[bot]
90573cab3e
Bump regex from 1.7.0 to 1.9.4 (#170) 2023-09-22 09:32:44 +00:00
dependabot[bot]
29772f8f5c
Bump percent-encoding from 2.2.0 to 2.3.0 (#171) 2023-09-22 09:32:25 +00:00
dependabot[bot]
303e2053be
Bump pretty_assertions from 1.3.0 to 1.4.0 (#169) 2023-09-22 09:31:11 +00:00
dependabot[bot]
80130260e9
Bump rstest from 0.15.0 to 0.16.0 (#135)
Bumps [rstest](https://github.com/la10736/rstest) from 0.15.0 to 0.16.0.
- [Release notes](https://github.com/la10736/rstest/releases)
- [Changelog](https://github.com/la10736/rstest/blob/master/CHANGELOG.md)
- [Commits](https://github.com/la10736/rstest/compare/0.15.0...0.16.0)

---
updated-dependencies:
- dependency-name: rstest
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-11-29 10:54:47 +01:00
dependabot[bot]
500f0fb86b
Bump rayon from 1.5.3 to 1.6.0 (#134)
Bumps [rayon](https://github.com/rayon-rs/rayon) from 1.5.3 to 1.6.0.
- [Release notes](https://github.com/rayon-rs/rayon/releases)
- [Changelog](https://github.com/rayon-rs/rayon/blob/master/RELEASES.md)
- [Commits](https://github.com/rayon-rs/rayon/compare/v1.5.3...rayon-core-v1.6.0)

---
updated-dependencies:
- dependency-name: rayon
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-11-29 10:54:28 +01:00
Nick Groenen
83ab69aedd
Release v22.11.0 2022-11-19 17:12:13 +01:00
Nick Groenen
b5b2ea2c3b
New: apply unicode normalization while resolving notes
The unicode standard allows for certain (visually) identical characters to
be represented in different ways.

For example the character ä may be represented as a single combined
codepoint "Latin Small Letter A with Diaeresis" (U+00E4) or by the
combination of "Latin Small Letter A" (U+0061) followed by "Combining
Diaeresis" (U+0308).

When encoded with UTF-8, these are represented as respectively the two
bytes 0xC3 0xA4, and the three bytes 0x61 0xCC 0x88.

A user linking to notes with these characters in their titles would
expect these two variants to link to the same file, given they are
visually identical and have the exact same semantic meaning.

The unicode standard defines a method to deconstruct and normalize these
forms, so that a byte comparison on the normalized forms of these
variants ends up comparing the same thing. This is called Unicode
Normalization, defined in Unicode® Standard Annex #15
(http://www.unicode.org/reports/tr15/).

The W3C Working Group has written an excellent explanation of the
problems regarding string matching, and how unicode normalization helps
with this process: https://www.w3.org/TR/charmod-norm/#unicodeNormalization

With this change, obsidian-export will perform unicode normalization
(specifically the C (or NFC) normalization form) on all note titles
while looking up link references, ensuring visually identical links are
treated as being similar, even if they were encoded as different
variants.

A special thanks to Hans Raaf (@oderwat) for reporting and helping track
down this issue.

---

Closes #126
2022-11-19 16:58:48 +01:00
dependabot[bot]
f2a0d1c041 Bump regex from 1.6.0 to 1.7.0
Bumps [regex](https://github.com/rust-lang/regex) from 1.6.0 to 1.7.0.
- [Release notes](https://github.com/rust-lang/regex/releases)
- [Changelog](https://github.com/rust-lang/regex/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rust-lang/regex/compare/1.6.0...1.7.0)

---
updated-dependencies:
- dependency-name: regex
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-11-15 17:55:38 +01:00
Nick Groenen
6af4c9140c
Upgrade snafu to 0.7.x 2022-11-05 14:38:02 +01:00
Nick Groenen
17d0e3df7e
Upgrade pulldown-cmark-to-cmark to 10.0.x 2022-11-05 14:38:02 +01:00
Nick Groenen
262f22ba70
Upgrade serde_yaml to 0.9.x 2022-11-05 14:38:02 +01:00
Nick Groenen
0535de53a9
Upgrade minor dependencies 2022-11-05 14:37:56 +01:00
dependabot[bot]
85adc314b6 Bump tempfile from 3.2.0 to 3.3.0
Bumps [tempfile](https://github.com/Stebalien/tempfile) from 3.2.0 to 3.3.0.
- [Release notes](https://github.com/Stebalien/tempfile/releases)
- [Changelog](https://github.com/Stebalien/tempfile/blob/master/NEWS)
- [Commits](https://github.com/Stebalien/tempfile/compare/v3.2.0...v3.3.0)

---
updated-dependencies:
- dependency-name: tempfile
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-01-10 20:30:36 +01:00
Nick Groenen
86af6bbf37
Release v22.1.0 2022-01-02 12:28:25 +01:00
Nick Groenen
838881fea0
Upgrade dependencies
This commit upgrades all dependencies to their current latest versions. Most
notably, this includes upgrades to the following most critical libraries:

    pulldown-cmark v0.8.0 -> v0.9.0
    pulldown-cmark-to-cmark v7.1.1 -> v9.0.0

In total, these dependencies were upgraded:

    bstr v0.2.16 -> v0.2.17
    ignore v0.4.17 -> v0.4.18
    libc v0.2.101 -> v0.2.112
    memoffset v0.6.4 -> v0.6.5
    num_cpus v1.13.0 -> v1.13.1
    once_cell v1.8.0 -> v1.9.0
    ppv-lite86 v0.2.10 -> v0.2.16
    proc-macro2 v1.0.29 -> v1.0.36
    pulldown-cmark v0.8.0 -> v0.9.0
    pulldown-cmark-to-cmark v7.1.1 -> v9.0.0
    quote v1.0.9 -> v1.0.14
    rayon v1.5.0 -> v1.5.1
    regex v1.5.3 -> v1.5.4
    serde v1.0.130 -> v1.0.132
    syn v1.0.75 -> v1.0.84
    unicode-width v0.1.8 -> v0.1.9
    version_check v0.9.3 -> v0.9.4
2022-01-01 23:34:46 +01:00
dependabot[bot]
c96acc1d6d
Bump serde_yaml from 0.8.21 to 0.8.23 (#52)
Bumps [serde_yaml](https://github.com/dtolnay/serde-yaml) from 0.8.21 to 0.8.23.
- [Release notes](https://github.com/dtolnay/serde-yaml/releases)
- [Commits](https://github.com/dtolnay/serde-yaml/compare/0.8.21...0.8.23)

---
updated-dependencies:
- dependency-name: serde_yaml
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-12-14 16:49:32 +01:00
dependabot[bot]
7026b0f684
Bump pulldown-cmark-to-cmark from 7.1.0 to 7.1.1 (#51)
Bumps [pulldown-cmark-to-cmark](https://github.com/Byron/pulldown-cmark-to-cmark) from 7.1.0 to 7.1.1.
- [Release notes](https://github.com/Byron/pulldown-cmark-to-cmark/releases)
- [Changelog](https://github.com/Byron/pulldown-cmark-to-cmark/blob/main/CHANGELOG.md)
- [Commits](https://github.com/Byron/pulldown-cmark-to-cmark/compare/v7.1.0...v7.1.1)

---
updated-dependencies:
- dependency-name: pulldown-cmark-to-cmark
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-12-06 23:31:49 +01:00