@cavuno/board 4.55.0 → 4.56.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (38) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/dist/{_spec-QzRtIJNE.d.mts → _spec-DNgZ9TDp.d.mts} +8 -0
  3. package/dist/{_spec-QzRtIJNE.d.ts → _spec-DNgZ9TDp.d.ts} +8 -0
  4. package/dist/{blog-D32ONCap.d.mts → blog-BQ5DzpRE.d.mts} +1 -1
  5. package/dist/{blog-DBYumoqv.d.ts → blog-BWrreKht.d.ts} +1 -1
  6. package/dist/{board-BXRsEJR8.d.ts → board-CA5yUPFF.d.ts} +6 -2
  7. package/dist/{board-Dc9RJzZs.d.mts → board-PwjT7UJo.d.mts} +6 -2
  8. package/dist/{breadcrumbs-CsG5emA0.d.mts → breadcrumbs-BX9xxHwd.d.mts} +2 -2
  9. package/dist/{breadcrumbs-DuT2G4a5.d.ts → breadcrumbs-sAlVJqL2.d.ts} +2 -2
  10. package/dist/browser/cavuno-board.global.min.js +1 -1
  11. package/dist/filters.d.mts +2 -2
  12. package/dist/filters.d.ts +2 -2
  13. package/dist/format.d.mts +4 -4
  14. package/dist/format.d.ts +4 -4
  15. package/dist/index.d.mts +18 -72
  16. package/dist/index.d.ts +18 -72
  17. package/dist/index.js +22 -19
  18. package/dist/index.mjs +22 -19
  19. package/dist/{jobs-Cu5SX_Yp.d.mts → jobs-BImL-vLs.d.mts} +1 -1
  20. package/dist/{jobs-BSc8fWRd.d.ts → jobs-CslVA0vg.d.ts} +1 -1
  21. package/dist/{search-D5GiEIK5.d.mts → search-BOM75I5R.d.mts} +1 -1
  22. package/dist/{search-Cc0D9AIG.d.ts → search-CvRPy4fO.d.ts} +1 -1
  23. package/dist/{seo-WA9kv-W8.d.mts → seo-DC-QjxoU.d.mts} +1 -1
  24. package/dist/seo-files.d.mts +2 -2
  25. package/dist/seo-files.d.ts +2 -2
  26. package/dist/{seo-C0NRwuve.d.ts → seo-fuM4UfG-.d.ts} +1 -1
  27. package/dist/seo.d.mts +6 -6
  28. package/dist/seo.d.ts +6 -6
  29. package/dist/server.d.mts +6 -6
  30. package/dist/server.d.ts +6 -6
  31. package/dist/sitemap.d.mts +6 -6
  32. package/dist/sitemap.d.ts +6 -6
  33. package/dist/sitemap.js +7 -2
  34. package/dist/sitemap.mjs +7 -2
  35. package/dist/suggest.d.mts +2 -2
  36. package/dist/suggest.d.ts +2 -2
  37. package/package.json +1 -1
  38. package/skills/manifest.json +1 -1
package/dist/sitemap.mjs CHANGED
@@ -271,7 +271,10 @@ async function jobsTaxonomy(board, origin, kind) {
271
271
  const counts = /* @__PURE__ */ new Map();
272
272
  for (const job of jobs) {
273
273
  const slugs = new Set(
274
- (kind === "categories" ? job.categories : job.skills).map((t) => t.slug)
274
+ (kind === "categories" ? job.categories : job.skills).map(
275
+ // `?? slug`: a response cached before these fields existed lacks it.
276
+ (t) => t.canonicalSlug ?? t.slug
277
+ )
275
278
  );
276
279
  for (const slug of slugs) counts.set(slug, (counts.get(slug) ?? 0) + 1);
277
280
  }
@@ -313,7 +316,9 @@ async function companies(board, origin) {
313
316
  for (const company of list)
314
317
  urls.push(`${origin}${companyPath(company.slug)}`);
315
318
  for (const market of markets) {
316
- urls.push(`${origin}${companyMarketPath(market.slug)}`);
319
+ urls.push(
320
+ `${origin}${companyMarketPath(market.canonicalSlug ?? market.slug)}`
321
+ );
317
322
  }
318
323
  return urls;
319
324
  }
@@ -1,5 +1,5 @@
1
- import { h as SuggestionItem, b as SearchSuggestQuery, F as FetchOptions, g as SuggestResult } from './search-D5GiEIK5.mjs';
2
- import './_spec-QzRtIJNE.mjs';
1
+ import { h as SuggestionItem, b as SearchSuggestQuery, F as FetchOptions, g as SuggestResult } from './search-BOM75I5R.mjs';
2
+ import './_spec-DNgZ9TDp.mjs';
3
3
 
4
4
  /**
5
5
  * `@cavuno/board/suggest` — framework-agnostic headless search-suggest
package/dist/suggest.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { h as SuggestionItem, b as SearchSuggestQuery, F as FetchOptions, g as SuggestResult } from './search-Cc0D9AIG.js';
2
- import './_spec-QzRtIJNE.js';
1
+ import { h as SuggestionItem, b as SearchSuggestQuery, F as FetchOptions, g as SuggestResult } from './search-CvRPy4fO.js';
2
+ import './_spec-DNgZ9TDp.js';
3
3
 
4
4
  /**
5
5
  * `@cavuno/board/suggest` — framework-agnostic headless search-suggest
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cavuno/board",
3
- "version": "4.55.0",
3
+ "version": "4.56.0",
4
4
  "description": "Build custom job boards and careers pages with Cavuno’s TypeScript SDK.",
5
5
  "keywords": [
6
6
  "api-client",
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "4.55.0",
2
+ "version": "4.56.0",
3
3
  "skills": [
4
4
  {
5
5
  "name": "cavuno-board-account",