#BreakingChange

2024-12-16

If you use the great powershell-yaml module be aware. Version 0.4.8 released last Friday will break your code if you rely on case-insensitive property names.

#PowerShell #YAML #BreakingChange

github.com/cloudbase/powershel

2024-08-27

Well, given that I am about to perpetrate a #breakingchange I figure I should put some sort of versioning on #allthethings so that we can perform its #rollout with as few surprises as possible. I don’t know what order of #environments we will do (there may be some #nonproduction environments both before and after #production) but at least we will be able to track what knobs we turned and what levers we threw to get there. (Or rescue ourselves!)

If only it weren’t such a giant #chore.

2024-05-01

Heads up anyone playing with Kitten at the moment (yes, both of you):

I’m in the process of upgrading Kitten’s version of JSDB from 4 to 5.

*This is a breaking change.*

This will affect you if you’re persisting custom objects (instances of your custom model classes) in your databases.

Please see the details in this JSDB announcement post and the linked-to details page to prepare:

mastodon.ar.al/@aral/112361559

(I should have the update out this afternoon.)

#Kitten #JSDB #BreakingChange #SmallWeb

2024-02-23

Kitten breaking change: Route handlers, etc., now take parameter objects

Just pushed the API updates I’d posted about earlier to main and to the latest Kitten release.

This change affects:

- Route handlers (all types of routes)
- `onConnect()` handlers
- The default export on main.script.js files

I’ve updated all the examples, documentation, etc., on Kitten to use the new API but if you see anything I’ve missed, please let me know.

codeberg.org/kitten/app

#Kitten #SmallWeb #breakingChange

Screenshot of the ubiquitous counter example (Kitten version) in Kitten’s readme on https://codeberg.org/kitten/app:

1. Create a directory for the example and enter it:

mkdir counter
cd counter

2. Create a file called index.page.js and add the following content to it:

if (kitten.db.counter === undefined) kitten.db.counter = { count: 0 }

export default () => kitten.html`
  <page css>
  <h1>Counter</h1>
  <${Count} />
  <button name='update' connect data='{value: -1}' aria-label='decrement'>-</button>
  <button name='update' connect data='{value: 1}' aria-label='increment'>+</button>
`

const Count = () => kitten.html`
  <div
    id='counter'
    aria-live='assertive'
    morph
    style='font-size: 3em; margin: 0.25em 0;'
  >
    ${kitten.db.counter.count}
  </div>
`

export function onConnect ({ page }) {
  page.on('update', data => {
    kitten.db.counter.count += data.value
    page.send(kitten.html`<${Count} />`)
  })
}

3. Run Kitten using the following syntax:

kitten

Once Kitten is running, hit https://localhost, and you should see a counter at zero and two buttons.
2024-02-20

Heads up in case any of you are playing with Kitten¹, I’m going to implement a major API change today (it’s still pre-release/experimental so expect these things… though there should be fewer with time):

Instead of your routes receiving positional arguments like this:

export default (request, response) => { //… }

They will get a parameter object:

export default ({request, response}) => { //… }

¹ codeberg.org/kitten/app

#Kitten #SmallWeb #api #breakingChange

2023-09-25

Sådär! Då har jag deployat en #breakingChange i prod-miljön. #olidligSpänning #livetSomITKonsult

Client Info

Server: https://mastodon.social
Version: 2025.04
Repository: https://github.com/cyevgeniy/lmst