Skip to content

Commit

Permalink
Move to esm.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
lazaronixon committed Jan 13, 2025
1 parent aef447c commit 42c12b6
Show file tree
Hide file tree
Showing 10 changed files with 14 additions and 12 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
## [Unreleased]
- Move from jsdelivr to esm.sh
- Inputmask wasn't working with jsdelivr

## [0.0.87] - 2024-01-13
- Import only debounce from lodash
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Controller } from "@hotwired/stimulus"
import { FetchRequest } from "https://cdn.jsdelivr.net/npm/@rails/[email protected]/+esm"
import { FetchRequest } from "https://esm.sh/@rails/[email protected]?standalone"

const AUTOSAVE_INTERVAL = 3000

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Controller } from "@hotwired/stimulus"
import { Chart, registerables } from "https://cdn.jsdelivr.net/npm/[email protected]/+esm"
import { Chart, registerables } from "https://esm.sh/[email protected]?standalone"

Chart.register(...registerables)

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Controller } from "@hotwired/stimulus"
import { get } from "https://cdn.jsdelivr.net/npm/@rails/[email protected]/+esm"
import TomSelect from "https://cdn.jsdelivr.net/npm/[email protected]/+esm"
import { get } from "https://esm.sh/@rails/[email protected]?standalone"
import TomSelect from "https://esm.sh/[email protected]?standalone"

export default class extends Controller {
static values = { url: String, optionCreate: { type: String, default: "Add" }, noResults: { type: String, default: "No results found" } }
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Controller } from "@hotwired/stimulus"
import debounce from "https://cdn.jsdelivr.net/npm/[email protected]/+esm"
import Combobox from "https://cdn.jsdelivr.net/npm/@github/[email protected]/+esm"
import debounce from "https://esm.sh/[email protected]?standalone"
import Combobox from "https://esm.sh/@github/[email protected]?standalone"

export default class extends Controller {
static targets = [ "input", "list" ]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Controller } from "@hotwired/stimulus"
import debounce from "https://cdn.jsdelivr.net/npm/[email protected]/+esm"
import debounce from "https://esm.sh/[email protected]?standalone"

export default class extends Controller {
static targets = [ "input", "copyIcon", "successIcon" ]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Controller } from "@hotwired/stimulus"
import flatpickr from "https://cdn.jsdelivr.net/npm/[email protected]/+esm"
import flatpickr from "https://esm.sh/[email protected]?standalone"

export default class extends Controller {
static targets = [ "details" ]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Controller } from "@hotwired/stimulus"
import Inputmask from "https://cdn.jsdelivr.net/npm/[email protected]/+esm"
import Inputmask from "https://esm.sh/[email protected]?standalone"

export default class extends Controller {
static values = {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Controller } from "@hotwired/stimulus"
import { computePosition, flip, shift, offset, autoUpdate } from "https://cdn.jsdelivr.net/npm/@floating-ui/[email protected]/+esm"
import { computePosition, flip, shift, offset, autoUpdate } from "https://esm.sh/@floating-ui/[email protected]?standalone"

export default class extends Controller {
static targets = [ "button", "menu" ]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Controller } from "@hotwired/stimulus"
import { put } from "https://cdn.jsdelivr.net/npm/@rails/[email protected]/+esm"
import Sortable from "https://cdn.jsdelivr.net/npm/[email protected]/+esm"
import { put } from "https://esm.sh/@rails/[email protected]?standalone"
import Sortable from "https://esm.sh/[email protected]?standalone"

export default class extends Controller {
static values = { url: String, group: String, handle: String }
Expand Down

0 comments on commit 42c12b6

Please sign in to comment.