Skip to content

Latest commit

 

History

History
40 lines (37 loc) · 3.05 KB

CHANGELOG.md

File metadata and controls

40 lines (37 loc) · 3.05 KB

Breaking changes since v2

  1. Module interface has changed. See test.as.py and sdk folder for more info.

Breaking changes since legacy version

  1. Data storage has been changed.
    In the legacy version, the program will record your history to avoid processing too many times. But now, we removed that, because this program may be used by more than one account. Also, we have changed data storage path:
    • For Windows, config, data, temp files are placed at %USERPROFILE%\AppData\Local\AutoXuexiPlaywright.
    • For Linux, we follow XDG standard and place config at ${XDG_CONFIG_HOME:-${HOME}/.config}/AutoXuexiPlaywright, place data at ${XDG_DATA_HOME:-${HOME}/.local/share/AutoXuexiPlaywright}, place temp files at ${XDG_CACHE_HOME:-${HOME}/.cache/AutoXuexiPlaywright}.
      • Linux Special: there is also a system wide data path: /usr/share/autoxuexiplaywright, this is used for that some data, like modules and so on, may be provided by other packages.
    • For MacOS, we place config at ${HOME}/Library/Preferences/AutoXuexiPlaywright, place data at ${HOME}/Library/Application Support/AutoXuexiPlaywright, place temp files at ${HOME}/Library/Caches/AutoXuexiPlaywright.
    • For other platforms, we place files like Linux without XDG_*_HOME set.
  2. We introduce a module interface, which is for extending program.
    There are only custom ways to obtain the answer now. We will implement more extensible parts in the future. To use this, simply write a python script which contains a subclass of autoxuexiplaywright.sdk.answer.AnswerSource and implement its get_answer() method, mark the module with decorator autoxuexiplaywright.sdk.module.module_entrance, place that script at modules folder under data path, with the name ends with .as.py.
    Note: Please do not name your final module with name that starts with _, because the objects' names start with _ mean that the object is private, so we will skip loading it.
    Note: those modules belongs to third-party contents and we are NOT responsible for any situation resulted by those contents. You should always check those modules yourself. Also, due to that our license is GPL3, if you are a module developer, please keep your work open-sourced like us.
    NOTE: Using legacy place of AnswerSource autoxuexiplaywright.sdk.AnswerSource is deprecated and is just being kept for compatible reason. Please migrate your code to new place mentioned above.
  3. We also developped an overlay mechanism.
    You can override any file under resources folder by place a file with the same name under where we place data. For example, if you want to override zh-cn.json on Windows, you can place a new %USERPROFILE%\AppData\Local\AutoXuexiPlaywright\lang\zh-cn.json and we will use your file instead ours. This may be useful when you are a Linux user because you can modify resoources as you like without having root privilege.