Skip to content

Releases: unjs/c12

v1.8.0

14 Feb 12:35
@pi0 pi0
a00cbe5
Compare
Choose a tag to compare

compare changes

🚀 Enhancements

  • Support .config dir (#136)

🩹 Fixes

  • Use default export of json5 for parsing (#135)

🏡 Chore

✅ Tests

❤️ Contributors

v1.7.0

07 Feb 23:25
@pi0 pi0
58fd51b
Compare
Choose a tag to compare

compare changes

🚀 Enhancements

  • .jsonc config support (#132)
  • .json5 config support (#133)

❤️ Contributors

  • Pooya Parsa (@pi0)

v1.6.1

30 Dec 01:04
@pi0 pi0
Compare
Choose a tag to compare

compare changes

🩹 Fixes

  • Preserve cloned dir if install option provided (81e2891)

❤️ Contributors

  • Pooya Parsa (@pi0)

v1.6.0

29 Dec 23:57
@pi0 pi0
45dc079
Compare
Choose a tag to compare

compare changes

🚀 Enhancements

  • Option to omit $ prefixed keys from resolved config (#100)
  • Support install for source options (#126)

🩹 Fixes

  • Normalize Windows backslash for configFile and source (#48)
  • Clone sub layers into node_modules/.c12 (#125)
  • Handle http:// prefixes with giget (6c09735)

📖 Documentation

  • Add package pronunciation (#118)

❤️ Contributors

  • Pooya Parsa (@pi0)
  • Lo (@LoTwT)
  • Alex Kozack
  • Nozomu Ikuta

v1.5.1

19 Oct 11:57
@pi0 pi0
Compare
Choose a tag to compare

compare changes

⭐ What is new?

This release improves extending config from remote (git) sources by improving unjs/giget integration. This improves experience for frameworks that rely on extends feature for multi layer applications (such as Nuxt Layers).

Now when you clone a config layer from a git remote source, it will be cloned into <your_project_dir>/node_modules/.giget/{name} this way any dependencies from the main project will be also available for extending the config layer.

Also, you can provide additional cloning options for each config layer. This allows setting custom registry, auth token, and to enable dependency auto install for GitHub remote layers (tracker #51):

export default defineConfig({
  extends: [
    ["gh:user/repo", { giget: { auth: process.env.GITHUB_AUTH } }],
  ]
})

You can refer to the remote config docs for more examples.

We will be improving this feature with improved types and easier-to-use top-level shortcuts. Stay tuned!

🚀 Enhancements

  • Improve extending github layers (#109)
  • Allow setting giget clone options (#112)

v1.4.2

20 Jun 19:41
@pi0 pi0
Compare
Choose a tag to compare

compare changes

🩹 Fixes

  • Allow extends dir to start with dot (#71)

📖 Documentation

  • Fix typo for configFile (#83)

❤️ Contributors

v1.4.1

19 Apr 17:01
@pi0 pi0
Compare
Choose a tag to compare

compare changes

🩹 Fixes

  • watchConfig: Handle custom config names (eedd141)

❤️ Contributors

  • Pooya Parsa (@pi0)

v1.4.0

19 Apr 16:42
@pi0 pi0
Compare
Choose a tag to compare

compare changes

🚀 Enhancements

  • watchConfig utility with HMR support (#77, #78)

v1.3.0

17 Apr 12:30
@pi0 pi0
6227d54
Compare
Choose a tag to compare

compare changes

🚀 Enhancements

  • Generic types support (#64)

🩹 Fixes

  • Use rm instead of rmdir for recursive remove (#69)

❤️ Contributors

v1.2.0

13 Mar 13:11
@pi0 pi0
Compare
Choose a tag to compare

compare changes

🚀 Enhancements

  • Load config from package.json (#52)
  • Environment specific configuration (#61)
  • Layer meta and source options (#62)
  • envName config (4a0227d)

🩹 Fixes

  • Allow extending from npm packages with subpath (#54)

📖 Documentation

  • Fix grammer and typos (3e8436c)
  • Don't mention unsupported usage (ea7ac6e)

🏡 Chore

✅ Tests

❤️ Contributors