Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Package tidy up #549

Open
wants to merge 7 commits into
base: 5.0
Choose a base branch
from
Open

Package tidy up #549

wants to merge 7 commits into from

Conversation

lucapirolo
Copy link
Contributor

Changes Made

  1. Refactoring Types to config Package:

    • Moved Bookmarks type and related code into the config package.
    • Relocated TransactionConfig and SessionConfig to the config package.
    • Transferred AccessMode to the config package.
  2. Updating References:

    • Updated all previous references from neo4j. to config. to reflect the new locations of these types.
  3. Introducing Type Aliases for Backward Compatibility:

    • Introduced type aliases in the Neo4j package for each moved type to ensure backward compatibility.

- Relocated all bookmarks-related code to a new 'bookmarks' package.
- Updated references from 'neo4j.Bookmarks' to 'bm.Bookmarks' for clarity and to avoid conflicts.
- Adopted 'bm' as a package alias to resolve naming conflicts in functions, like in 'cleanupBookmarks(bookmarks bookmarks.Bookmarks)', to prevent ambiguity.
- Added Bookmarks aliases in the neo4j package to maintain backward compatibility.
- Renamed 'bookmarkManager' to 'DefaultBookmarkManager' for clearer representation and to avoid naming conflicts.
- Relocated all session config
 related code to a new 'bookmarks' package.
- Add AcessMode type to config package
- Add AuthToken  type alias  to config package
- Move SessionConfig Into new file named session_config
- Move AccessMode and its constants into session_config file
- Move AuthToken type alias to session_config file
- Relocated all Transaction Config code into the config package
 and update all references to neo4j.TransactionConfig to config.TransactionConfig
…patibility

- Added all required type aliases to the Neo4j package to ensure backward compatibility.
- This commit introduces SessionConfig, TransactionConfig, and AccessMode aliases in the Neo4j package.
@lucapirolo lucapirolo marked this pull request as ready for review November 27, 2023 22:04
@StephenCathcart
Copy link
Contributor

@lucapirolo just letting you know I've not forgotten about this package tidy up! I'll be finishing up reviewing this soon and update the PR afterwards. Thanks again for the large contribution 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants