-
Notifications
You must be signed in to change notification settings - Fork 132
Documentation Updates #284
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
Changes from 1 commit
a5766e5
e948887
8df1e2f
99453f7
7290920
6326bbd
64d62e2
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,51 @@ | ||
| # Intro | ||
| - Three ways for SDK to be loaded | ||
| - Standard NPM package | ||
| - Snippet in `<script>` tag | ||
| - RequireJS (may be dropped in future) | ||
| - Build system is Make instead of yarn (legacy, may possibly be updated) | ||
| - Use Amplitude Instrumentation Explorer to help development | ||
| - "Instrumentation" involves matters related to logging user actions (i.e. events) | ||
|
|
||
| # Concerns | ||
|
||
| - Keep in mind backwards compatibility | ||
| - Keep SDK build size as small as possible | ||
| - Should support as many browsers as possible | ||
|
|
||
| # Architecture | ||
| - `index.js` is the main entrypoint of SDK | ||
| - Stubbed methods are used when client imports via `<script>` snippet | ||
| - Allows app to not be blocked while real JS SDK is loaded in | ||
| - Sent events and identifys are tracked with queues | ||
| - Metadata storage (new) vs cookie (old) storage | ||
| - more of issue with anonymous id, because it uses device id instead of user id | ||
| - UA Parser: Helps identify browsers | ||
| - might be able to use upstream library and convert results, rather than our fork | ||
| - sameSiteCookie: Sets how public the cookie reading is | ||
| - `amplitude.getInstance() is necessary even during reuse because of snippet stubbed | ||
| - only applicable to snippet import | ||
| - Can possibly do better? | ||
|
|
||
| # Development | ||
| - Run `yarn dev` and open `localhost:9000` for development tools in browser | ||
|
|
||
| # Misc | ||
| - Readme.io used for documentation | ||
|
|
||
| # Ideas | ||
|
||
| - E2E browser tests with sauce labs | ||
| - merge with node? | ||
|
|
||
| Question | ||
|
||
| - Browser compat? | ||
| - MaxMind | ||
| - Determines region from IP address | ||
| - Some custoemrs wont update SDK | ||
| - Consideration to bring up durign PE weekly monday discussion | ||
| - browserslist? | ||
| - eslint plugin compat? | ||
| - Automation for updating docs when new SDK version is published | ||
| - Google Tag Manager: Allows people at runtime to add random script tag | ||
| - No plans to stop snippet | ||
| - might stop require js | ||
| - user & account lookup, allows seeing stream of events sent from users | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Again, do you think renaming this file to
CONTRIBUTING.mdwould be a better option to make this to be a setup guide?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I moved
src/notes.mdtoCONTRIBUTING.mdand added a reference to it in the README.md quick start section