musora-content-services 2.131.7 → 2.131.9

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.
package/CHANGELOG.md CHANGED
@@ -2,6 +2,20 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ ### [2.131.9](https://github.com/railroadmedia/musora-content-services/compare/v2.131.8...v2.131.9) (2026-02-06)
6
+
7
+
8
+ ### Bug Fixes
9
+
10
+ * move STs navigateTo to behave like courses ([#780](https://github.com/railroadmedia/musora-content-services/issues/780)) ([98e7689](https://github.com/railroadmedia/musora-content-services/commit/98e7689ca6719e7c0af8ae3cc5563778f623c825))
11
+
12
+ ### [2.131.8](https://github.com/railroadmedia/musora-content-services/compare/v2.131.7...v2.131.8) (2026-02-06)
13
+
14
+
15
+ ### Bug Fixes
16
+
17
+ * **pins:** do not fetch pins on login or account setup ([#778](https://github.com/railroadmedia/musora-content-services/issues/778)) ([7a621c0](https://github.com/railroadmedia/musora-content-services/commit/7a621c02832942b5a0312a739579b1989d5e4f9b))
18
+
5
19
  ### [2.131.7](https://github.com/railroadmedia/musora-content-services/compare/v2.131.6...v2.131.7) (2026-02-05)
6
20
 
7
21
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "musora-content-services",
3
- "version": "2.131.7",
3
+ "version": "2.131.9",
4
4
  "description": "A package for Musoras content services ",
5
5
  "main": "src/index.js",
6
6
  "type": "module",
package/src/index.d.ts CHANGED
@@ -82,6 +82,7 @@ import {
82
82
  } from './services/content-org/playlists.js';
83
83
 
84
84
  import {
85
+ filterCoursesInCourseCollections,
85
86
  getContentRows,
86
87
  getLegacyMethods,
87
88
  getLessonContentRows,
@@ -313,6 +314,10 @@ import {
313
314
  jumpToContinueContent
314
315
  } from './services/sanity.js';
315
316
 
317
+ import {
318
+ clearState
319
+ } from './services/state.ts';
320
+
316
321
  import {
317
322
  generateCommentUrl,
318
323
  generateContentUrl,
@@ -455,6 +460,7 @@ declare module 'musora-content-services' {
455
460
  buildImageSRC,
456
461
  calculateLongestStreaks,
457
462
  clearAllCachedData,
463
+ clearState,
458
464
  closeComment,
459
465
  completeLearningPathIntroVideo,
460
466
  completeMethodIntroVideo,
@@ -581,6 +587,7 @@ declare module 'musora-content-services' {
581
587
  fetchUserPracticeMeta,
582
588
  fetchUserPracticeNotes,
583
589
  fetchUserPractices,
590
+ filterCoursesInCourseCollections,
584
591
  findIncompleteLesson,
585
592
  flushWatchSession,
586
593
  followThread,
package/src/index.js CHANGED
@@ -86,6 +86,7 @@ import {
86
86
  } from './services/content-org/playlists.js';
87
87
 
88
88
  import {
89
+ filterCoursesInCourseCollections,
89
90
  getContentRows,
90
91
  getLegacyMethods,
91
92
  getLessonContentRows,
@@ -317,6 +318,10 @@ import {
317
318
  jumpToContinueContent
318
319
  } from './services/sanity.js';
319
320
 
321
+ import {
322
+ clearState
323
+ } from './services/state.ts';
324
+
320
325
  import {
321
326
  generateCommentUrl,
322
327
  generateContentUrl,
@@ -454,6 +459,7 @@ export {
454
459
  buildImageSRC,
455
460
  calculateLongestStreaks,
456
461
  clearAllCachedData,
462
+ clearState,
457
463
  closeComment,
458
464
  completeLearningPathIntroVideo,
459
465
  completeMethodIntroVideo,
@@ -580,6 +586,7 @@ export {
580
586
  fetchUserPracticeMeta,
581
587
  fetchUserPracticeNotes,
582
588
  fetchUserPractices,
589
+ filterCoursesInCourseCollections,
583
590
  findIncompleteLesson,
584
591
  flushWatchSession,
585
592
  followThread,
@@ -134,7 +134,7 @@ export async function getNavigateTo(data, collection = null) {
134
134
  const lastInteracted = await getLastInteractedOf(childrenIds, collection)
135
135
  const lastInteractedStatus = childrenStates[lastInteracted]
136
136
 
137
- if (['course', 'skill-pack'].includes(content.type)) {
137
+ if (['course', 'skill-pack', 'song-tutorial'].includes(content.type)) {
138
138
  if (lastInteractedStatus === STATE_STARTED) {
139
139
  // send to last interacted
140
140
  navigateToData[content.id] = buildNavigateTo(
@@ -152,7 +152,7 @@ export async function getNavigateTo(data, collection = null) {
152
152
  )
153
153
  }
154
154
  } else if (
155
- ['song-tutorial', 'guided-course', COLLECTION_TYPE.LEARNING_PATH].includes(content.type)
155
+ ['guided-course', COLLECTION_TYPE.LEARNING_PATH].includes(content.type)
156
156
  ) {
157
157
  // send to first incomplete
158
158
  let incompleteChild = findIncompleteLesson(childrenStates, lastInteracted, content.type)
@@ -0,0 +1,10 @@
1
+ import { streakCalculator } from './user/streakCalculator'
2
+
3
+ /**
4
+ * Clears all client-side cached state in musora-content-services.
5
+ * Should be called during logout to ensure no stale data persists
6
+ * between user sessions.
7
+ */
8
+ export function clearState(): void {
9
+ streakCalculator.invalidate()
10
+ }
@@ -5,7 +5,6 @@ import { HttpClient } from '../../infrastructure/http/HttpClient'
5
5
  import { HttpError } from '../../infrastructure/http/interfaces/HttpError'
6
6
  import { globalConfig } from '../config.js'
7
7
  import { clearAllCachedData } from '../dataContext.js'
8
- import { setUserPinnedProgressRow } from '../progress-row/base.js'
9
8
  import { Onboarding } from './onboarding'
10
9
  import { AuthResponse } from './types'
11
10
 
@@ -81,8 +80,6 @@ export async function setupAccount(props: AccountSetupProps): Promise<AccountSet
81
80
  }
82
81
  )
83
82
 
84
- await setUserPinnedProgressRow(res.auth.user?.id, res.auth.user?.brand_pinned_progress || {})
85
-
86
83
  return res
87
84
  }
88
85
 
@@ -40,8 +40,6 @@ export async function login(email, password, deviceName, deviceToken, platform)
40
40
  platform: platform,
41
41
  })
42
42
 
43
- await setUserPinnedProgressRow(data.user?.id, data.user?.brand_pinned_progress || {})
44
-
45
43
  return data
46
44
  }
47
45
  //Removing 3rdParty OAuth2 for now => https://musora.atlassian.net/browse/BEH-624?focusedCommentId=21492