Переглянути джерело

chore(tauri.js) update changelog with window.tauri mapper (gist)

Lucas Nogueira 5 роки тому
батько
коміт
17a047e1bb
1 змінених файлів з 3 додано та 2 видалено
  1. 3 2
      cli/tauri.js/CHANGELOG.md

+ 3 - 2
cli/tauri.js/CHANGELOG.md

@@ -3,5 +3,6 @@
 ## [0.8.0]
 
 -   Create UMD, ESM and CJS artifacts for the JavaScript API entry point from TS source using rollup.
--   Renaming window.tauri to window.**TAURI**, closing #435.
-    The **TAURI** object now follows the TypeScript API structure (e.g. window.**TAURI**.readTextFile is now window.**TAURI**.fs.readTextFile).
+-   Renaming window.tauri to window.\_\_TAURI\_\_, closing #435.
+    The **Tauri** object now follows the TypeScript API structure (e.g. window.tauri.readTextFile is now window.\_\_TAURI\_\_.fs.readTextFile).
+    If you want to keep the `window.tauri` object for a while, you can add a [mapping object](https://gist.github.com/lucasfernog/8f7b29cadd91d92ee2cf816a20c2ef01) to your code.