Commit Graph

209 Commits

Author SHA1 Message Date
Michael Brevard
0caf8153ea
Merge branch 'main' into patch-21 2024-03-26 16:19:44 +02:00
Julien Huang
67c664656c
fix(nuxt): move directives to client component island wrapper (#26387) 2024-03-26 13:47:40 +00:00
autofix-ci[bot]
1e16b4a088
[autofix.ci] apply automated fixes 2024-03-25 17:23:25 +00:00
Michael Brevard
f6ba2255e6
fix: ensure observer is not undefined 2024-03-25 19:21:01 +02:00
Michael Brevard
966c17be72
fix: provide a proper wrapper for IO with the comp 2024-03-25 19:19:35 +02:00
Michael Brevard
caf73523c8
Merge branch 'main' into patch-21 2024-03-25 15:29:18 +02:00
Julien Huang
8911c0d0dd
fix(nuxt): move v-if to wrapper in islands transform (#26386) 2024-03-25 10:19:02 +00:00
autofix-ci[bot]
85b4d6932b
[autofix.ci] apply automated fixes 2024-03-24 21:17:18 +00:00
Michael Brevard
d94436b9c4
fix: import type Ref and provide emit 2024-03-24 23:15:02 +02:00
Michael Brevard
2ac2a975e0
fix: proper intersection callback type 2024-03-24 23:08:51 +02:00
Michael Brevard
cb221ed579
types: client-io-component.ts 2024-03-24 22:24:55 +02:00
autofix-ci[bot]
932d143688
[autofix.ci] apply automated fixes 2024-03-24 17:54:31 +00:00
Michael Brevard
6a32dc1c9e
fix: client-io-component.ts 2024-03-24 19:52:16 +02:00
Michael Brevard
ae2bb27ac0
fix: provide ref 2024-03-24 19:46:43 +02:00
Michael Brevard
84b0a71b8c
feat: provide an emit 2024-03-24 19:45:47 +02:00
Michael Brevard
9ac1261662
feat: client-io-component.ts barebones functionality 2024-03-24 19:41:29 +02:00
autofix-ci[bot]
d64d78fde8
[autofix.ci] apply automated fixes 2024-03-24 17:36:36 +00:00
Michael Brevard
9f629ad45a
feat: lazy hydration 2024-03-24 19:30:58 +02:00
Daniel Roe
90591e3a3c
fix(nuxt): don't warn when injecting client-only components (#26341) 2024-03-18 14:41:01 +00:00
Daniel Roe
1cae15a3a4
chore(nuxt): ensure type template has const filename 2024-03-16 17:21:43 -07:00
Daniel Roe
33ce71dd12
refactor(nuxt): use addTypeTemplate in more places 2024-03-16 17:15:53 -07:00
Daniel Roe
a9effe9c8a
feat(nuxt): allow generating metadata for nuxt components (#26204) 2024-03-13 15:57:04 -07:00
Daniel Roe
9bfd988ca6
feat(nuxt): enable islands if server pages/components present (#26223) 2024-03-13 07:39:35 -07:00
Julien Huang
8bb8d824c7
fix(nuxt): detect component usage within ssrRender (#26162) 2024-03-09 13:38:08 +01:00
Daniel Roe
7252b56d52 chore: add back stylistic rules and lint project 2024-03-09 06:48:15 +00:00
Julien Huang
f0442d0ddb
feat(nuxt): emit error if <NuxtIsland> can't fetch island (#25798) 2024-03-06 16:45:43 +00:00
Julien Huang
6d93014c52
feat(nuxt): allow using nuxt-client in all components (#25479) 2024-03-06 15:26:19 +00:00
Bogdan Kostyuk
230f6b4f19
feat(nuxt): client-only pages (#25037) 2024-03-06 14:38:39 +00:00
Daniel Roe
2e8c598e4d
fix(nuxt): only check if server page is prerendered on client (#26081) 2024-03-05 10:36:05 +00:00
Julien Huang
23fbe8513b
perf(nuxt): don't check isPrerendered in dev for server page (#26061) 2024-03-04 10:32:34 +00:00
Julien Huang
196223c0fb
feat(nuxt): server-only pages (#24954) 2024-02-26 17:39:26 +00:00
Daniel Roe
e33cec9580
chore: use pathe in internal tests 2024-02-05 11:24:39 +00:00
Julien Huang
13384149f7
fix(nuxt): remove dynamic nuxt-client within template code (#25464) 2024-01-27 21:45:34 +00:00
Becem
a551b216ea
fix(nuxt): use default export for raw components (#25282) 2024-01-20 20:43:11 +00:00
Becem
10af369436
fix(nuxt): use named import for lazy components (#25286) 2024-01-19 21:43:19 +00:00
Daniel Roe
430e207bc4
refactor(nuxt): rename to data-island-component (#25232) 2024-01-16 16:33:45 +00:00
Julien Huang
986786a4a9
refactor(nuxt): refactor island response + improve rendering (#25190) 2024-01-16 13:22:50 +00:00
Inesh Bose
406b204640
fix(kit): improve types for options in addTemplate (#25109) 2024-01-12 10:47:23 +00:00
Julien Huang
22800704f5
fix(nuxt): add missing script blocks before island transform (#25148) 2024-01-11 15:40:02 +01:00
Julien Huang
1b93e604d3
feat(nuxt): allow client components within NuxtIsland (#22649) 2023-12-19 12:21:29 +00:00
Harlan Wilton
642d4dc9de
fix(nuxt): eager load island components map (#24584) 2023-12-19 10:07:34 +00:00
Julien Huang
17b5ed9ad8
feat(nuxt): expose refresh on islands and server components (#24261) 2023-12-14 11:07:54 +00:00
Daniel Roe
445fe808c0
fix(nuxt): do not try auto-install outside of a Nuxt context (#24605) 2023-12-05 17:33:27 +00:00
Daniel Roe
09161d005d
fix(nuxt): use consistent annotations for tree-shaking (#24514) 2023-11-28 23:20:54 +00:00
Harlan Wilton
0f705f3d4a
fix(nuxt): island components with number prefix (#24469) 2023-11-28 22:06:32 +00:00
Daniel Roe
c3cf55d963
fix(nuxt): handle multi-line slots in islands (#24212) 2023-11-09 14:45:45 +01:00
Daniel Roe
7500f27235
fix(nuxt): preserve hyphens in component/layout kebab names (#23902) 2023-10-31 14:30:54 +01:00
Daniel Roe
27791f4c33
perf(nuxt): remove pure annotations plugin (#24033) 2023-10-30 22:04:45 +01:00
Daniel Roe
6141c08a44
feat(nuxt): prompt to autoinstall @nuxt/image when it is used (#23717) 2023-10-17 12:07:31 +01:00
Daniel Roe
e64ece70c0
fix(nuxt): respect custom export in component transform (#23715) 2023-10-17 11:19:47 +01:00
Aleksandar Trpkovski
00917a1bd8
feat(nuxt): scan and register layouts in nested folders (#20190)
Co-authored-by: Daniel Roe <daniel@roe.dev>
2023-10-16 22:58:40 +01:00
renovate[bot]
a5dad0d2e8
chore(deps): update devdependency eslint-plugin-jsdoc to v46 (main) (#23614)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Daniel Roe <daniel@roe.dev>
2023-10-11 13:31:22 +01:00
Ezra Adeyinka
8db82af3a9
chore: fix various typos and update to US English (#23580) 2023-10-10 12:14:55 +01:00
Arsen Goian
17e6c1f7fb
fix(nuxt): apply scoped styles to islands (#23386) 2023-09-28 08:36:13 +01:00
Pooya Parsa
2bf9028f7e
refactor(kit,nuxt,schema): use consola and improve test dx (#23302) 2023-09-19 22:26:15 +01:00
Julien Huang
ceab38770d
fix(nuxt): correct islandsTransform slot regex (#23226) 2023-09-14 22:44:18 +01:00
Daniel Roe
a95fd28725
fix(nuxt): allow importing server components from #components (#23188) 2023-09-13 23:35:53 +01:00
Julien Huang
95d1f9944d
refactor(nuxt): don't wrap server placeholders/client fallbacks (#21980) 2023-09-13 22:56:15 +01:00
Daniel Roe
3e1ad3e20b
fix(nuxt): allow overriding components + only warn if clash (#23156) 2023-09-12 21:47:42 +01:00
Daniel Roe
574102c523
fix(nuxt): default scanned layer components to priority 0 (#23127) 2023-09-11 19:17:42 +01:00
Julien Huang
3f9fa008d9
fix(nuxt): exclude data-v attrs from server component props (#23095) 2023-09-10 09:06:11 +01:00
Daniel Roe
8ced37bc8b
fix(nuxt): improve types within plugin templates (#22998) 2023-09-04 16:44:23 +01:00
Daniel Roe
6036e9d6a2
fix(kit): respect priority when registering components dirs (#22882) 2023-08-29 23:06:41 +01:00
Joaquín Sánchez
424dc8d7c0
fix(nuxt): exclude resolved vite virtual modules prefix (#22834) 2023-08-26 15:45:17 +01:00
Daniel Roe
23723305da
feat(schema): support setting hidden sourcemaps (#22787) 2023-08-24 13:06:44 +01:00
Mihailo Bursac
e94b30d314
perf(nuxt): reduce multiple calls to .toLowerCase() (#22743) 2023-08-23 17:58:10 +01:00
Julien Huang
aa37de48f7
fix(nuxt): warn when ignoring duplicate island/server component (#22709) 2023-08-23 16:23:17 +01:00
Daniel Roe
b2cea4927e
feat(nuxt): allow experimental global: 'sync' components (#22558) 2023-08-09 12:19:00 +01:00
Daniel Roe
1b1f194e64
refactor(nuxt): add additional flag to enable remote sources (#22409) 2023-07-31 13:01:50 +01:00
Daniel Roe
5926bbeff8
feat(nuxt): allow 'lazy' (non-blocking) server components (#21918) 2023-07-31 09:51:09 +01:00
Daniel Roe
e2c7edd479
fix(nuxt): pass (and handle) relative paths in builder:watch (#22333) 2023-07-26 11:16:01 +02:00
Anthony Fu
e3437c67d6
fix(nuxt): components auto-import for JSX (#22330) 2023-07-26 05:30:44 +01:00
Daniel Roe
0f16cd6124
perf(nuxt,schema): do not watch buildDir and node_modules (#22214) 2023-07-19 15:43:28 +01:00
云游君
e3553a36f9
fix(nuxt): skip scanning components that do not produce a name (#22074) 2023-07-14 14:50:14 +01:00
Daniel Roe
435ac87961
perf(nuxt): allow hmr for server components in dev mode (#21916) 2023-07-04 05:21:27 +01:00
Julien Huang
cc4cf68ed4
perf(nuxt): don't run island transform plugin if disabled (#21844) 2023-06-28 17:44:43 +01:00
Daniel Roe
9c8746f2a6
chore: prune internal unused code and exports (#21809) 2023-06-27 10:38:40 +01:00
Daniel Roe
4a7134f9b4
fix(nuxt): use starting index when transforming islands (#21795) 2023-06-26 19:32:02 +01:00
Daniel Roe
bb4ed5e406
fix(nuxi): add back default baseUrl in tsconfig.json (#21632) 2023-06-19 23:29:09 +01:00
Daniel Roe
19fc2828fb
perf(nuxt): use prerendered islands to serialise/revive payload (#21461) 2023-06-14 10:09:27 +01:00
Daniel Roe
acdc28a99e
fix(nuxi,nuxt): remove baseUrl + use relative paths in tsconfig (#21081) 2023-06-09 23:19:42 +01:00
Julien Huang
ed5732196d
fix(nuxt): prefix server component ids to avoid collisions (#21472) 2023-06-08 21:55:21 +01:00
Daniel Roe
c37ebab1ef
perf(nuxt): use .test and hoist regexps where possible (#21011) 2023-05-22 21:25:42 +01:00
Daniel Roe
f94984e5cb
fix(nuxt): use simple incrementing id on client (#20992) 2023-05-22 21:25:04 +01:00
Daniel Roe
3ed0d0ffc1
fix(nuxt): scan component dirs case-sensitively (#20995) 2023-05-22 11:04:02 +01:00
Daniel Roe
25c150136d
fix(nuxt): don't match partial component names with prefix (#20939) 2023-05-19 08:11:46 +01:00
Julien Huang
70c5ec86d2
feat(nuxt): full scoped slots support for server components (#20284) 2023-05-15 23:43:53 +01:00
白雾三语
ce84c9b44f
fix(nuxt): ensure all dir parts are present in component name (#20779) 2023-05-15 13:34:04 +01:00
Julien Huang
900ee6dc8b
fix(nuxt): transform client fallbacks directly on SFCs (#20835) 2023-05-13 22:39:50 +01:00
Daniel Roe
53fef72031
fix(nuxt): deduplicate global components before registration (#20743) 2023-05-10 13:57:27 +01:00
Daniel Roe
eb8e9169d6
fix(nuxt): generate empty sourcemaps for wrappers (#20744) 2023-05-09 16:57:23 +01:00
Daniel Roe
16bf228437
fix(nuxt): ensure useError is called with nuxt app context (#20585) 2023-05-01 23:55:24 +01:00
Daniel Roe
8353e4c66e
feat(nuxt): allow access to components within app (#20604) 2023-05-01 17:35:00 +01:00
Anthony Fu
d2fc6ae614
fix(nuxt): properly handle query for component wrapper (#20591) 2023-04-30 10:08:08 +01:00
Anthony Fu
98b20c45c8
fix(nuxt): transform #components imports into direct component imports (#20547)
Co-authored-by: Daniel Roe <daniel@roe.dev>
2023-04-28 10:14:42 +01:00
Julien Huang
e8e01bac13
fix(nuxt): use key to force server component re-rendering (#19911) 2023-04-20 22:41:20 +01:00
Daniel Roe
c7be5b4ec6
refactor(nuxt): rework and use isJS and isVue utilities consistently (#20344) 2023-04-19 19:17:36 +01:00
Daniel Roe
d0c8e7fb4a
fix(nuxt): generate hi-res sourcemaps (#20280) 2023-04-14 18:21:08 +01:00
Daniel Roe
53db8125f1
perf(nuxt): share lazy component definitions (#20259) 2023-04-13 20:08:08 +01:00
Daniel Roe
4285092879
feat(nuxt): support object-syntax plugins (#20003) 2023-04-11 04:58:43 -07:00