iztro

⭐A lightweight open-source JavaScript library for obtaining The Purple Star Astrology (Zi Wei Dou Shu) astrolabe information.. 支持多语言轻量级获取紫微斗数排盘信息的javascript开源库。

MIT License

Downloads
503
Stars
1.9K

Bot releases are visible (Hide)

iztro - v2.4.2 Latest Release

Published by SylarLong 6 months ago

v2.4.2

  • 🛠️ 修复(fix)

    🇨🇳

    • 更新起大限的规则,使它与全局配置同步

    🇺🇸

    • upgrade decadal setup rule to make it consistent with configuration.

强烈建议所有版本更新至此版本
Hotfixing! Highly recommend to upgrade

iztro - v2.4.1

Published by SylarLong 6 months ago

v2.4.1

  • ✨ 改进(enhancement)

    🇨🇳

    • 增加 withOptions 方法

    🇺🇸

    • add withOptions function

v2.4.0

  • ✨ 改进(enhancement)

    🇨🇳

    • 增加年分界点全局配置 #182

    🇺🇸

    • add yearly divider configuration #182

v2.3.2

  • ✨ 改进(enhancement)

    🇨🇳

    • 改进部分英文翻译

    🇺🇸

    • fix some English translations

v2.3.1

  • 🛠️ 修复(fix)

    🇨🇳

    • 修复小限年龄判断条件错误

    🇺🇸

    • fix age error
iztro - v2.3.0 - for plugin

Published by SylarLong 8 months ago

v2.3.0

  • 🪄 功能(feature)

    🇨🇳

    • 支持全局插件 #165
    • 支持全局配置 #165

    🇺🇸

    • support global plugin #165
    • support global configuration #165

v2.2.3

  • 🛠️ 修复(fix)

    🇨🇳

    • 修复星耀亮度错误 #166

    🇺🇸

    • fix incorrect brightness #166
iztro - v2.2.2

Published by SylarLong 10 months ago

v2.2.2

  • 🛠️ 修复(fix)

    🇨🇳

    • 来因宫错误 #161

    🇺🇸

    • fix incorrect original palace data #161
  • ✨ 改进(enhancement)

    🇨🇳

    • 更新lunar-lite依赖,以支持更宽的日期参数

    🇺🇸

    • upgrade lunar-lite dependency in order to support wilder date parameter

v2.2.1

  • 🛠️ 修复(fix)

    🇨🇳

    • 小限数据错误 #160

    🇺🇸

    • fix incorrect age scope data #160
iztro - v2.2.0

Published by SylarLong 10 months ago

v2.2.0

  • 🪄 功能(feature)

🇨🇳

  • 新增童限指示 #154
  • 新增小限12宫 #157

🇺🇸

  • add childhood scope indicator #154
  • add 12 palaces for age #157
iztro - v2.1.0

Published by SylarLong 10 months ago

v2.1.0

  • 🪄 功能(feature)

🇨🇳

  • 宫位飞星判断 #143

🇺🇸

  • flyinstar judgement feature #143

v2.0.8

  • 🛠️ 修复(fix)

    🇨🇳

    • 地支繁体错误

    🇺🇸

    • fix typo of Earthly Branch of Chou
iztro - v2.0.7

Published by SylarLong 11 months ago

v2.0.7

  • 🛠️ 修复(fix)

    🇨🇳

    • 小限顺序错误 #95

    🇺🇸

    • fix incorrect ages #95
iztro - v2.0.6

Published by SylarLong 11 months ago

v2.0.6

  • 🪄 功能(feature)

    🇨🇳

    • 新增空宫判断 #92

    🇺🇸

    • add empty palace verification #92
iztro - v2.0.5

Published by SylarLong 12 months ago

v2.0.5

  • ✨ 改进(enhancement)

    🇨🇳

    • 废弃 astrolabeByLunarDateastrolabeBySolarDate 方法
    • 增加umd编译以便支持纯js库CDN调用 #87

    🇺🇸

    • deprecate astrolabeByLunarDate and astrolabeBySolarDate function
    • add UMD lib to support pure js invoking #87
iztro - v2.0.4

Published by SylarLong 12 months ago

v2.0.4

  • 🛠️ 修复(fix)

    🇨🇳

    • 修复虚岁为0的问题

    🇺🇸

    • fix zero nominal age issue
  • 🪄 功能(feature)

    🇨🇳

    • 增加独立的js库 #84

    🇺🇸

    • add independency js lib #84

v2.0.3

  • ✨ 改进(enhancement)

    🇨🇳

    • 星盘数据中加入性别

    🇺🇸

    • add gender to the astrolabe property

v2.0.2

  • 🛠️ 修复(fix)

    🇨🇳

    • 农历月底晚子时不对 #82

    🇺🇸

    • fix late rat hour issue #82

v2.0.0

  • 🪄 功能(feature)

    🇨🇳

    • 分离日期转换组件 #80

    🇺🇸

    • split calendar component #80
iztro - v1.3.5

Published by SylarLong 12 months ago

v1.3.5

  • 🛠️ 修复(fix)

    🇨🇳

    • 农历阳历转化错误 #76

    🇺🇸

    • lunar calendar conversion error #76

