Skip to main content

Search

Items tagged with: kittenreleases


🥳 New Kitten¹ Release

• Adds Kitten Introspection API

I’ll record a video this week demonstrating it.

In the meanwhile, check out the change log for details:
codeberg.org/kitten/app/src/br…

Enjoy!

:kitten:💕

¹ kitten.small-web.org

#Kitten #KittenReleases #SmallWeb #SmallTech #introspectionAPI #web #dev


🥳 New Kitten Release

• Implement garbage collection timeout for unconnected pages

Added a timeout to KittenPage instances so that if they do not connect within 10 seconds, they are garbage collected.

This is to avoid a memory leak in the scenario where a person rapidly refreshes a class-based (state maintaining) Kitten page. In such a scenario, the almost instant page lifecycle does not allow enough time for the page’s default WebSocket to connect and disconnect from the client. As we normally garbage collect pages when their default WebSocket disconnects, this leaves the page object in memory, creating a memory leak.

Enjoy!

kitten.small-web.org

:kitten:💕

#Kitten #KittenReleases #SmallWeb #SmallTech #bugFix


🥳 New @small-web/kitten (Kitten globals) release.

• Improved type information.
• Now plays nice with tsconfig.json and tsc.
• Adds `rawBody` to `KittenRequest`.

This is not really a breaking change (in that it won’t break your apps) but I’m releasing it as a major version update so as not to surprise you if you notice the type information is different (more detailed than before).

To update in your kitten apps:
npm install @small-web/kitten@7

For more information on how to use this module, see the Kitten Type Safety tutorial:
kitten.small-web.org/tutorials…

Full change log:
codeberg.org/kitten/globals/sr…

Enjoy!

:kitten:💕

#Kitten #KittenReleases #SmallWeb #SmallTech #web #dev #typeSafety #JavaScript #JS #nodeJS


🥳 New Kitten¹ Release

• Fixes: Page infinitely refreshes if class does not extend `kitten.Page`

Kitten now shows a helpful error message for this authoring error.

(The issue was due to the page getting rendered without the necessary scaffolding provided by the base class for maintaining the web socket connection,. leading to Kitten thinking the socket connection had failed and triggering a reload to reestablish it.)

Full changelog of today’s updates: codeberg.org/kitten/app/src/br…

Thanks to @joshhatesgithub (codeberg.org/joshhatesgithub) for discovering and reporting this last night.

Enjoy!

:kitten:💕

¹ kitten.small-web.org

#Kitten #KittenReleases #SmallWeb #developerExperience #bugFix


🥳 New Kitten¹ Release

• Adds `rawBody` to non-multipart POST requests.

This property, which is a Buffer, is necessary if you want to verify signatures (e.g., for webhooks).

I had to fork express-busboy as they already ruled out adding it. The fork (@small-web/kitten-busboy²) also allowed me to type the middleware extension point for Polka³ instead of Express (Kitten uses Polka) so that’s one @ts-ignore removed (hey, dev is a string of little wins) :)

Change log: codeberg.org/kitten/app/src/br…

Caught a bug and feeling a little under the weather at the moment (nothing major, mom and dad – no need to worry) so apologies if I’m not responsive here.

Enjoy!

:kitten:💕

¹ kitten.small-web.org
² codeberg.org/kitten/busboy
³ github.com/lukeed/polka

#Kitten #SmallWeb #KittenReleases #busboy #polka #express #bodyParsing #middleware #NodeJS #web #dev


🥳 New Kitten¹ Release

• Fixed: Errors in a project’s _main.script.js_ now cause a hard crash without retry attempts. The errors are also now better classified and communicated.
• Housekeeping: Removed unmaintained dev dependency, updated supported ES versions to esnext and simplified jsconfig.json.

Full change log:
codeberg.org/kitten/app/src/br…

Enjoy!

:kitten:💕

¹ kitten.small-web.org

#Kitten #KittenReleases #SmallWeb #SmallTech #web #dev


🥳 New Kitten release

Several but fixes, thanks to wunter8 (codeberg.org/wunter8):

• Default socket doesn't work when testing with a local mobile device (codeberg.org/kitten/app/issues…)
• Apostrophes in the text content of <if> tags can cause problems (codeberg.org/kitten/app/issues…)

Also, there’s now a canonical place to initialise state-maintaining child components when using the new (and still undocumented) class-based Kitten Component system. Until it’s all documented, please refer to this:

codeberg.org/kitten/app/issues…

Enjoy!

:kitten:💕

#Kitten #KittenReleases #SmallWeb #SmallTech

⇧