Skip to content

Releases: hmsk/vite-plugin-elm

v3.1.0-1

04 May 03:29
v3.1.0-1
78e3860
Compare
Choose a tag to compare
v3.1.0-1 Pre-release
Pre-release
  • Update options for custom compilation
    • To options.compiler: { compile: (targets: string[]) => Promise<string> }
  • Update devDependencies

v3.1.0-0...v3.1.0-1

Pilot for naive approach to accept compilations by command line

27 Apr 06:10
v3.1.0-0
39a75fe
Compare
Choose a tag to compare
  • Accepts compiler.command on plugin options
    • The option expects a function which takes targets: string[] and returns a command to show compilation's result in stdout
    • { compiler: { command: (targets) => `npx elm-optimize-level2 -O3 --output elm.js ${target[0]} > /dev/null && cat elm.js`
      
  • Update devDependencies

v3.0.1...v3.1.0-0

v3.0.1

16 Apr 08:00
v3.0.1
06f660e
Compare
Choose a tag to compare
  • Correct the unintentional necessity of nodeElmCompilerOptions on plugin's options 25afae6
  • Update devDependencies

v3.0.0...v3.0.1

v3.0.0: Go ESM

30 Jan 14:48
v3.0.0
6164f56
Compare
Choose a tag to compare

💥 Breaking Changes

Require vite@5+

This plugin doesn't support v2, v3, and v4 of vite anymore.

Follow vite's migration guide for updating your vite project

Provide only ESM build

The package now provides only ESM build as a "type": "module" package. Doesn't provide any CJS anymore. Follow vite's guide to deprecate CJS.

If you are using the plugin in an ESM project already (despite only CJS being provided), you need to update your vite's config:

import { defineConfig } from 'vite'
import elmPlugin from 'vite-plugin-elm'

export default defineConfig({
+   plugins: [elmPlugin()]
-   plugins: [elmPlugin.plugin()]
})

💽 Other Changes

  • Update dependency find-up from ^5 to ^7

v2.9.0...v3.0.0

v3.0.0-2

22 Jan 02:29
8d87f74
Compare
Choose a tag to compare
v3.0.0-2 Pre-release
Pre-release
  • Update vite to 5.0.12 to follow security update

v3.0.0-1...v3.0.0-2

v3.0.0-1

19 Jan 06:04
bbd0a4d
Compare
Choose a tag to compare
v3.0.0-1 Pre-release
Pre-release
  • follow updates of typings of acorn
  • refine README 147e091

v3.0.0-0...v3.0.0-1

v3.0.0-0

18 Jan 07:20
a708d7c
Compare
Choose a tag to compare
v3.0.0-0 Pre-release
Pre-release
  • Provide only ESM module (breaking)
  • Require vite 5+ (breaking)
  • Update major version of find-up (breaking)
  • Fix config for ESLint, Prettier

v2.9.0...v3.0.0-0

v2.9.0

12 Jan 09:17
v2.9.0
139ddc8
Compare
Choose a tag to compare
  • Support vite@5
  • Accept raw options for node-elm-compiler via nodeElmCompilerOptions
    -Update devDependencies

v2.8.0...v2.9.0

v2.9.0-beta.2

10 Jan 10:50
v2.9.0-beta.2
b6410c1
Compare
Choose a tag to compare
v2.9.0-beta.2 Pre-release
Pre-release
  • Allow vite@2+ for peerDependencies
  • Update devDependencies

v2.9.0-beta.1...v2.9.0-beta.2

v2.9.0-beta.1

03 May 13:02
v2.9.0-beta.1
6d2a598
Compare
Choose a tag to compare
v2.9.0-beta.1 Pre-release
Pre-release
  • Accept raw options for node-elm-compiler via nodeElmCompilerOptions
  • Update devDependencies

v2.8.0...v2.9.0-beta.1