Divyansh Singh's Avatar

Divyansh Singh

@brc-dd.dev.bsky.social

Software Developer | @vuejs.org Core Team | https://vitepress.dev/ Maintainer | Director at https://globalbrains.com

1,048 Followers  |  390 Following  |  104 Posts  |  Joined: 19.11.2023  |  2.1768

Latest posts by brc-dd.dev on Bluesky

Example - vuejs.org/guide/reusab...

01.08.2025 15:17 β€” πŸ‘ 2    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

By keep it reactive, I meant something like `computed(() => toValue(x))` and use to derive your returned object. Or maybe something like `watch(() => toValue(x), () => {...})`.

01.08.2025 15:15 β€” πŸ‘ 2    πŸ” 0    πŸ’¬ 2    πŸ“Œ 0

Not a syntax sugar. It's just a function that accepts ref and getters too. If your function accepts MaybeRefOrGetter, and you keep it reactive and return a reactive value, it will be automatically tracked by Vue. Async or not it doesn't matter.

01.08.2025 15:12 β€” πŸ‘ 2    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

Found it but not commenting, let others play. How were the first two emojis related to him though? πŸ˜…

31.07.2025 11:53 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

Use some other client, like deck.blue for example.

30.07.2025 11:42 β€” πŸ‘ 2    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
latest vitepress docs showing docsearch AI answering a question

latest vitepress docs showing docsearch AI answering a question

VitePress v2-alpha now supports @algolia.com's DocSearch v4 - including the new "Ask AI" feature! ✨

Try it out:
- vitepress.dev/reference/de...
- docsearch.algolia.com/docs/v4/askai

And a big congrats to Algolia on 10 years of DocSearch! πŸŽ‰

26.07.2025 21:56 β€” πŸ‘ 5    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Video thumbnail

Not related to the API itself, but the errors shouldn't be shown in this case unless the user clicks submit again?

23.07.2025 04:10 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

Used to happen if you're on preview tab and clicked comment. πŸ‘€

22.07.2025 08:46 β€” πŸ‘ 2    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0
Email coming from npmjs.org, looking like an account maintenance notification, prompting the user to log in.

Email coming from npmjs.org, looking like an account maintenance notification, prompting the user to log in.

The link to login looks identical to the NPM login, but hosted on npnjs.com

The link to login looks identical to the NPM login, but hosted on npnjs.com

A phishing attack is going on against maintainers on @npmjs.bsky.social, be aware!

- email is spoofed from npmjs.org (which doesn’t use DMARC but redirects to npmjs.com)
- login link points to npnjs(dot)com (clear giveaway)

18.07.2025 20:11 β€” πŸ‘ 76    πŸ” 44    πŸ’¬ 4    πŸ“Œ 3
import { type } from 'npm:arktype'

const dynamicObject = {
  foo: 'bar',
  baz: 42,
}

const Foo = type('string').narrow((n, ctx) => {
  if (Object.hasOwn(dynamicObject, n)) return true
  return ctx.mustBe('one of ' + JSON.stringify(Object.keys(dynamicObject)))
})

Foo.assert('foo')
Foo.assert('baz')
Foo.assert('bar')

import { type } from 'npm:arktype' const dynamicObject = { foo: 'bar', baz: 42, } const Foo = type('string').narrow((n, ctx) => { if (Object.hasOwn(dynamicObject, n)) return true return ctx.mustBe('one of ' + JSON.stringify(Object.keys(dynamicObject))) }) Foo.assert('foo') Foo.assert('baz') Foo.assert('bar')

I honestly believe these people are just rage baiting. I haven't used ArkType before, but it hardly takes 2 minutes to find what to do for dynamic stuff. πŸ€·β€β™‚οΈ I think there might be more idiomatic ways to do this, but this didn't need much effort and works fine.

15.07.2025 07:27 β€” πŸ‘ 4    πŸ” 0    πŸ’¬ 2    πŸ“Œ 0

Hmm yeah might be that bug then. People have added comments that it works on Sonoma too. I personally have never faced it, so no idea πŸ˜…

14.07.2025 09:03 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Preview
macOS detects location but doesn't Set Time Zone Automatically Recently my automatic timezone update stopped working. (i.e. it used to work but now it doesn't) The Troubling thing is that my Mac detects the correct location (e.g. Golden, CO), but it doesn't use

It should update it. Do you have "Set time zone automatically using your current location" in settings and location services enabled? apple.stackexchange.com/a/335201/502... might be helpful too if it's stuck.

