Skip to content

v0.5.2

Latest
Compare
Choose a tag to compare
@github-actions github-actions released this 07 Jul 16:41
· 2 commits to main since this release

0.5.2 - (2024-07-07)

⚠️ BREAKING CHANGES IN 0.5.X ⚠️

  • AsyncAniList.search()/AniList.search() has been REMOVED.

  • AsyncAniList.get()/AniList.get() now matches AniList's parameters and can do both ID and string searches, making the .search() method useless.

  • Migration:

    # old
    AniList().get(16498)
    
    # new
    AniList().get(id=16498) # ID is now keyword-only 
    # old
    AniList().search(
        "My Hero Academia",
        season=MediaSeason.SPRING,
        season_year=2016,
        type=MediaType.ANIME,
        format=MediaFormat.TV,
        status=MediaStatus.FINISHED,
    )
    # new
    AniList().get(  # Simply replace any instance of .search() with .get(). It's a drop in replacement.
        "My Hero Academia",
        season=MediaSeason.SPRING,
        season_year=2016,
        type=MediaType.ANIME,
        format=MediaFormat.TV,
        status=MediaStatus.FINISHED,
    )
    

🐛 Bug Fixes

  • Docstrings (c71264a) - (Ravencentric)

⚙️ Chores

  • release: 0.5.2 (f63c792) - (Ravencentric)