v1.3.4

  • 🪄 功能(feature)

    🇨🇳

    • 判断运限四化 #74

    🇺🇸

    • check horoscope mutagen state #74
  • ✨ 改进(enhancement)

    🇨🇳

    • 重构代码 #72

    🇺🇸

    • refactor code #72
  • 🛠️ 修复(fix)

    🇨🇳

    • 文曲星亮度丢失

    🇺🇸

    • fix brightness missed issue

v1.3.3

  • 🪄 功能(feature)

    🇨🇳

    • 判断指定运限宫位内是否包含指定流耀中其中一个 #70

    🇺🇸

    • check if one of horoscope stars are in specific palace #70

v1.3.2

  • 🪄 功能(feature)

    🇨🇳

    • 判断指定运限宫位内是否不包含指定流耀 #67

    🇺🇸

    • check if horoscope stars are not in specific palace #67

v1.3.1

  • 🛠️ 修复(fix)

    🇨🇳

    • 天干地支在翻译时会出现译文一样而导致结果错误 #64

    🇺🇸

    • heavenly stem and earthly branch translation issue #64
iztro - v1.3.0 - Back to work

Published by SylarLong about 1 year ago

v1.3.0

  • 🪄 功能(feature)

    #31

    🇨🇳

    • 获取运限的宫位
    • 获取运限指定宫位的三方四正
    • 判断宫位星耀情况

    🇺🇸

    • to get specific palace of a horoscope
    • to get surrounded palaces of a horoscope
    • to check stars of a horoscope
iztro - v1.2.6 - Happy Mid-Autumn Festival 🎉

Published by SylarLong about 1 year ago

v1.2.6

  • 🪄 功能(features)

    🇨🇳

    • 在流年运限里返回流年神煞 #56

    🇺🇸

    • return yearly decorative stars #56
  • 🛠️ 修复(fix)

    🇨🇳

    • 流月索引错误 #54

    🇺🇸

    • monthly index is incorrect #54

v1.2.5

  • 🛠️ 修复(fix)

    🇨🇳

    • 修复丢失的星耀翻译(ja_JP -> 月德)

    🇺🇸

    • fix missed star translation for (ja_JP -> 月德)
iztro - v1.2.4

Published by SylarLong about 1 year ago

v1.2.4

  • 🪄 功能(feature)

    🇨🇳

    • 新增越南语支持

    🇺🇸

    • support Vietnamese
  • 🛠️ 修复(fix)

    🇨🇳

    • 修复代码风格检查发现的额问题 #42 #43

    🇺🇸

    • fix codestyle issues #42 #43
iztro - v1.2.3

Published by SylarLong about 1 year ago

v1.2.3

  • 🛠️ 修复(fix)

    🇨🇳

    • 修复运限索引计算错误 #36

    🇺🇸

    • fix wrong horoscope indexes #36
iztro - v1.2.3

Published by SylarLong about 1 year ago

v1.2.3

  • 🛠️ 修复(fix)

    🇨🇳

    • 修复运限索引计算错误 #36

    🇺🇸

    • fix wrong horoscope indexes #36
iztro - v1.2.2

Published by SylarLong about 1 year ago

v1.2.2

  • ✨ 改进(enhancement)

    🇨🇳

    • 给 Horoscope 添加 name 字段
    • 给 name 字段添加国际化翻译

    🇺🇸

    • add name field to Horoscope
    • add translation for name
iztro - v1.2.1

Published by SylarLong about 1 year ago

v1.2.1

  • 🪄 功能(feature)

    🇨🇳

    • 新增静态方法 #28

      • 通过阳历获取生肖
      • 通过农历获取生肖
      • 通过阳历获取星座
      • 通过农历获取星座
      • 通过阳历获取主星
      • 通过农历获取主星

    🇺🇸

    • add some static methods #28

      • get zodiac by solar date
      • get zodiac by lunar date
      • get sign by solar date
      • get sign by lunar date
      • get major stars by solar date
      • get major stars by lunar date
  • 🛠️ 修复(fix)

    🇨🇳

    • 在特定情况下语言无法设置成功的问题

    🇺🇸

    • failed to set language in some scenarios
iztro - v1.2.0

Published by SylarLong about 1 year ago

v1.2.0

  • ✨ 改进(enhancement)

    🇨🇳

    • 新增 FunctionalSurpalaces

    • 新增 FunctionalStar

    • 废弃 FunctionalAstrolabe 类的下列方法

      • isSurrounded()
      • isSurroundedOneOf()
      • notSurrounded()

    🇺🇸

    • add new class FunctionalSurpalaces

    • add new class FunctionalStar

    • deprecate those functions to FunctionalAstrolabe class

      • isSurrounded()
      • isSurroundedOneOf()
      • notSurrounded()
  • 🪄 功能(feature)

    🇨🇳

    • 实现 #24

    🇺🇸

    • implement #24
iztro - v1.1.0

Published by SylarLong about 1 year ago

v1.1.0

  • 🪄 功能(feature)

    🇨🇳

    • 实现三方四正宫位功能 #21

    🇺🇸

    • implement surrounded palaces feature #21
  • ✨ 改进(enhancement)

    🇨🇳

    • 支持性别国际化
    • timely修改为hourly
    • 优化types结构,将types.ts拆分进types文件夹内,方便维护

    🇺🇸

    • localization for gender
    • rename timely to hourly
    • optimize the structure of types: split types.ts into several parts and store them into types directory.