14.07.2025 07:31 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0
Preview
Intermittent GitHub Pages Issue: Showing Root README after Commit Β· Issue #4631 Β· vuejs/vitepress Hi, We’ve been encountering an issue with our GitHub Pages site where, after committing to GitHub, the site occasionally doesn’t behave as expected. Sometimes it works fine, but other times it disp...

well you aren't alone πŸ˜… - github.com/vuejs/vitepr...

14.07.2025 04:03 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

Ah, that oxc-minify thing is temporary. When vite completes the switch to rolldown, it will be made a normal dependency in vitepress too.

12.07.2025 19:56 β€” πŸ‘ 3    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0
Preview
Release v3.6.0-alpha.1 Β· vuejs/core Features vapor mode (#12359) (bfe5ce3) Please see About Vapor Mode section below for details. Performance Improvements reactivity: refactor reactivity core by porting alien-signals (#12349) (3...

Something happened today at VueConf China!

github.com/vuejs/core/r...

12.07.2025 08:24 β€” πŸ‘ 143    πŸ” 26    πŸ’¬ 1    πŸ“Œ 7
Preview
Vue RuleKit - Curated Agent rules for Vue apps Curated agent rules to develop maintainable Vue applications with Cursor, Copilot, Claude, etc. By Eduardo (posva), Vue core team member and author of Vue Router and Pinia.

Announcing RuleKit, my personal rules for AI agents, specific for Vue Apps
Pay once, access forever the GitHub repo and the Discord server
rulekit.dev

08.07.2025 09:01 β€” πŸ‘ 13    πŸ” 4    πŸ’¬ 2    πŸ“Œ 0

You can use github.com/antfu/vscode... in the meantime.

02.07.2025 18:45 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Preview
Release v3.0.0 Β· vuejs/language-tools ImportantDeprecation Notice: Dropping Vue 2 and vue-class-component Support in v3.1: #5455 TipLanguage Server Upgrade guide for none-vscode editors: #5456 Stability Improvements Hybrid Mode Alwa...

Vue Language Tools 3.0 Released πŸŽ‰πŸŽ‰πŸŽ‰
github.com/vuejs/langua...

01.07.2025 16:01 β€” πŸ‘ 76    πŸ” 14    πŸ’¬ 4    πŸ“Œ 3

Thanks for building and maintaining the group icons plugin! It's been awesome to see it adopted by so many projects - including rolldown, vite, vitest, and vitepress. Great work! πŸ™Œ

26.06.2025 09:37 β€” πŸ‘ 2    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

Yeah, but the thing is how else will the browser know if the file exists?

22.05.2025 12:28 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 2    πŸ“Œ 0
Preview
[Design] DevTools Project Settings (devtools.json) DevTools Project Settings (devtools.json) Attention: Externally visible, non-confidential Authors: Status: Short Link: goo.gle/devtools-json-design (go/chrome-devtools:devtools-json-design) Launch:...

Explainer - goo.gle/devtools-jso...,

Vite Plugin - github.com/ChromeDevToo...,

But I don't think it should be fetched on prod?

22.05.2025 12:15 β€” πŸ‘ 5    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

hmm, that's more like a cosmetic issue πŸ˜… LLMs don't care if the content is in a comment. Yeah, but if many people are collaborating, things might start to get ugly without proper auto formatting.

22.05.2025 12:11 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

Yeah, that's the bug actually πŸ˜… But I don't understand the need for `<llm-only>`. A simple html comment would do the same job if it's preserved in the generated dist/*.md files.

22.05.2025 11:46 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

You can actually just hide it with CSS πŸ˜… It's rendered as a web component after all. `llm-only { display: none }`

22.05.2025 08:40 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

You can use moderation lists - bsky.app/profile/did:...

18.05.2025 21:54 β€” πŸ‘ 2    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

Hmm, yeah it's 1:1 mapping. What do you mean by β€œneeds around index routes” though?

11.05.2025 18:06 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

vitepress.dev/guide/routin... ?

11.05.2025 13:26 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0
autofill and passwords setting page in ios

autofill and passwords setting page in ios

It’s configurable:

10.05.2025 11:25 β€” πŸ‘ 2    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

You can do something like this though - tsplay.dev/WJd6kN

08.05.2025 17:15 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

Functions also satisfy Record<string, any> πŸ˜…

08.05.2025 17:04 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

@brc-dd.dev is following 20 prominent accounts