sueden.social ist einer von vielen unabhängigen Mastodon-Servern, mit dem du dich im Fediverse beteiligen kannst.
Eine Community für alle, die sich dem Süden hingezogen fühlen. Wir können alles außer Hochdeutsch.

Serverstatistik:

1,8 Tsd.
aktive Profile

#webdev

142 Beiträge105 Beteiligte0 Beiträge heute

🦖 WritableStream: getWriter() method
✅ Widely available (from May 2022)

developer.mozilla.org/en-US/do

The getWriter() method of the WritableStream interface returns a new instance of WritableStreamDefaultWriter and locks the stream to that instance. While the stream is locked, no other writer can be acquired until this one is released.

The MDN Web Docs logo, featuring a blue accent color, displayed on a solid black background.
MDN Web DocsWritableStream: getWriter() method - Web APIs | MDNThe getWriter() method of the WritableStream interface returns a new instance of WritableStreamDefaultWriter and locks the stream to that instance. While the stream is locked, no other writer can be acquired until this one is released.

#JavaScript now has this new Temporal object for working with dates, and it'll be stable soon!

Phew, I was so close to killing myself after working with time zones using the Date object, but I'm glad I held out. Even date-fns didn't reduce the number of work hours I spent bashing my head on the table that much. With Temporal going stable I'll probably only be spending 5-6 hours per week doing that, thanks to type errors and failing tests.

developer.mozilla.org/en-US/do

The MDN Web Docs logo, featuring a blue accent color, displayed on a solid black background.
MDN Web DocsTemporal - JavaScript | MDNThe Temporal object enables date and time management in various scenarios, including built-in time zone and calendar representation, wall-clock time conversions, arithmetics, formatting, and more. It is designed as a full replacement for the Date object.

Question related to "end" projects with a versioned backend and versioned frontend; specifically *not* libraries:

How do you handle versioning of your frontend (through package.json) and your backend (e.g., pyproject.toml when using Python)?

1. Where do you declare the version number(s)?
2. Does your frontend and backend have separate version numbers, or do you use one for the entire app?
3. How do you ensure that all numbers stay in sync?
4. Do you manually upgrade versions, or do you use a script? (Possibly based on conventional commits for semver).