JSR: The JavaScript Registry
1–10 of 183 posts
Re: JSR: The JavaScript Registry
#2Re: JSR: The JavaScript Registry
#3Re: JSR: The JavaScript Registry
#4Re: JSR: The JavaScript Registry
#5Re: JSR: The JavaScript Registry
#6Man, if only they'd debuted with this, but, hindsight and all. My only thing is that TypeScript has no spec, standard, or competing implementations so it seems a bit risky to treat it as a first-class citizen as far as publishing packages goes.
However as JSR only relies on the syntax, not on the type system, it's no problem :)
Re: JSR: The JavaScript Registry
#7Man, if only they'd debuted with this, but, hindsight and all. My only thing is that TypeScript has no spec, standard, or competing implementations so it seems a bit risky to treat it as a first-class citizen as far as publishing packages goes.
The TypeScript syntax is very stable - there is no spec, but it's very stable. The type system on the other hand: not very stable, and yeah I agree - that would be risky to rely on. However as JSR only relies on the syntax, not on the type system, it's no problem :)
Re: JSR: The JavaScript Registry
#8I get their stance on TypeScript "exported types must be explicit and not use inference", but I feel like this is going to cause a lot of friction in adoption.
2. TypeScript is shipping features in the next release (TS 5.5) has quick-fixes in the editor to make it super easy to add explicit types :) The TS feature is called `isolatedDeclarations`
Re: JSR: The JavaScript Registry
#9Earlier quoted context omitted.
The TypeScript syntax is very stable - there is no spec, but it's very stable. The type system on the other hand: not very stable, and yeah I agree - that would be risky to rely on. However as JSR only relies on the syntax, not on the type system, it's no problem :)
Is not the 'slow types' problem[0] a type system dependency, or am I missing something? [0] https://jsr.io/docs/about-slow-types
The "slow types" restriction specifically exists because JSR does not use TSC or do type analysis :)
Re: JSR: The JavaScript Registry
#10Earlier quoted context omitted.
Is not the 'slow types' problem[0] a type system dependency, or am I missing something? [0] https://jsr.io/docs/about-slow-types
It does not use TSC / do type analysis. This is purely syntax analysis. The "slow types" restriction specifically exists because JSR does not use TSC or do type analysis :)