mbeditor 0.7.4 → 0.7.5

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: dd301d5fbcf6d107417270314be0561ac408505b9fc5d9c3862077ce17c68d10
4
- data.tar.gz: 60bf4c608bf64ee929bde7c1ba537c4d07b26374e35233fdc2c0563b350eb20d
3
+ metadata.gz: 3b37033b1cdb05394d9c3c94d28354444ba4d568bcfd57eeb76a582ee4d0812b
4
+ data.tar.gz: ea68220e640e5cc57c76f0acf94519a83fde7852ffc8954880527ff108206870
5
5
  SHA512:
6
- metadata.gz: eb42152a396ec834bf84207e1e9c6a77a5a21c11d6a3c63be839c19f48856cdd08b95e3921ad6acf843a0f2d0debefc6e769ef14a1813c162d02a5912d3691cb
7
- data.tar.gz: ffe883ef2af226e85c53978f4165c04bbe62cf83364f4a6b25bdf7cbbdcc7b52d984733b0ed549e2a978b953366153ca944f4df184c0cb69c80c40b6ad3fd1a2
6
+ metadata.gz: 8f1626f3030541e44974c2d44fb7b10ebe37d23664015cfb163f8e9c3b7b8fe9e3e85f9c9f0c2372ced7ab6adad37cd50e6856b0c18d8f0574510695d2e39443
7
+ data.tar.gz: 892e64bcda023182e76cbb6a95830caabfcf54c9e4fbb59aca26334df2ee6bb8434edf6be97b57576089661b6d1a98d27390d816043eb70e8508ad6efca8fbd2
data/CHANGELOG.md CHANGED
@@ -5,6 +5,13 @@ All notable changes to this project will be documented in this file.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## [0.7.5] - 2026-06-03
9
+
10
+ ### Fixed
11
+ - **What's New tab restored blank** — `isChangelog` was stripped during periodic tab persistence (`MbeditorApp.js:1540`), so the changelog tab was restored without the flag on page reload. The pane rendered it as a normal file tab (Monaco) instead of `ChangelogView`. Added `isChangelog` to the serialized tab properties and patched `openChangelogTab` to set the flag on any restored tabs that lack it.
12
+
13
+ ---
14
+
8
15
  ## [0.7.4] - 2026-06-03
9
16
 
10
17
  ### Fixed
@@ -1549,6 +1549,7 @@ var MbeditorApp = function MbeditorApp() {
1549
1549
  dirty: t.dirty,
1550
1550
  viewState: t.viewState,
1551
1551
  isSettings: !!t.isSettings,
1552
+ isChangelog: !!t.isChangelog,
1552
1553
  isPreview: !!t.isPreview,
1553
1554
  previewFor: t.previewFor || null,
1554
1555
  isDiff: !!t.isDiff,
@@ -3038,8 +3039,18 @@ var MbeditorApp = function MbeditorApp() {
3038
3039
  }
3039
3040
  });
3040
3041
  if (foundTab) {
3042
+ // If the tab was restored from a persisted state that didn't include
3043
+ // isChangelog (pre-v0.7.4), patch it so the pane renders ChangelogView.
3041
3044
  var switchPanes = st.panes.map(function(p) {
3042
- if (p.id === foundPaneId) return Object.assign({}, p, { activeTabId: CHANGELOG_TAB_ID });
3045
+ if (p.id === foundPaneId) {
3046
+ var patchedTabs = p.tabs.map(function(t) {
3047
+ if (t.id === CHANGELOG_TAB_ID && !t.isChangelog) {
3048
+ return Object.assign({}, t, { isChangelog: true });
3049
+ }
3050
+ return t;
3051
+ });
3052
+ return Object.assign({}, p, { tabs: patchedTabs, activeTabId: CHANGELOG_TAB_ID });
3053
+ }
3043
3054
  return p;
3044
3055
  });
3045
3056
  EditorStore.setState({ panes: switchPanes, focusedPaneId: foundPaneId });
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Mbeditor
4
- VERSION = "0.7.4"
4
+ VERSION = "0.7.5"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mbeditor
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.4
4
+ version: 0.7.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Oliver Noonan